Hi Mathias, The inheritance of state, transforms and cull settings should all be down top down, so the highest objects in the OSG world being the view(er) then the view's Camera's, then the scene graph below them - this is public face of the scene graph. The rendering traversal is just a back end feature that just needs to honour that relationship of settings provided in the public face. If the rendering back end doesn't honour this then it needs fixing, the change I made yesterday I feel is a step in this direction.
As for worrying about the fact that a topmost CullSetting still has a inhertiance mask, well that's fine by me, even if its a non op. Perhaps in the future we might add an even high level CullSetting that get inherited down to the viewer. How knows, I certainly don't. As for implementations, if they are broke then I'll go help fix them, but changing things to "streamline" them is something that is way down on my set of priorities. Bug fixes, completing existing features and getting the next releases of OSG and VPB out the door is what is critical for me right now. Robert. On Wed, Mar 5, 2008 at 8:17 AM, Mathias Fröhlich <[EMAIL PROTECTED]> wrote: > > Good morning, > > > On Tuesday 04 March 2008 16:13, Robert Osfield wrote: > > It a matter of expediency and history, reusing the CullSettings class > > in various roles rather than creating different classes that store the > > same parameters. The history comes down to how the OSG has evolved > > with new capabilities being dovetailed into existing classes or > > collaborating with different classes whilest trying to minimize the > > amount of existing user code that might break as consequence of this > > evolution. This does lead to some code not always being perfect from > > all perspectiveness. > > > > I will go ahead an merge the change, but since we have the old code in > > place still we can always revert amend as required. > > Sure, I know ... > I do not think that the inheritance mask move will break much. > > Anyway, looking at that amount of CullSettings we have in osg/osgViewer, I am > somehow curious how it works. > > osg has Cull settings that serve as base setting for a View, right? > These CullSettings just reside in the Master Camera of a view? > Or do the master settings reside in the SceneView that is contained in the > Renderer? > > Then on cull the SceneView copies the CullSettings into the CullVisitor. > The CullVisitor enters the topmost Camera and inherits the cull settings from > that Camera according to the top Cameras mask. > The child Cameras use their own CullSettings according to their masks. > > Looking at the current implementation it is unclear to me where the topmost > CullSettings reside? > Also it is unclear to me why the topmost settings need an inheritance mask. > As well as the CullVisitors cull settings. It would be more clear to me if > the > cull settings are just copied from the master source to the cull visitor > before traversal. Then as the cull visitor hits a camera - including the > topmost one - the cull visitors settings are partly overwritten by the camera > according to the cameras inheritance mask. > > I believe that it is worth streamlining that a bit. > Using that code would be much more clear then - at least to me :) > > GReetings > > MAthias > > > > -- > Dr. Mathias Fröhlich, science + computing ag, Software Solutions > Hagellocher Weg 71-75, D-72070 Tuebingen, Germany > Phone: +49 7071 9457-268, Fax: +49 7071 9457-511 > -- > Vorstand/Board of Management: > Dr. Bernd Finkbeiner, Dr. Florian Geyer, > Dr. Roland Niemeier, Dr. Arno Steitz, Dr. Ingrid Zech > Vorsitzender des Aufsichtsrats/ > Chairman of the Supervisory Board: > Prof. Dr. Hanns Ruder > Sitz/Registered Office: Tuebingen > Registergericht/Registration Court: Stuttgart > Registernummer/Commercial Register No.: HRB 382196 > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org