Inside3D!
     

D3D Scaling having weird effects on bounding box....

 
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Programming
View previous topic :: View next topic  
Author Message
boxrick



Joined: 20 Jan 2009
Posts: 5

PostPosted: Tue Jan 27, 2009 11:22 pm    Post subject: D3D Scaling having weird effects on bounding box.... Reply with quote

Currently im making a 3d world.... as i posted a week ago in http://forums.inside3d.com/viewtopic.php?t=1401

I now have the majority of my bounding box code sorted however i now need to scale objects... I have managed to do this just fine... however as a side effect of this it seems after scaling even though im only moving any particular object by the exact same speed as previously it appears to move faster if i have scaled the object bigger and slower if i have scaled an object smaller?

Would there be any real reason for this ? the movement speed is a set 0.1 so this is quite strange...

Also when calculating a bounding box after scaling i cannot think of the most sensible way to do this... obviously it cannot simply be scaled by a factor or a percentage because of it being co ordinate based... So does anyone have an idea of what is a good way of scaling the box to the same proportion as i scale each 3d model?

Thanks for the help again guys! Cool
Back to top
View user's profile Send private message
Spike



Joined: 05 Nov 2004
Posts: 944
Location: UK

PostPosted: Tue Jan 27, 2009 11:56 pm    Post subject: Reply with quote

keep scale and offset separate, rather than scaling the offset?
_________________
What's a signature?
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Inside3d Forums Forum Index -> General Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2004 phpBB Group