Hi Garry,

To give decent framerates the OpenFlight loader performs some
optimizations by default.
You can turn it off with the preserveFace and preserveObject reader options.

Here is a list of reader options for the OpenFlight loader.
http://www.openscenegraph.org/osgwiki/pmwiki.php/KnowledgeBase/OpenFlight

To use reader options with the osgviewer use the -O argument like this.
osgviewer -O "preserveFace dofAnimation billboardCenter dds_flip
noTextureAlphaForTransparancyBinning" test.flt

btw. I have come across a couple of dds textures the dds loader
doesn't handle correctly.


Regards,
Brede

2006/11/16, Garry Keltie <[EMAIL PROTECTED]>:
Hi

This subject seems to be well documented in the archives, app usage and
the codebase.

However, I am using windows and have tried:

set OSG_OPTIMIZER="OFF"
set OSG_OPTIMIZER=OFF
set OSG_OPTIMIZER=""

as the variations I can find to turn all optimisation operations off.

With a debug notification set, my OpenFlight file still undergoes all
the standard optimisations with osgViewer.

I'm specifically concerned about the replacing of duplicate TexEnvs as I
have 6 textures (dds dx1 format) and 6 texture mappings. These all
appear as expected in Creator but somehow get crunched by the optimiser.
Even the texture mapping/texture that is left is rotated from its
original setting.

What's interesting is this is a fairly normal operation for me - except
for the use of the dds image format. I can see (printed) all the
textures being found and loaded - then somehow treated as duplicates.

I would like to turn all optimisation off to test what is happening but
the bugger keeps on doing it. Any ideas on what is going on? Any other
tricks I should be looking out for? (Gladly accepted) Oh... yes, I do
know I by default use an 's', my variables are definitely with a 'Z'

Garry

--
Garry Keltie

garry.    @rmit. .au
      keltie    edu
VR Centre - Research & Innovation
RMIT University

/ ... .... .. - /  .... .- .--. .--. . -. . -..
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to