Jean,
I did try my original solution which is how I know it writes out .ive
files. I also just implemented the visitor solution to see what happens.
As expected, the visitor goes and changes the names of all the
referenced files. Then the top level file is written out. The proxy
nodes try to write themselves out but since the files they reference
("referencedFile.eive") doesn't exist, nothing is written out.
I would need to be able to change the proxy node ReadWrite class which
is the part of the IVE loader that says to write out proxy nodes as
"ive" files. This would require me to derive from ReaderWriterIVE and
subclass the ProxyNode class so it writes out an "enc" file instead of
an "ive" file.
Thanks,
-Brett
Jean-Sébastien Guay wrote:
Hi Brett,
I'm wondering, if you suspect that ProxyNodes (and thus PagedLOD nodes
as well) would be a problem, why don't you just run a visitor that
would find those, and change their extension to eive (or whatever you
want)? Then if you write the top-level file, it will write the
referenced files with the right writer, and they will be re-read
correctly as well...
Or, try it without and see what happens. If what you suspect turns out
to be true, then you have a possible solution above, but if it all
works like magic you won't have wasted any time.
Hope this helps,
J-S
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org