Jump to content
  • Advertisement

Archived

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

Marc aka Foddex

Drawing a 2D sprite in 3D

This topic is 5325 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

I''ve seen a document on this in the recent past, and I remember it wasn''t very hard, but I can''t find it anymore so I ask it here. Sorry on forehand if it''s been asked before. Say I have a sprite on a 3D position in my world (small particle near a flame for example). How do I render that sprite, so that it''s always orthogonal to my view, but still centered around the 3D position it''s on? Thanks in advance! Marc P.S. I''ve taken a look at the particle articles linked to here on gamedev, but they''re all about the theories behind particles, not about drawing them...

Share this post


Link to post
Share on other sites
Advertisement
To draw a 2d sprite in 3d just create a quad and then texture it with the graphic of your sprite. And a billboard is a 2d object that rotates to always face the player... Like if you had a picture of a tree, you could draw a quad and then texture it with the tree and then make it a billboard .

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!