Jump to content
  • Advertisement
Sign in to follow this  
Kest

Stretched Billboard

This topic is 3715 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 a couple questions. 1. For a completely free-floating quad (not like a tree, rooted to the ground) in 3D space, what is the appropriate direction to orient it? Should the quad face opposite of the camera's forward direction, or should the quad face the camera's eye position? 2. I have two points in 3D space, and I want to create a single quad particle billboard that stretches from one to the other (a radius value will represent space from the points to the closest edges of the quad). What is the best way to obtain the quad's normal direction for this? If the answer to #1 is the eye position, what quad origin do I use here to find that? Would it be the center between the two points? Or should I compute both point->eye directions individually, and generate a possibly-skewed quad? Any help is appreciated.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Kest
I have a couple questions.

1. For a completely free-floating quad (not like a tree, rooted to the ground) in 3D space, what is the appropriate direction to orient it? Should the quad face opposite of the camera's forward direction, or should the quad face the camera's eye position?


I would say that the correct way would be to orient according to the EyeToQuadCenter vector. But that is more expensive to compute. In a system with unified shader architecture the camera eye vector could be used, and orientation of the billboard be done before the shader.

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!