Jump to content
  • Advertisement
Sign in to follow this  
Magos

Billboarded Meshes

This topic is 4751 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 need some pointers on how to implement billboarded meshes, especially when in a bone hiearchy. I've managed to build a matrix that compensates for the camera's angle, but whenever a parent bone rotates it is no longer properly billboarded. How do you sovle this? I've thought of decomposing the parent matrix and performing an inverse rotation to compensate for this. Is this correct? I've had no luck finding docs on this subject (note: meshes, not simple sprite billboards!). Links are welcome!

Share this post


Link to post
Share on other sites
Advertisement
I would transform the midpoint of the billboard using the skeleton, and then generate the actual billboard geometry separately using the camera up/right vectors, at that transformed point.

Share this post


Link to post
Share on other sites
I doubt you read my post as I stated that:

1) I use meshes, and NOT sprite billboards
2) I already have a matrix that compensates for the camera rotation

Share this post


Link to post
Share on other sites
Also, say I have a generic rotation matrix. Is there a way to extract how much it rotates around a specific axis?

Like: M = M_around_z * M_rest

(I want M_around_z, or more specifically the angle it rotates around z).

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!