"Bruce Clay" writes:
> When I walk through the nodes in the
> DOFTransform list I can see that each node has an osg::Transform but
> calling asPositionAttitudeTransform returns NULL as do many of the
> other possible converters.
That is right, because they are not PositionAttitudeTransforms, but
Thanks for the replies.
The models in question are part of a large set of models that I am trying to
catalog. I only have the osgb version of the model so I do not know the
original format. When I walk through the nodes in the DOFTransform list I can
see that each node has an osg::Transform
Honestly, it sounds like a modeling problem.
What format was the aircraft model originally in? Your best bet is probably
to load it into a modeling tool, fix up the origin/pivot points in that
environment and resave the model. It's not really specific to OSG at all.
___
"Bruce Clay" writes:
> I am working on a model viewer that has portions based on the
> osgsidebyside example. I can load a tank model that has both
> DOFTransforms and Multiswitches then rotate the turret and elevate the
> gun and everything works correctly.
>
> I loaded an aircraft model with 15
I am working on a model viewer that has portions based on the osgsidebyside
example. I can load a tank model that has both DOFTransforms and Multiswitches
then rotate the turret and elevate the gun and everything works correctly.
I loaded an aircraft model with 15 DOFTransforms and no switches.
5 matches
Mail list logo