[osg-users] radius2

2015-02-03 Thread Jethro Leevers
Hi, Looking in the osg\BoundingBox template it seems to have a function radius2, this function seems to return 1/4 of the diameter squared, is there a reason for this? Code: return 0.25*((_max-_min).length2()); I thought the following would be a more accurate radius2 function Code:

[osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-03 Thread Jason MacDonald
I just checked out the latest revision from the trunk (rev 14678) and attempted to compile. I receive the following compiler error: In file included from C:/Users/jason/Desktop/dev/OpenSceneGraph/include/osg/StateAttribute:20:0, from

Re: [osg-users] FLATTEN_STATIC_TRANSFORMS Not Always Working (example attached)

2015-02-03 Thread Robert Osfield
Hi Markus, I'm in the middle of some complex work on shader support in the OSG which needs 100% of my brain capacity, once this is out of the way I'll have a look. Others are welcome to dive in and have a look what might amiss. Robert. On 3 February 2015 at 12:55, Markus Hein mah...@frisurf.no

Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-03 Thread Jason MacDonald
Update: I added the following to include/osg/Shader just above the Shader class definition #ifndef GL_GEOMETRY_SHADER_EXT #defineGL_GEOMETRY_SHADER_EXT 0x8DD9 #endif #ifndef GL_GEOMETRY_VERTICES_OUT_EXT #defineGL_GEOMETRY_VERTICES_OUT_EXT 0x8DDA #endif #ifndef

Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-03 Thread Robert Osfield
Hi Jason, The GL_GEOMETRY_SHADER_EXT should now be GL_GEOMETRY_SHADER as this is what GLDefines and modern OpenGL provides. I have checked this fix into svn/trunk. Could you update to latest in svn/trunk and let me know how you get on. Cheers, Robert On 3 February 2015 at 15:24, Jason

Re: [osg-users] OSG 3.3.3/trunk won't load certain files

2015-02-03 Thread Robert Osfield
Hi Sebastian, I'm too deep in the shader work right now to pop up and take on another topic, so will have to return to issues once this work is wrapped up - should be in the next couple of days. W.r.t serialization, work most of my testing I used .osgt and .osgb so for a good range of uses it

Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-03 Thread Jason MacDonald
Thanks Robert, GLDefines attempts to include osg/GL I don't seem to have this file, nor can I locate it in the SVN anywhere. I don't understand your question: how you get on I use TortoiseSVN and connect to http://svn.openscenegraph.org/osg Building with: Windows 7 64bit Mingw64 4.8.1 posix seh

Re: [osg-users] Stat handler display corrupted

2015-02-03 Thread Cary, Karl A.
I've seen something VERY similar when we were doing custom OpenGL in an overridden draw command and didn't clear ALL of the state objects that we manipulated. Everything else in the scene was fine except for the stats handler. It's pure luck that the stats is the only thing messed up.

Re: [osg-users] GL_GEOMETRY_SHADER_EXT not declared

2015-02-03 Thread Jason MacDonald
Ok, solved the GL include problem, its created by cmake and put in the output path. Thanks From: osg-users [mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Jason MacDonald Sent: Tuesday, February 03, 2015 10:56 AM To: OpenSceneGraph Users Subject: Re: [osg-users]

[osg-users] If it is easy to set the transparency of the plane area only inside the cut area

2015-02-03 Thread Jim Feng
Hi, I followed the example and used ClipPlane of the osg::ClipNode to cut the cow model as in figure 1. What I want to do is: only make the plane area which is inside the cut bound of the model to be transparent but the rest plane area remains translucent. As indicated with red curve in

Re: [osg-users] [build] Xcode: Cannot find install manifest

2015-02-03 Thread Robert Graf
Easiest solution: Simply activate the ALL_BUILD scheme from the drop-down menu at the top of the window. It defaults to uninstall, which probably is not desirable. -Robert -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=62583#62583

[osg-users] OSG 3.3.3/trunk won't load certain files

2015-02-03 Thread Sebastian Messerschmidt
Hi, I've just created some osgb/osgt files and most of them cannot be loaded anymore. They are failing with InputStream::readObject(): Unsupported wrapper class ☺ for osgb files and AsciiInputIterator::readProperty(): Unmatched property Values, expecting UniqueID for osgt. I've attached the

Re: [osg-users] Stat handler display corrupted

2015-02-03 Thread Robert Osfield
Hi Mark, I haven't seen an issue like this before. Somehow the state has got screwed up. Are you using custom OpenGL or 3rd party code? Robert. On 31 January 2015 at 22:28, Mark Pai m...@hotmail.com wrote: Hello, I no longer get to see that nice stat handlers HUD display (pl see the

Re: [osg-users] (no subject)

2015-02-03 Thread Robert Osfield
Hi Philippe, Unfortunately the forum has messed up the attachments. The mailing list is such much more reliable for attachments, alas forum's are so modern that most new users seem to prefer it. Could you just email me directly the changed files. Thanks for you patience, Robert. On 3 February

[osg-users] [build] Xcode: Cannot find install manifest

2015-02-03 Thread Robert Graf
Howdy all, I was wondering if anyone has run into this Cannot find install manifest build error with Xcode, or knows how to fix it: Code: PhaseScriptExecution CMake\ Rules

[osg-users] Node/Object Serialization

2015-02-03 Thread Jeremy
Is the serialization support of osg in active development? I made an attempt to implement a custom osgDB::OutputStream class along with writeObjectFields in order to try and piggy back the built in serialization functionality in order to be able to populate a GUI tree view I'm working on.