Archived

This topic is now archived and is closed to further replies.

2d shapes in 3d

This topic is 6361 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi everyone i have a question i have inventory system and it is in 2d using plane old directdraw sufaces but i need to the player to drop these on main screen which is 3d but i cant find method in opengl or directx to convert 2d graphic to mesh i need to be able to specify where edges are on 2d graphic and need call to turn it into 3d mesh and then turn 3d mesh back into 2d graphic when use puts it back in inventory i have tried opengl and directx but cant find the function can aynone help

Share this post


Link to post
Share on other sites
I think what you are looking for is bill-boarding, you''ll find info on this in the DX SDK. But in a few words it is a technique that makes sure that triangles drawn are always facing the camera, thus letting the viewer see the objects they represent from any angle.

- WitchLord

Share this post


Link to post
Share on other sites