Norman Vine wrote:
Russell Suter writes:
The IG shouldn't be used to position the 3D model. If it being used, that's wrong.
By IG I am assuming you mean Image Generator, and you have to understand how the things are drawn or else you are bound to get
surprised at least occassionally :-)
Yes, IG = Image Generator.
Those sentences are horribly incomplete. What I meant to say is that the IG
should not use the Bounding Sphere center to position the 3D model. The
Bounding Sphere has a different purpose. If the Bounding Sphere is being
used to position the model within the scene, that is wrong. The correct thing
to use is the product of this snippet of code (Thanks again to Jim Wilson for
posting it):
From sgLoad3DModel (in SimGear/simgear/scene/model.cxx):
ssgTransform * alignmainmodel = new ssgTransform; alignmainmodel->addKid(model); sgMat4 res_matrix; sgMakeOffsetsMatrix(&res_matrix, props.getFloatValue("/offsets/heading-deg", 0.0), props.getFloatValue("/offsets/roll-deg", 0.0), props.getFloatValue("/offsets/pitch-deg", 0.0), props.getFloatValue("/offsets/x-m", 0.0), props.getFloatValue("/offsets/y-m", 0.0), props.getFloatValue("/offsets/z-m", 0.0)); alignmainmodel->setTransform(res_matrix);
That's not what I said before, but that's what I meant. Sorry.
-- Russ
Conway's Law: "The structure of a system tends to mirror the structure of the group producing it." -- Mel Conway Datamation (1968)
_______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel