From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Osfield
Sent: 16 May 2006 12:06
To: osg users
Subject: Re: [osg-users] Cant set pixel format.

 

On 5/16/06, Roger James <[EMAIL PROTECTED]> wrote:


Now here is a heretical thought. Would it be possible to move all the camera
stuff out of the osgUtil::SceneView implementation and replace it by a
traverse of the top level CameraNode. I have my tin hat ready and the door
to my nuclear bunker ajar ;-)


You can replace SceneView if you wish already, its just that SceneView does alot for you.  Also SceneView as it stands right now actually uses CameraNode to store all its camera related data.

In the longer term I'd like to replace SceneView as part of my intention for an osgViewer library, but it'll be a while yet before I have the time available to start coding.

Robert.

 

Robert,

 

I was not suggesting replacing SceneView but changing it so that the Update, Cull and Draw traverse the CameraNode in which it currently stores its camera related data thus allowing buffer attachments and so on to work on that node.

 

Having a method to retrieve the CameraNode from the SceneView leads the casual observer to assume that the features of the CameraNode implementation can be used, it is not until you look at the code that you realise that a lot of the implementation of the buffer attachment stuff actually occurs in CullVisitor and  RenderStage, so only happens if the node is traversed.

 

I also realise that current implementation is not intended to handle the use of the CameraNode as the target for the main scene rendering pass.

 

It was only an idle speculation J

 

Roger

 

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

Reply via email to