Hi Gustavo,
I think it is not safe to add this behaviour as default, since it would
break application code that already exploits the 'unit' from DAE.
Luc
De :
Gustavo Fariña <[email protected]>
A :
[email protected]
Date:
11/12/2012 22:51
Objet :
[osg-submissions] DAE Plugin not aware of scale
Envoyé par :
[email protected]
Hi,
Although the DAE Plugin reads the scale (tagged as "unit" in the DAE file)
and stores it in its private member _assetUnitMeter, it doesn't use this
value at all when loading an object.
I've added a little code to scale the original result node by this value
using PositionAttitudeTransform, and then return this PAT as the actual
result node.
The base code for my changes was OSG-3.0.1.
This is my first submission. I hope the code is correct, otherwise let me
know if I am mistaken.
Cheers,
Gus.
[pièce jointe "daeReader.cpp" supprimée par Luc Frauciel/STAR-APIC]
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org