Re: [osg-users] osg latest developer release, memory leak under linux

2010-05-17 Thread Mathias Fröhlich
Good morning (MET), On Wednesday 12 May 2010, Jason Daly wrote: > RHEL 5 has the same behavior. Unless you explicitly specify -march=i686 > (or something similar) for CFLAGS, it fails to detect GCC builtins. It > hasn't been a big problem for me, so I just chalked it up to RHEL 5 > being past i

Re: [osg-users] problem with osgUtil::IntersectVisitor and osg::LineSegment

2010-05-17 Thread Olivier Martinaud
Hello, I checked the installation of osg. I was not mixing debug and release. But to be sure I uninstalled debug. However I still have the same probem as before. I copied the stack trace if it helps. Do you have any idea ? osg65-osg.dll!100042aa() [Les frames ci-dessous

[osg-users] How to delete osg graphs properly?

2010-05-17 Thread Ku Krapox
Hi all, It's me again, with another practical problem : how to delete properly my osg objects when they contain lots of stuff? Basically I have a PAT with lots of groups and nodes inside it. At some point I need to delete it, then reinstanciate it right away. But I found out that doing this pro

Re: [osg-users] How to delete osg graphs properly?

2010-05-17 Thread Torben Dannhauer
Hi, hold your osg nodes (or the root node of your complete scenegraph) with osg reference pointer (osg::ref) instead standard pointers. Assign NULL to this pointer, than the ref pointer doesn't point any longer the node, and the node will be destroyed - unless you point with other pointers to t

[osg-users] GLES problems

2010-05-17 Thread Roman Grigoriev
Hi, I've managed to compile OSG svn on beagleboard but here I got some problems - I can't run examples due to improper fixed point pipeline conversion here is output in attachment Thank you! Cheers, Roman -- Read this topic online here: http://forum.openscenegraph.org/viewtop

[osg-users] problem with transparency on rtt screenshot

2010-05-17 Thread Lucas SART
Hi, I still have problems with a rtt camera use for screenshot. Without transparency it works fine, but when I try to save my screenshot in png (GL_RGBA) format I have problems with the transparency particulary when I set the diffuse of a material different to 1 I have a strange result only on

Re: [osg-users] How to delete osg graphs properly?

2010-05-17 Thread Jean-Sébastien Guay
Hello Ku, In addition to Torben's answer, which was good, I'll add this: My object is in an osg::ref_ptr, so I tried to .release() it first, it didn't quite change anything... Actually it did: that's what introduced your large memory leak. ref_ptr::release() tells that ref_ptr to stop manag

Re: [osg-users] Development Environment

2010-05-17 Thread Wojciech Lewandowski
Hi Guys, FYI: Yesterday I tried to build OSG with 2010. Last stable CMake 2.8.1 is generating some cryptic errors so I checked most recent CMake 2.9.x from nightly builds. That version seems to work, so if you want to work with OSG under VS 2010 try nightly builds CMake version. Cheers, Wojt

Re: [osg-users] How to delete osg graphs properly?

2010-05-17 Thread Paul Martz
Ku Krapox wrote: Hi all, It's me again, with another practical problem : how to delete properly my osg objects when they contain lots of stuff? Basically I have a PAT with lots of groups and nodes inside it. At some point I need to delete it, then reinstanciate it right away. But I found out t

Re: [osg-users] GLES problems

2010-05-17 Thread Roman Grigoriev
Hi, Ok guys I found that OpenGL ES needs qualifiers so I patched ShaderGen and State and all works Here is patched files in attachment if someone needs them Thank you! Cheers, Roman -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27937#27937

Re: [osg-users] Development Environment

2010-05-17 Thread Jean-Sébastien Guay
Hi Wojtek, FYI: Yesterday I tried to build OSG with 2010. Last stable CMake 2.8.1 is generating some cryptic errors so I checked most recent CMake 2.9.x from nightly builds. That version seems to work, so if you want to work with OSG under VS 2010 try nightly builds CMake version. Are you goin

[osg-users] Recurrent warning on SVN trunk

2010-05-17 Thread Jean-Sébastien Guay
Hi Robert, After updating now that you've moved the header back up in GLExtensions, I'm getting this recurrent warning when compiling (VS2008 32 bit build on Windows 7 x64) 3>C:\Dev\OpenSceneGraph-SVN\OpenSceneGraph\include\osg/observer_ptr(33) : warning C4505: 'osg::WeakReference::objectDe

Re: [osg-users] Development Environment

2010-05-17 Thread Wojciech Lewandowski
Nope ;-) With VS2010 Express Beta I was using dependencies for 2008 + 2008 runtime. I intend to do the same before 3rd pary libs appear for VS 2010. WL - Original Message - From: "Jean-Sébastien Guay" To: "OpenSceneGraph Users" Sent: Monday, May 17, 2010 4:05 PM Subject: Re: [osg-

Re: [osg-users] Recurrent warning on SVN trunk

2010-05-17 Thread Robert Osfield
HI JS, The void objectDeleted(void*) method is inherited from osg::Observer, so it's odd that the compiler would complain that it's unreferenced. Perhaps VS2008 requires this templated implementation to be declared virtual as well. Could you try changing: template struct WeakReference : public O

Re: [osg-users] Recurrent warning on SVN trunk

2010-05-17 Thread Jean-Sébastien Guay
Hi Robert, Perhaps VS2008 requires this templated implementation to be declared virtual as well. Could you try changing: ... To see if that quietens down the compilers and stops it from discarding the implementation. Nope, the result is the same. I guess the warning just says that *in tha

Re: [osg-users] Recurrent warning on SVN trunk

2010-05-17 Thread Robert Osfield
On Mon, May 17, 2010 at 4:09 PM, Jean-Sébastien Guay wrote: > Nope, the result is the same. I guess the warning just says that *in that > compilation unit*, the method was not called, so no code was generated for > it. I think it's not too dangerous and actually I would say it's part of the > job

Re: [osg-users] problem with osgUtil::IntersectVisitor and osg::LineSegment

2010-05-17 Thread Martin Naylor
Hi Oliver, Sorry to hear it wasn’t as simple... It could be a bug, but normally someone else would 'pipe up' and say that was fixed :) Does look like a problem with pickhandler, can you post some source code to recreate the problem? Have you tried the examples and do the work ok? Also you may w

Re: [osg-users] Recurrent warning on SVN trunk

2010-05-17 Thread Jean-Sébastien Guay
Hi Robert, Anyways, any other things you want me to try? Afraid not. We could just use a pragma to ignore it, but I'd rather get to the bottom of it and address it directly. OK, then anyone else have any ideas of what we could try? Anyone else had this warning in the past, and what did you

Re: [osg-users] Recurrent warning on SVN trunk

2010-05-17 Thread Fabien Lavignotte
Hi Jean Sebastien, I have removed the warning by putting the declaration of objectDeleted() directly into the class definition. See attached file. It seems to be a compiler bug. I love template :) Fabien -Original Message- From: osg-users-boun...@lists.openscenegraph.org [mailto:osg-u

Re: [osg-users] How to delete osg graphs properly?

2010-05-17 Thread Ku Krapox
Hi again, thanks for your responses! @ Paul : A good piece of advice for sure... I didn't even know there was a quick start guide :-* Thank you. @ Skylark : Wow thanks a lot for this very clear explanation!! It seems I was doing exactly the wrong thing... plus, I had simple pointers everywhere.

[osg-users] [ANN] osgScaleViewer

2010-05-17 Thread Stefan Eilemann
Hello All, We'd like to announce the availability of osgScaleViewer, a scalable, cluster-ready OpenSceneGraph viewer based on the Equalizer parallel rendering toolkit. Th integration with Equalizer offers a number of high-level features to developers searching to develop cluster-based OSG applic

Re: [osg-users] create several scenes

2010-05-17 Thread Daniel Sims
hi.. try to search in google to find the solution of your problems. You can find different solutions in the lists.. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27869#27869 ___ osg-users mailing l

Re: [osg-users] problem with osgUtil::IntersectVisitor and osg::LineSegment

2010-05-17 Thread Olivier Martinaud
Hello Martin, I'm using osg version 2.8.3 with visual C++ express, and my os is windows xp. I also tried the basic examples I could find on tutorials and on the osg website but I still have the same problem :(. I guess it comes from my configuration. I used this tutorial to install osg : http:

Re: [osg-users] Develop for XP/Vista/Windows 7

2010-05-17 Thread Martins Innus
I was able to test on machines locally and had the same results on both Windows 7 and Vista with both ATI and NVidia graphics. It turns out that Visual Studio was including OpenGL32.dll in my .msi as an automatically detected dependency which I had never noticed. I removed that and everything

Re: [osg-users] problem with osgUtil::IntersectVisitor and osg::LineSegment

2010-05-17 Thread Martin Naylor
Hi Oliver, Mmmm isn't IntersectVisitor Depreciated, not sure what version that was? Try IntersectionVisitor instead? http://www.openscenegraph.org/projects/osg/wiki/Support/Tutorials/Intersecti ons Maybe Robert can advise :) ? Martin. -Original Message- From: osg-users-boun...@lists

Re: [osg-users] Develop for XP/Vista/Windows 7

2010-05-17 Thread Jean-Sébastien Guay
Hi Martins, It turns out that Visual Studio was including OpenGL32.dll in my .msi as an automatically detected dependency which I had never noticed. I removed that and everything works great. Hah! I've gotten that problem too at one point... Pretty braindead of the MSI to include that. Glad

Re: [osg-users] How to delete osg graphs properly?

2010-05-17 Thread David Glenn
Wouzz wrote: > > I have a subsidiary question : let be a node defined inside a method, > existing only as a child of a group. Is this node deleted after calling the > removeChild method? 'cause I'm doing this everywhere... > > -- > void test() > { > ref_ptr myNode = new Node(); > ref_

Re: [osg-users] reuse of clipping planes?

2010-05-17 Thread Jason Jerald
Thank you Robert, this is some very useful information. The most recent related thread I could find on this topic is from Aug/Sept 2007: "RFC: Positional state container in the render bin, was: clip planes" There is discussion in that thread about using renderbins. What are the advantages of usi

Re: [osg-users] problem with osgUtil::IntersectVisitor and osg::LineSegment

2010-05-17 Thread Olivier Martinaud
Hi Martin, Actually I had tried IntersectionVisitor before. I had the same problem, which is why I switched to IntersectVisitor. Olivier -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=27956#27956 _