Re: [osg-users] osg::CameraNode doesn't render the scene behind the osgProducer::Camera

2007-09-20 Thread Robert Osfield
Hi,

On 9/19/07, zarrandreas [EMAIL PROTECTED] wrote:
 Thanks for the tip, but I can't use osgViewer, because I use custom
 framework and this framework use osgProducer::Viewer.

osgProducer::Viewer apps can typically be ported to osgViewer::Viewer
in minutes, they have lots of similarities.

 The Prerender Example in osg framework use also osgProducer::Camera and
 osg::CameraNode to render the scene to the texture. Maybe the problem is in
 the using of the screen aligned quad (= I align the quad to the screen in
 the vertex shader).

When you say osg framework what do you mean?  There is no osg
framework unless its on your side.  Do you mean the osg examples that
came with 1.2?

As a general note render to texture setup can normally be done totally
independently from the viewer, code can be ported across different
viewers and should still work.  The viewer also shouldn't make any
difference.  If you have problem with RTT then its likely that its a
pure scene graph set up issue.

As for the problem with your set up one really can't say what might be
up with so few details of how you've set up the scene graph.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osg::CameraNode doesn't render the scene behind the osgProducer::Camera

2007-09-20 Thread zarrandreas
Thanks, 
you are right the problem was setup config:
The one corner of screen aligned quad is in the world center, I used vertex
shader from rendermonkey  to assign the quad to the screen. After I placed
the quad corners to another coordinates, the problem was away.

Thanks to all for support!

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Thursday, September 20, 2007 10:32 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osg::CameraNode doesn't render the scene behind the
osgProducer::Camera

Hi,

On 9/19/07, zarrandreas [EMAIL PROTECTED] wrote:
 Thanks for the tip, but I can't use osgViewer, because I use custom
 framework and this framework use osgProducer::Viewer.

osgProducer::Viewer apps can typically be ported to osgViewer::Viewer
in minutes, they have lots of similarities.

 The Prerender Example in osg framework use also osgProducer::Camera and
 osg::CameraNode to render the scene to the texture. Maybe the problem is
in
 the using of the screen aligned quad (= I align the quad to the screen in
 the vertex shader).

When you say osg framework what do you mean?  There is no osg
framework unless its on your side.  Do you mean the osg examples that
came with 1.2?

As a general note render to texture setup can normally be done totally
independently from the viewer, code can be ported across different
viewers and should still work.  The viewer also shouldn't make any
difference.  If you have problem with RTT then its likely that its a
pure scene graph set up issue.

As for the problem with your set up one really can't say what might be
up with so few details of how you've set up the scene graph.

Robert.
___
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


[osg-users] osg::CameraNode doesn't render the scene behind the osgProducer::Camera

2007-09-19 Thread zarrandreas
Hello,
I use osg::CameraNode to render the scene to a texture, and then I display
this texture on the screen aligned quad. 

Problem: If I fly throw the scene, osg::CameraNode don't display anything.

1) The osg::CameraNode clips the scene and this is the reason, why it
doesn't display anything
2) osg::CameraNode has position and the osgProducer::Camera clips the
osg::CameraNode, because osg::CameraNode is behind the
osgProducer::CameraNode.

What do you think? What can it be?

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osg::CameraNode doesn't render the scene behind the osgProducer::Camera

2007-09-19 Thread Robert Osfield
On 9/19/07, zarrandreas [EMAIL PROTECTED] wrote:
 Hello,
 I use osg::CameraNode to render the scene to a texture, and then I display
 this texture on the screen aligned quad.

 Problem: If I fly throw the scene, osg::CameraNode don't display anything.

 1) The osg::CameraNode clips the scene and this is the reason, why it
 doesn't display anything
 2) osg::CameraNode has position and the osgProducer::Camera clips the
 osg::CameraNode, because osg::CameraNode is behind the
 osgProducer::CameraNode.

 What do you think? What can it be?

What do I think?  I'm confused.

BTW, try updating to 2.x and use osgViewer rather than osgProducer, it
might not directly solve your problem but it should clear up some of
the confusion over different camera classes as there is just one -
osg::Camera ( what was called CameraNode).

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] osg::CameraNode doesn't render the scene behind the osgProducer::Camera

2007-09-19 Thread zarrandreas
Thanks for the tip, but I can't use osgViewer, because I use custom
framework and this framework use osgProducer::Viewer. 
The Prerender Example in osg framework use also osgProducer::Camera and
osg::CameraNode to render the scene to the texture. Maybe the problem is in
the using of the screen aligned quad (= I align the quad to the screen in
the vertex shader).

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: Wednesday, September 19, 2007 7:20 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] osg::CameraNode doesn't render the scene behind the
osgProducer::Camera

On 9/19/07, zarrandreas [EMAIL PROTECTED] wrote:
 Hello,
 I use osg::CameraNode to render the scene to a texture, and then I display
 this texture on the screen aligned quad.

 Problem: If I fly throw the scene, osg::CameraNode don't display anything.

 1) The osg::CameraNode clips the scene and this is the reason, why it
 doesn't display anything
 2) osg::CameraNode has position and the osgProducer::Camera clips the
 osg::CameraNode, because osg::CameraNode is behind the
 osgProducer::CameraNode.

 What do you think? What can it be?

What do I think?  I'm confused.

BTW, try updating to 2.x and use osgViewer rather than osgProducer, it
might not directly solve your problem but it should clear up some of
the confusion over different camera classes as there is just one -
osg::Camera ( what was called CameraNode).

Robert.
___
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