[osg-users] Are there any plans for GPGPU utiliziation in OSG?
Hi, Are there any plans for utilizing General Purpose GPU for matrix operations? At SIGGRAPH 2008, there was a lot of discussion about utilizing the GPU this way and some hardware independent libraries for using GPGPU do exist. I am currently looking into this for future projects. Thank you, Judie ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] More help with state changes
This is an exisiting project. Here is the basic node structure: Root | NodeA / \ NodeB NodeC I want to disable writes to the color buffer before Node A, and then I don't want to enable them until Node C. That way, Node A, and Node B are drawn but only the depth buffer is updated, but then when Node C is drawn, both the color buffer and the depth buffer are updated. Here is my code: osg::ColorMask *colormaskOff = new osg::ColorMask(false, false, false, false); osg::ColorMask *colormaskON = new osg::ColorMask(true, true, true, true); osg::StateSet* state = NodeAParent->getOrCreateStateSet(); state->setAttribute(colormaskOff); osg::StateSet* state2 = NodeCParent->getOrCreateStateSet(); state2->setAttribute(colormaskON); So you can see my dilema. In the code I see that the glColorMask gets called with the correct data, however, because of the graph topology, NodeA and NodeB get drawn to the color buffer even though I disabled it in the Root (NodeAParent), it gets enabled for NodeA (NodeCParent). Is it possible to stick come kind of node inbetween NodeA and NodeC? What type of node should that be? Can there be a blank node? Thanks, Judie ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Can I disable color buffer writes before a certain node and enable it after?
Hi, Can I do this? I want to insert a state node in the scene graph before and after a certain node (that has geometry) that will disable color buffer writes and then enable them. flow like this: start->disable color buffer writes -> draw node ->enable color buffer writes -> draw next node Is this possible? Thanks, Judie ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Examples for using image as a background
Trying to add video capture as the background to a scene. I am not very familiar with osg and am working in an existing code base. The render loop calls SceneView::Draw which apparently does all the traversal. Unfortunately for me, it also clears the color buffer so I don't see my video capture if I enable this call, but then if I disable it, I only see my video capture - drawn using OpenGL, because of course, the scene is not drawn. Is there a way to disable clearing the color buffer? Another way would be if I could set the video capture as the background. I have searched and see there is such a thing as a osg::ImageBackground object. However, I searched the osg solution (osg 2.0) and nothing was found has the name changed? http://www.opensg.org/doc-1.6.0/classosg_1_1ImageBackground.html Does anybody know of some sample code? Thanks, Judie ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] Need Build Support OSG 2.2.0\STLPort 4.5\VC 6
Hi Robert, I am a new user. I newly downloaded OSG 2.2.0.. I read the documentation and followed the instructions for VS6. It did not work so I figured I had missed something. It was not a flame! I work for a Japanese company in the USA and I have only worked here for 5 months and they use VS6 for this monolithic code base. So I am currently trying to port it to VS8 (as of yesterday). It requires a lot of changes and Japan has to approve every code change (with no body who will take responsibility). Anyway, I was mislead by the installation documentation to believe that I could install STLPort 4.5 and OSG 2.2.0 would work with VS6. Thanks, Judie ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] Need Build Support OSG 2.2.0\STLPort 4.5\VC 6
Hi, I am new to this community. To qualify, let me say that I have downloaded all the files for building the OpenSceneGraph 2.2.0 osg core plus the applications and examples. I have configured builds for both VC 8 and VC 6. I installed SVN so I could optain the latest 3rdParty items. I have built the VC 8 configuration just fine. My problem is, our project has to be built using VC 6. So I also read and configured everything for VC 6. I built and used STLPort 4.5 but I get the following error when used with the osg build (and I googled and tried everything I could find to resolve it - rest assured my stlPort include and library paths come before the Microsoft SDK ones). When using STLPort 4.5 - I get these errors for the OpenThreads: Win32Thread.cpp C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1392) : error C2733: second C linkage of overloaded function 'InterlockedIncrement' not allowed C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1390) : see declaration of 'InterlockedIncrement' C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1399) : error C2733: second C linkage of overloaded function 'InterlockedDecrement' not allowed C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1397) : see declaration of 'InterlockedDecrement' C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1407) : error C2733: second C linkage of overloaded function 'InterlockedExchange' not allowed C:\PROGRAM FILES\MICROSOFT SDK\INCLUDE\winbase.h(1404) : see declaration of 'InterlockedExchange' But we have an older version of STLPort that is used to build our project in VC6 which also has the 1.2 version of OpenSceneGraph. I was hoping to update us to the 2.2.0 version, however. So when I use this older version of STLPort (and I can't find the version number anywhere), It gets past the above error and the OpenThreads project builds just fine, but then I get the following errors: Configuration: osg - Win32 Debug Compiling... AnimationPath.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized Billboard.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized BufferObject.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg \BufferObject.cpp(408) : error C2374: 'itr' : redefinition; multiple initialization C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg \BufferObject.cpp(356) : see declaration of 'itr' C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg \BufferObject.cpp(577) : error C2374: 'itr' : redefinition; multiple initialization C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg \BufferObject.cpp(525) : see declaration of 'itr' Camera.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized ClusterCullingCallback.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized ComputeBoundsVisitor.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized CopyOp.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized DrawPixels.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized Drawable.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized FrameBufferObject.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized GLObjects.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized Geode.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized Geometry.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized GraphicsContext.cpp C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include\osg/ OperationThread(35) : error C2437: 'Referenced' : already initialized C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg \GraphicsContext.cpp(603) : error C2039: 'iterator' : is not a member of 'OperationQueue' C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\include \osg/OperationThread(97) : see declaration of 'OperationQueue' C:\Program Files\OpenSceneGraph\osgsrc\OpenSceneGraph\src\osg \GraphicsContext.cpp(603) : error C2065: 'iterator' : undeclared identifier C:\Program Files\OpenSceneGraph\osgsrc\