[osg-users] Trackball Manipulator and RTT
Hi, I'm rendering a scene to texture and display it later on on an orthoquad with an orthocam.., now I want to manipulate the rtt cam (obviously not the orthocam) with a trackball manipulator. Could anybody point me to a tutorial or give me some addvise on where to start here!? Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=34410#34410 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Enable, Disable Multible Shaders
Thanks for the quick reply Robert! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31244#31244 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Enable, Disable Multible Shaders
Hi, First of, can I attach multible Shaders to one geometry node? I tried an it ran but obviosly only the last attached shader was rendered. Now is (if) there a way to toggle between these shaders? GeometryStateSet-setAttributeAndModes(programObject, StateAttribute::OFF); Has no effekt at all on any shader?! What am I doint wrong, workarounds? Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=31211#31211 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Headtracking
Hi folks I'm sitting here trying to set up a head tracking... I got an api that spits out a viewmatrix for the camera and now I have to get this matrix in the write place. I wrote an updateCallback for the Cameras (left/right) that looks like this. class updateCameraPosCallback : public osg::NodeCallback { virtual void operator()(osg::Node* node, osg::NodeVisitor* nv) { osg::Camera* cam = dynamic_castosg::Camera* (node); if(cam) { osg::Matrix mat(s-getMatrix().data()); cam-setViewMatrix( mat); } } }; I checked the matrix and it looks ok, but somhow the cameras don't move! Any tips?? Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30181#30181 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] osgViewer FullScreen on Horizontal Span
Well, I found the workaround myselve osg::GraphicsContext::WindowingSystemInterface* wsi = osg::GraphicsContext::getWindowingSystemInterface(); if (!wsi) { osg::notify(osg::NOTICE)Error, no WindowSystemInterface available, cannot create windows.std::endl; return; } unsigned int width, height; wsi-getScreenResolution(osg::GraphicsContext::ScreenIdentifier(0), width, height); osg::ref_ptrosg::GraphicsContext::Traits traits = new osg::GraphicsContext::Traits; traits-x = 0; traits-y = 0; traits-width = width; traits-height = height; traits-windowDecoration = false; traits-doubleBuffer = true; traits-sharedContext = 0; traits-overrideRedirect = true; the trais-overrideRedirect = true did it for me!! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30131#30131 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] osgViewer FullScreen on Horizontal Span
Hi, I'm trying to get a stereo setup to work with osg. I have Horzontal Span (Nvidia,Linux) Desktop over two screens and I start the viewer with osg::DisplaySettings::instance()-setStereo(true); osg::DisplaySettings::instance()-setStereoMode(osg::DisplaySettings::HORIZONTAL_SPLIT); but the viewer window will only fullscreen on one of the monitors. Tips anyone? Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=30124#30124 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Error when trying to start osgonv
Hi, Well I'm still pretty new to osg and I installed the binaries and stuff and for now I can work it... Now I try to get some high res meshes into my osg app by trying to convert a 3ds file with osgconv. But everytime I try to start osgconv I get this error: dyld: Library not loaded: @executable_path/../Frameworks/OpenThreads.framework/Versions/A/OpenThreads Referenced from: /Users/klemmer/CODING/OpenSceneGraph-2.8.3/Xcode/OpenSceneGraph/build/Release 64bit Cocoa/osgconv.app/Contents/MacOS/./osgconv Reason: no suitable image found. Did find: /Library/Frameworks/OpenThreads.framework/Versions/A/OpenThreads: no matching architecture in universal wrapper Trace/BPT trap I compiled the binaries with 64bit Cocoa if that helps... Is it possible since I think I installed the precompiled binaries for 2.8.0 there is a missmatch? I'm confused! Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=29622#29622 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] finding adjacent vertices
Hi, I have the vertexArray of a geometry and need to finde the curvatures of the mesh on each vertex. Thus I'm in need of all adjacent vertices of a vertex I'm trying to compute the curvature! Since the geometry is a Trianglestrip this would involve a lot of searching... I'm very new to OSG and forum search didn't turn up anything usefull. Is there a tool /library or funktion that could make my live easier?? Thank you! Cheers, Thomas -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=28662#28662 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org