Jump to content
  • Advertisement
Sign in to follow this  
hogosha

getting things to always face camera

This topic is 4895 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'm not looking for code. i'm writing a desktop enviroment for linux, but i'm working on a particle engine for it at the moment, so far it works great, slowly adding features to it. now i am looking for a direction to search for to get each particle facing the camera at all times.

Share this post


Link to post
Share on other sites
Advertisement
well i saw that, and the books that i have on opengl says billboarding will make the size be the same no matter how far an object is away. maybe that's just an ability of it. i guess i will have to look into it further unless someone else posts something. thanks for the input though.

Share this post


Link to post
Share on other sites
Quote:
Original post by hogosha
well i saw that, and the books that i have on opengl says billboarding will make the size be the same no matter how far an object is away. maybe that's just an ability of it. i guess i will have to look into it further unless someone else posts something. thanks for the input though.


Billboarding has nothing to do with size, it's only purpose is to keep a polygon oriented towards the camera. Billboarding is exactly what you are looking for.

See this article for more information.

Share this post


Link to post
Share on other sites
Its pretty simple, just transform whatever you want facing the camera by the inverse view matrix - dunno what that is in GL, im a DX guy.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!