Is there any way to determine the size of a mesh? Looking for something that would give say height, width, depth of a loaded mesh.
There is only X_SCALING
but you can only per factor! ( 0.5 = half of original size)
I believe he wants to check the size of a mesh, not change the size.
You can check te size by parsing the X_GETFACE information.
Quote from: Moru on 2009-Jun-15
I believe he wants to check the size of a mesh, not change the size.
Whoops... you right :D
Thanks for the replies. I looked at the ddd viewer sample draw normals function and thought that iterating through getfaces was going to be the way. Thanks again
In a 3d editor you can see the size on a grid, before you convert it to a .ddd file.
The file conversion should make a perfect to-scale rendering.
You might need to turn on the grid feature.
Which program did you use?
On the otherhand, if you create it in glbasic language, you should be able to just whip up an algorithm to measure your object by subtracting the most extreme ranges of vertices.