Tim, On Saturday 05 May 2007, Tim Moore wrote: > The attached patch fixes material animations (color in particular) in > osg. I also notice a big frame rate increase with aircraft that use > material animations. Applied thanks!
Comments to that: This one will only work like expected for the current ac loader in current osg svn. Can you think of a scheme that does not rely on that assumptions? May be we have to adjust the way material animations can be configured a slight bit to remove these dependencies? There is also a second assumption in the animation system: The textures for the liveries are expected not to be in the osg::Drawables. That is not always true and is especially no longer true with the ac loader update in osg svn since a few days. The problem that is fixed here, which is also in the past and current material animation to some degree, is that render bin numbers in osg build hierarchical render bins. That means we should only put render bin numbers at drawables or on nodes that have well known leafs. With that change the transparencies are handled way better with osg. Ok, back to the model stuff. I want to share drawables across all loaded models since the drawables own display lists and thus should only appear at one time in the GPU memory. Even if the same model is loaded multiple times (think of AI traffic). The same clearly holds for texture state attributes attached to several state sets. So my intention is to come up with a 'model scenegraph normalization scheme' that fits all those needs: Share GPU and memory intensive data structures. Have a known structure how relevant states are distributed on different nodes so that we can make some assumptions in the animations. Ideas? Greetings Mathias ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel