Sign in to follow this  

making an object (sprite/particle) face the camera [solved]

This topic is 4517 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 have been working with opengl for a few weeks now and have gotten to the point where i want to be able to create particles in my game. I am working on a space simulation, so i will be moving in all directions, viewing at all angles. I don't want the typical billboarding effect, because if you go over the sprite it looks flat. what might i do to come up with what i need? Thanks for your time. EDIT: worded my problem wrong. [Edited by - Pirosan on August 4, 2005 4:36:50 AM]

Share this post


Link to post
Share on other sites
I understand that this will require matricies. I have a camera vector, and the local coordinates of the particle. Before now i used the dot product and found the needed y rotation to spin it so it was facing the camera, but that works only on one axis.

Is there a way to do something along the lines of the camera LookAt function? that would make everything so much easier.

Share this post


Link to post
Share on other sites

This topic is 4517 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.

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

Sign in to follow this