Re: [osg-users] Question about switching between MatrixManipulator

2009-10-12 Thread Shiina Ringo
Hi, JP Thanks for your advice. I have tried setHome() befor, and this funtion just set the default view position for the corresponding MatrixManipulator. Here my problem is that: when I hit the button to switch the 2 MatrixManipulator, if I switch the trackball to the manipulator that I defined

[osg-users] Multiple Windows

2009-10-12 Thread Russell Morris
Hey all, I've been searching the forums this afternoon and can't seem to find the answer to my question. I have a viewer setup with the following: rViewer = new osgViewer::Viewer(); wm = new osgWidget::WindowManager(rViewer, width, height, MASK_2D, osgWidget::WindowManager::PD_NONE);

[osg-users] Screenshot of Current view at specific size using ScreenCaptureHandler

2009-10-12 Thread Andrew Thompson
Hi there, I'm using the ScreenCaptureHandler to capture a screenshot of the current view and save it to disk. I would ideally like to save at a specific resolution, say 1280x1024, however the handler is saving the image at the current size of the viewer. My application is a CAD style applica

Re: [osg-users] Screenshot of Current view at specific size using ScreenCaptureHandler

2009-10-12 Thread Jean-Sébastien Guay
Hi Andrew, I'm using the ScreenCaptureHandler to capture a screenshot of the current view and save it to disk. I would ideally like to save at a specific resolution, say 1280x1024, however the handler is saving the image at the current size of the viewer. The ScreenCaptureHandler is not design

Re: [osg-users] Screenshot of Current view at specific size using ScreenCaptureHandler

2009-10-12 Thread J.P. Delport
Hi, also see here for inspiration: http://forum.openscenegraph.org/viewtopic.php?t=3482 jp Andrew Thompson wrote: Hi there, I'm using the ScreenCaptureHandler to capture a screenshot of the current view and save it to disk. I would ideally like to save at a specific resolution, say 1280x1024

Re: [osg-users] Screenshot of Current view at specific size using ScreenCaptureHandler

2009-10-12 Thread J.P. Delport
http://article.gmane.org/gmane.comp.graphics.openscenegraph.user/49179/match=osgposter J.P. Delport wrote: Hi, also see here for inspiration: http://forum.openscenegraph.org/viewtopic.php?t=3482 jp Andrew Thompson wrote: Hi there, I'm using the ScreenCaptureHandler to capture a screenshot o

[osg-users] Is there any examples about OpenThreads?

2009-10-12 Thread Shiina Ringo
Hi, Here I just need to implement a Timer for my animation control application , using the OpenThreads library. But actually I have found that it is very hard to work on this multi-threads programming for me, especially connected with OSG. So, I just want to find any example programme, which usi

Re: [osg-users] Is there any examples about OpenThreads?

2009-10-12 Thread Jean-Sébastien Guay
Hi Shiina, So, I just want to find any example programme, which using the OpenThreads library, and It could be very helpful for me. Well technically, the whole of OSG is an example of OpenThreads... But that might not be useful to you since it's a lot of code to look at. Essentially, you j

[osg-users] Silouhette computation and osgShadow::OccluderGeometry

2009-10-12 Thread Tanguy Fautre
Hi, I need to check whether an object occludes another object behind it. To do so, I currently use a class derived from osgShadow::OccluderGeometry to compute the occlude silouhette from the camera point of view, and create an osg::Polytope from that silouhette. Going through osgShadow::Occ

Re: [osg-users] SVN commit bottleneck

2009-10-12 Thread Chris 'Xenon' Hanson
Robert Osfield wrote: > Reviewing submissions is a double edge sword, as without keeping tabs > on what is happening with the code I'm in poorer position to do > support and fix bugs. Reviewing submissions is actually it's not the > most burdensome side of my work as project lead. Driving release

Re: [osg-users] Is there any examples about OpenThreads?

2009-10-12 Thread Shiina Ringo
Hi, J-S Thank you for your fantastic advice! Cheers, Shiina -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=18209#18209 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.open

[osg-users] How to access Material Palette of flt file at runtime?

2009-10-12 Thread Roger Rawls
Hi, In creator, I defiened several materials in Material Palette, and set one of them to model. At OSG runtime, Can I access the Material Palette and use materials in it? say, set another material in palette to loaded model. are there any code clues or examples? Any help will be appreciated.

[osg-users] Solved Re: VPB: How to get and convert model coordinates?

2009-10-12 Thread Alejandro Aguilar Sierra
Hi: The solution was in the same example code I am using (osgpick), but Glenn Waldron from osggis told me the hint. Quotiong: { 1) Find the osg::CoordinateSystemNode (CSN) atop your VPB database scene graph; 2) Get the EllipsoidModel from the CSN 3) call EllipsoidModel::convertXYZToLatLongHeight(

Re: [osg-users] Multiple Windows

2009-10-12 Thread Ümit Uzun
Hi Morris, Did you try to close only viewer; rViewer->getEventQueue()->keyPress(osgGA::GUIEventAdapter::KEY_Escape); rViewer->getEventQueue()->keyRelease(osgGA::GUIEventAdapter::KEY_Escape); Regards. Ümit Uzun 2009/10/12 Russell Morris > Hey all, > I've been searching the forums this