Scaling problem (3D max and DirectX)
i was trying to make a big terrain map in 3D Studio Max with a length and width of 2000 but when i render it in Direct3D App. the length and width changes in size, it becomes small.
screenshot
http://www.geocities.com/cursebox87/screenshot.JPG
[Edited by - ShurikeN on April 1, 2008 10:27:52 PM]
Units in 3D modelling packages are virtual units. You need to use a scale factor to convert them to your program's virtual units. In short: there's nothing wrong, your program is just using a different setup for the coordinate system and hence the units aren't scaled the same way.
HTH,
Pat
HTH,
Pat
Quote:Original post by darookie
In short: there's nothing wrong, your program is just using a different setup for the coordinate system and hence the units aren't scaled the same way.
so, how do i make the correct setup??
Quote:
You need to use a scale factor to convert them to your program's virtual units.
i didn't understand much what you mean by that. you mean D3DXMatrixScaling() ??
You could do the scaling in code, yes. But it's better to do the scaling in the modelling program itself or as part of the export process. The modeller should have controls to change the units used, probably in the preferences. For specifics you'd have to consult the manual if you don't know where to find them already.
thanks for the replies. yeah, i could scale it in coding but i don't wanna do that. anyways, i have to sleep now. im so tired trying to fix this sh!t, im gonna continue this tomorrow.
it's been 4hrs since i woke up in the morning and been working on this but still i couldn't find the solution to this problem, thanks to this my day is ruined.
SCREENSHOT
http://www.geocities.com/cursebox87/SCREENSHOT2.JPG
SCREENSHOT
http://www.geocities.com/cursebox87/SCREENSHOT2.JPG
The problem is that you've got a non-uniform scale on that object. A lot of exporters/engines have a habit of not supporting them. In that first screenshot, note that the scale on the Z is different from the X and Y. Try and avoid scaling on only one or two axis', if you need to do it then you should scale the verticies directly.
An easy way to fix it for now would be to apply a Reset XForm modifier to the object (Should be under the 'Tools' tab on the far right), and then collapse the stack. That should do the trick!
Just be careful of non-uniform scaling in the future. :P
An easy way to fix it for now would be to apply a Reset XForm modifier to the object (Should be under the 'Tools' tab on the far right), and then collapse the stack. That should do the trick!
Just be careful of non-uniform scaling in the future. :P
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement