Well then it is optimized away during the load, and not in the optimizer...
Because the call to osgDB::readNodeFile() returns a scene with the node (the
pointer adress is the same, with the same name, same type etc, but with no
description attached).
I would expect the optimizer to remove any STATIC transforms etc. after it
has actually traversed the scene, not before?
Or is the Optimizer incorporated into the loader nowadays?
/Anders
On 2/15/07, Joakim Simonsson <[EMAIL PROTECTED]> wrote:
Hi Anders,
This is not strange. It is optimized away. Try:
set OSG_OPTIMIZER=OFF
On Thu, 15 Feb 2007 10:47:03 +0100, Anders Backman <[EMAIL PROTECTED]>
wrote:
> Hi all, long time no see ;-)
>
> I have a brief one.
>
> When reading a .osg file that I have I only get a few of the nodes
> actually
> containing the description they should have.
> I have attached a file with a teapot (only one node with a description),
> containing a few lines of descriptions.
>
> When debugging, the descriptions are read all-right, and added to the
> node.
> But somewhere during the way back from the reader, the descriptions for
> this
> node gets lost.
> So during my node traversal I dont find any descriptions at all..
>
> Has there been any changes related to .osg reading and descriptions?
> Its pretty strange, as the parsing of the description is done, but then
> suddenly when the readNodeFile returns the node does not contain any
> descriptions (nor its children)...
>
> To verify this: load error_description.osg press 'o' to save it and look
> at
> the resulting file.
> For me this file doesnt include any descriptions anymore...
>
> /Anders
>
--
Joakim Simonsson
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
--
________________________________________________________________
Anders Backman Email: [EMAIL PROTECTED]
HPC2N/VRlab Phone: +46 (0)90-786 9936
Umea university Cellular: +46 (0)70-392 64 67
S-901 87 UMEA SWEDEN Fax: +46 90-786 6126
http://www.cs.umu.se/~andersb
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/