[osg-users] Retrieve Wold matrix while animating

2013-01-22 Thread Peterakos
Hello. I try to create a multi pass algorithm and i am stuck. I use my own view and projection matrix for an absoluted positioned camera. But i cant figure out how to handle the World matrix. Glsl gives me gl_ModelViewMatrix but i need only the model matrix for the current vertex being processed.

Re: [osg-users] Lock the aspect ratio while allowing the window to be resized

2013-01-22 Thread Laurens Voerman
Hi Ethan, I think this should do the trick: camera->setProjectionResizePolicy(osg::Camera::FIXED); Laurens. On 1/21/2013 4:14 PM, Ethan Fahy wrote: Hello, Is there any way to set up an osgViewer::Viewer with a locked aspect ratio that still allows the user to adjust the window size by draggi

Re: [osg-users] OS/X 10.6.8 with CMake 2.8.8 broken

2013-01-22 Thread Remo Eichenberger
Hi Adrian, I used 10.8/7 and have same issue like you. I added something like that: set(CMAKE_OSX_DEPLOYMENT_TARGET 10.7) set(CMAKE_OSX_SYSROOT "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk" CACHE STRING "" FORCE) Cheers, Remo ---

Re: [osg-users] Retrieve Wold matrix while animating

2013-01-22 Thread Sergey Polischuk
Hi most straightforward way is to use gl_ModelViewMatrix * osg_ViewMatrixInverse Cheers. 22.01.2013, 13:16, "Peterakos" : > Hello. > > I try to create a multi pass algorithm and i am stuck. > I use my own view and projection matrix for an absoluted positioned camera. > But i cant figure out how

[osg-users] How to extend my screen space handling to z-direction?

2013-01-22 Thread Charma Man
Hi osg-community, I am working on a stereoscopic renderer which can receive mouse and on-screen-touch-events to handle translations of the scene. Now I want to extend this to handle gestures of the Xbox-Kinect camera. I already got it working for the x and y on-screen translation. Unfortunatly

Re: [osg-users] Lock the aspect ratio while allowing the window to be resized

2013-01-22 Thread Ethan Fahy
Hi Laurens, I tried setting the resize policy as you suggested for the osgViewer::Viewer default camera as well as the rtt camera and hud camera that are in my project, but I was still able to freely resize my viewer window without it locking. I didn't get any errors, it just didn't lock the w

[osg-users] Bug in osgGA::GUIEventHandler in OSG 3.0.1 release (fixed in current trunk).

2013-01-22 Thread Jesper D. Thomsen
Hi guys, Our software uses OSG for displaying a modelview for our muscular-skeletal simulation software. In our latest beta-version we have switched to OSG 3.0.1, but we just yesterday found a bug related to osgGA::GUIEventHandler, which we use for handling mouse events in our modelview. If we

Re: [osg-users] Bug in osgGA::GUIEventHandler in OSG 3.0.1 release (fixed in current trunk).

2013-01-22 Thread Robert Osfield
Hi Jesper, I'm just wrapping up some work and plan to make a developer release this week. I don't have an schedule for the next stable release, but would like to get one out in the next few months. Robert. On 22 January 2013 14:32, Jesper D. Thomsen wrote: > Hi guys, > > > > Our software uses

Re: [osg-users] Lock the aspect ratio while allowing the window to be resized

2013-01-22 Thread Ethan Fahy
My last question was pretty naive after doing a bit of google searching. The osg window is OS-dependent and appears to be completely separate from the projection matrix. I think I'll worry about getting the projection matrix set correctly first then worry about making sure that the view window

Re: [osg-users] Lock the aspect ratio while allowing the window to be resized

2013-01-22 Thread Laurens Voerman
Hi Ethan, I did not understand your question correctly. Setting the camera to camera->setProjectionResizePolicy(osg::Camera::FIXED) will fix the projection, not the window. As the version you want is not implemented in osg, you will need to catch resize attempts and force the window to resize

Re: [osg-users] Modifier key mask not working under OS X

2013-01-22 Thread Robert Osfield
Hi François, I don't have an Mac or OSX expertise to help with this particular issue, I'll have to defer to others with relevant systems and expertise. One thing I'd add is that it would checking to see how the osgkeyboard runs on your system, and also could you tell us whether you've built usin

Re: [osg-users] Lock the aspect ratio while allowing the window to be resized

2013-01-22 Thread Paul Martz
I also misunderstood the question. Apparently, you want to allow the window to be resized, but only in such a way that the window's aspect ratio is always the same. This really has little to do with OSG (except that you might use an osgGA event handler to capture the resize events and do the app

[osg-users] Most efficient way to get a single pixel RGBA from an FBO texture

2013-01-22 Thread Ethan Fahy
Hello, I have an rtt camera that renders float32 values to an FBO. I use osgCompute to process this FBO and output to the screen without copying anything back to CPU memory. I would like to add a HUD that shows the float32 value at the center of the FBO texture (if there are an odd number of

Re: [osg-users] Modifier key mask not working under OS X

2013-01-22 Thread Francois Genolini
Hi, Configured CMake to target Xcode, cmake automatically selected OSG_WINDOWING_SYSTEM to be Cocoa and CMAKE_OSX_ARCHITECTURES is set to x86_64. This pretty much excludes legacy Carbon (although cmake does find CARBON_LIBRARY). OSG libs then built using the XCode GUI. Reading the various fo

[osg-users] VBO as default

2013-01-22 Thread Terry Welsh
I don't think this has been asked in a while. Is it time to switch Drawables to use VBOs instead of Display Lists by default? I *always* switch it manually, except for a couple exceptional situations. I think VBOs are at least as fast as Display Lists and sometimes much faster on modern hardware. W