Hi Chris,

On 19 November 2014 13:43, Chris Hidden <[email protected]> wrote:

> Thanks again Robert.
>
> I believe the  hudCamera->setGraphicsContext(windows[0]); approach is
> exactly as its written in the osghud example?
>

I just checked and it is :-)

Just shows I can't remember everything off the top of my head.  What I was
thinking of was manually creating the graphics context as you did in your
intro to this thread, but only creating one context and then sharing it
between both Camera.  I've just checked and this is what the osgdistortion
example does.

But I have fixed it now.  As you said, once I applied both a color and
> depth clear to the slave camera with pre render and only a depth buffer for
> the main camera it started working.
>

Horaahh!!



> If you don't mind I would kindly re ask if there is perhaps a resource or
> good book you could recommend for learning more about scene view and camera
> rendering?  I can always just google away of course, but recommendations
> are always great especially if its maybe a resource that is better tailored
> towards working with OSG. I do already have the cook book and the OSG
> beginners guide.


I'm afraid there aren't any modern OSG books beyond the cook book and the
3.0 beginners book.

The other resources are the OSG - get used to doing searches for all use a
different classes to see how they are used, both in examples and the core
implementations - for instance you'll find a range of Camera setup examples
that do different things with Cameras, and you'll also find a range of
different usages in the src/osgViewer/config directory.

What you won't find much of is examples of how to use osgUtil::SceneView,
this class is not one that most users will touch with modern OSG
applications, and is only now kept around as an implementation detail.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to