Hi,

I've just pushed some model-loader tweaks, to support the same 'no preview' 
tags which FGRun supports, for viewing models. Currently only 'fgfs --fgviewer' 
mode sets the requisite flag, 'fgviewer' probably should but I need to check 
with Mathias what's a suitable way to control it, since I guess always-on may 
not be desired.

The changes hide / omit mesh objects which are tagged 'nopreview'; especially, 
Rembrandt-related lighting volumes are skipped. This is important since 
otherwise the light volumes confuse osgViewer's bounding-box computation, and 
hence the rotation centre and initial scale of the model are very wrong.

With the changes, --fgviewer mode is usable again with the c172p, f-14b at 
least.

Now, the big question - I was looking at this to restore the Mac launcher's 
preview mode. I could cherry pick these commits to the release branch, but I 
want to be cautious, since the model loader is kind of fundamental :) All the 
code is guarded with an 'if (previewMode)', so I am reasonably confident it 
can't regress anything else.

Or I can wait until 2.10 is out, and then cherry pick to the branch to make a 
2.10.1 for Mac with working preview mode - that would be the paranoid solution!

Comments / feedback?

James


------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_jan
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to