Jump to content

3D Image Banner ?


INCepted

Recommended Posts

Posted

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

Posted

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.

 

Posted
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..

Posted (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 by loki2143
Posted
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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...