INCepted Posted November 15, 2016 Share Posted November 15, 2016 Hello dear Forum members, I have some trouble creating a 3D Image Tag in the world. I'm using dxDrawMaterialLine3D and it works fine creating it, but the problem is that the image is rotating with the client cam. I wana set the image fixed, so I can walk around this image without rotatin itself, if you know what I mean. Greeeeetings Link to comment
Mr.Loki Posted November 15, 2016 Share Posted November 15, 2016 make use of the last 3 arguments in the function Quote faceTowardX/Y/Z: The position the front of the line should face towards. If this is not set, the camera position is used, so the front of the line faces toward the camera. Link to comment
INCepted Posted November 15, 2016 Author Share Posted November 15, 2016 1 minute ago, loki2143 said: make use of the last 3 arguments in the function This is only the alignment of the image.. It still rotates with the camera.. Link to comment
Mr.Loki Posted November 15, 2016 Share Posted November 15, 2016 (edited) Dude real the full quote its directly from the wiki. Tou have to use every argument in the function for it to work because the faceTowards x,y,z are the last 3 args. dxDrawMaterialLine3D ( 0, 0, 8, 0, 0, 3, material, 6, tocolor(255,255,255), 0, 1, 8) Draws a rectangle facing north. This is how it looks using every arg in the function. The last 3 is where the material line will face towards. Edited November 15, 2016 by loki2143 Link to comment
INCepted Posted November 15, 2016 Author Share Posted November 15, 2016 Just now, loki2143 said: Dude real the full quote its directly from the wiki. Tou have to use every argument in the function for it to work because the faceTowards x,y,z are the last 3 args. dxDrawMaterialLine3D ( 0, 0, 8, 0, 0, 3, material, 6, tocolor(255,255,255), 0, 1, 6) Draws a rectangle facing north. This is how it looks using every arg in the function. The last 3 is where the material line will face towards. Yea I know and I can read. It just faces to north for instance (depends on the coords), but it still moves with the camera. Look up and the image will also rotate up but still facing at north, try it by yourself and you'll see it. You have to make a workaround with getElementMatrix, but I dont know how, thats why Im asking here. Link to comment
Mr.Loki Posted November 15, 2016 Share Posted November 15, 2016 works for me https://streamable.com/i80n 1 Link to comment
INCepted Posted November 15, 2016 Author Share Posted November 15, 2016 (edited) 1 minute ago, loki2143 said: works for me https://streamable.com/i80n Strange.. Seems to be my fault, could you give me the little snippet from that video please ? I would be thankfull! Edited November 15, 2016 by INCepted Link to comment
Mr.Loki Posted November 15, 2016 Share Posted November 15, 2016 18 minutes ago, INCepted said: dxDrawMaterialLine3D ( 0, 0, 8, 0, 0, 3, material, 6, tocolor(255,255,255), 0, 1, 6) same code as before 1 Link to comment
INCepted Posted November 15, 2016 Author Share Posted November 15, 2016 Thanks for help, dude! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now