Jump to content
  • Advertisement
Sign in to follow this  
TheMac

Scaling down tiny.x

This topic is 4583 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 having an issue with scaling the 3d models in my program. I’m rendering and animating tiny.x, but she’s absolutely huge. Is the only way to scale her down is to create a scaled down matrix, then combine that into the world view for the model? If that’s the case is the only way, (or the best way) to generalize that to scale different models down is to that the bounding sphere around the model, then use that to scale it down? Either way what are you all doing with this. Thanks.

Share this post


Link to post
Share on other sites
Advertisement
It worked like a charm, thanks!
I couldn't find in any of the examples that I'm using that use D3DXMatrixScaling, they just change the view space she that shes like -700.0f away. Is there any reason for this, or are they just trying to make is easy?

Thanks.

Share this post


Link to post
Share on other sites
Probably the examples you are using don't care about scale. They just display the model at whatever distance is necessary to see it. Obviously, that won't work very well if you display more than one model. You have to decide how big you want a model to be in your world's unit and then scale it appropriately.

I wouldn't use a bounding sphere to automatically scale the model. Instead, decide on a scale for each of the models and make those values part of the data.

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!