I'm about to drop OSG into an app and I'm looking at how to do various
things. The built-in stereo support is great, but I'm not sure how to
do something that's easy in my current code - handle pre-split images.
I have to take a variety of images, mainly in streams, and handle them
correctly in the left and right eye. The formats I deal with are:
1. Dual-stream, for instance two images, or two tracks in a Quicktime
movie or AVI file (3D Blu-ray too, someday),
2. Left-Right,
3. Top-Bottom,
4. Possibly, interleaved.
Right now I've dealt mostly with 2 & 3, by padding two sets of tex
coords along with 3D images. I intend to deal with 1 and 4 by
splitting textures, maybe using 2 FBO attachments.
The issues/options seem to be:
Draw the images billboarded and at screen depth, so there's no extra
parallax introduced.
It would be great to be able to mask or draw a frame 'in-front' of the
image, even though it's at zero, so the edges appear to be at the same
depth as the content (or can be manipulated).
Then I can either use a cull callback, since I believe cull runs once
per eye, and reset tex-coords and/or which texture (or attachment of
an FBO) to use,
or place a duplicate item of each 3D texture in the graph, set it
correctly on update, then set the stereo cullsettings correctly.
Any suggestions? Did I miss a better technique?
Regards,
Bruce Wheaton
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org