Jump to content
  • Advertisement
Sign in to follow this  
kaifeng

How VS skin get AABB

This topic is 3916 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 am working on VS skin, everything working right. But AABB. All vertex is calculated in video card, How can I get AABB ? Thanks for any reply

Share this post


Link to post
Share on other sites
Advertisement
You can easily preprocess the animations to calculate an aabb (either per animation or per frame), and then store that data with them.

Alternatively compute an aabb for the bones at runtime, and just expand it by 10% or so to make sure the whole model is enclosed in the box.

Share this post


Link to post
Share on other sites
Thank for replies.
Use bone AABB and expand 10% is not bad.
But is there a way to change the position in vertex buffer? so i can get everything i want.

Share this post


Link to post
Share on other sites
Quote:
Original post by kaifeng
But is there a way to change the position in vertex buffer? so i can get everything i want.
Prior to D3D10 there is no guaranteed or easy way to persist the results of a shader.

People will perform simplified software transforms to generate animated collision meshes and the like. If it's really a problem then consider having a "low poly" version for collision and AABB generation and only use the high-res mesh for rendering.

hth
Jack

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!