[osg-users] Is it safe to put ref_ptr objects in a std container?

2009-09-19 Thread zhuliangxiong
Hi there, i am wonder whether it is safe to put ref_ptr objects to a std container. sometimes i want to keep a list of nodes and process them later, and also i do not want these nodes be released before be processed . so i put them in a vectorref_ptrNode or listref_ptrNode. also,because i use

Re: [osg-users] Problems building Plugins dicom - RESOLVED

2009-09-19 Thread Robert Osfield
Hi Jason and J-S, On Sat, Sep 19, 2009 at 2:30 AM, Jean-Sébastien Guay jean-sebastien.g...@cm-labs.comYou could add something like this to the src/osgPlugins/dicom/CMakeLists.txt: IF (WIN32) SET(TARGET_EXTERNAL_LIBRARIES Ws2_32.lib) ENDIF() I've just added this to

Re: [osg-users] Is it safe to put ref_ptr objects in a std container?

2009-09-19 Thread Robert Osfield
Hi Abe. Zhu, It is perfectly safe to use ref_ptr without templated container classes list vector, list or even QList. If you look at the OSG sources you'll find lots of examples of std::vector and and std::list, std::map, std::set all being used this way. One of the key aspects of smart

[osg-users] [osgPlugins] Using Collada (osgdb_dae) Writer with Google Earth

2009-09-19 Thread Reed Whittington
Hi Osgers, Im getting familiar with what others have found on this subject. https://collada.org/public_forum/viewtopic.php?f=12t=1442start=0 http://forum.openscenegraph.org/viewtopic.php?t=2932 http://forum.openscenegraph.org/viewtopic.php?t=3042 And have tried using the writer modes:

Re: [osg-users] Problems building Plugins dicom - RESOLVED

2009-09-19 Thread Jean-Sébastien Guay
Hi Robert, I've just added this to src/osgPlugins/dicom/CMakeLists.txt and checked it into svn/trunk, let me know if it works fine or not, Sorry, I copy-pasted that from another CMakeLists.txt and forgot to change the lib name, the dicom plugin needs wsock32.lib not Ws2_32.lib... And Jason

[osg-users] What is the OSG_GEN_INCLUDE when build VPB?

2009-09-19 Thread zhuliangxiong
Hi there, CMake ask me to define a OSG_GEN_INCLUDE_DIR when configuring a Visual Studio 2008 solution of VPB (tags 0.9.10). I can find all the OSGXX_LIBRARY and OSG_INCLUDE_DIR in my compute, however, i do not know what is OSG_GEN_INCLUDE. Regards, Abe.

Re: [osg-users] Good way to see things in only one view

2009-09-19 Thread Paul Martz
Hi J-S -- Would a custom cull callback help? You could decide per-View whether you are culled or not. Paul Martz Skew Matrix Software LLC _http://www.skew-matrix.com_ http://www.skew-matrix.com/ +1 303 859 9466 Jean-Sébastien Guay wrote: Hi all, I was wondering if someone could suggest a

Re: [osg-users] [osgPlugins] Using Collada (osgdb_dae) Writer with Google Earth

2009-09-19 Thread Reed Whittington
Hi again, Okay, I have more information on what is happening. Google Earth seems to like only triangles. After the osg tessellation optimization the primitives are tristrips and trifans. And before optimization there are mainly polygons (n sided faces). So I think what I am looking for is a

Re: [osg-users] [osgPlugins] Using Collada (osgdb_dae) Writer with Google Earth

2009-09-19 Thread Gordon Tomlinson
Hey Reed ! Interesting catch on GE, strange they won't support standard primitives, Note I already got bit as they don't support plain old GL_POINTS either in KML or COLLADA makes it hard to show point clouds in GE Making triangles is not really an optimization it's more a de-optimization :)