Hi all,
what I'm after is a sort of simple depth peeling, the aim is to render 2
different parts of a whole scene with different near/far settings to the
same render target. Something like:
* mainCamera (render the huge surrounding scene)
|
|-- huge scene
|
|-- detailCamera (render a closer object in detail with small z near/far)
|
|-- detailed geometry
I thought the best option was to place the detailCamera in scene, to share
the render target, and:
- set a custom near/far settings
- set the clear depth bit
- set the render order to post (or nested?)
but I couldn't get it to work.
I'm particular I have some doubts:
1. does a PRE/POST and a NESTED ORDER camera have the same behavior with
respect to sharing the mainCamera render target, when placed in-scene under
it?
2. for point 1, does anything change if mainCamera renders to the Frame
Buffer or to and FBO?
3. is there any other/more correct way to get 2 cameras to render to the
same FBO with different near/far settings?
Thank you!
Ricky
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org