Hi @phil.bobo and others,
I'd like to draw an object at an exact location with an exact size. Currently my code looks more or less like this:
drawtomodelscale( current ); fglPushMatrix(); fglTranslate( xPos, yPos, zPos ); fglScale( xSize, ySize, zSize ); fglRotate( 90, 1, 0, 0 ); drawobject( view, shapeIndex, textureIndex ); fglPopMatrix();
This works fine for a box, but as soon as I pass in, for example, the shape index of fs3d\FlowItem\Tote.3ds, things go horribly wrong. The reason seems to be that the dimension of the 3DS object is not 1 x 1 x 1. Is there a way to get drawobject to draw something that is exactly of dimensions xSize x ySize x zSize, either by telling drawobject to scale it to unit dimensions, or by getting the dimensions of the shape and scaling accordingly?
Thanks!