2d shapes in 3d

Started by
1 comment, last by Bumba 23 years, 9 months ago
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
Advertisement
well theres no magical way of making a 3d object out of a 2d one.
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

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement