Hi Adrian,

On 7/18/07, Adrian Egli <[EMAIL PROTECTED]> wrote:
Could you finally achieve any progress in implementing the abstraction
layer.

No coding progress, but I have been mulling the issues over.  I am now
inclined to follow your example of going for a Configuration object
that can be passed to the Viewer classes to help initialize them.
The Configuration object could be expanded to include lists of Traits
use to set up windows, camera set up etc.

I would also like to have a public interface on osg::Camera for
specifying the means for doing cull and draw traversals and do this by
a Renderer object or similar class.  For those want to get the
SceneView then if the Renderer is a based on SceneView one could
something like dynamic_cast<SceneViewRenderer*>(..)->getSceneView().
To do this though I'll need allow SceneView not to own the Camera that
its renderering otherwise we'll end up with circular references.  The
Configuration object could also be involved in the set up of the
Renderer as it could provide the prototypes that are cloned and
attached to the Camera.

Later this week I might have a chance to try some coding on this.

In the mean time stick with your changes as they won't be too far off
from where I'll probably end up heading.

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

Reply via email to