Chriss10 wrote: > I'm a beginner with OSG. > Can you please give me some code snippets? > Thanks
Well I'm sorta on my Christmas vacation right now! I would have to reproduce it on my home system, but mostly it is barrowed code from the slave cameras that are used in the hang glider simulator that is part of the examples that included in OSG. There is a part that sets up the screen called Traits where you can set up the what real estate on the screen you’re going to take up that I barrowed and added the setting overrideRedirect = true; Below that was where 4 cameras are defined. I needed only one to start and basically I set up the area and position of the camera on the screen – in this case start at 0 0 and set the width to the total of the two screens I had 3200 and the height 1200. Then attach the camera to the viewer by declaring it as a slave camera - the example is also there in the hang glider simulator code. And before you start your viwer.run() loop, you invoke the viewer function setUpViewAcrossAllScreens() and your set. Youl find that the best way to understand OSG is to run and view the source code for the examples. Even in the class I took on the subject they pay emphases of that. If you had the chance to look at my code you would see allot of rip-offs of the example code in it. D Glenn ------------------------ D Glenn (a.k.a David Glenn) - Moving Heaven and Earth! ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=35147#35147 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

