Re: [osg-users] Robert: I figured it out :-) (was: Is it possible to know when the node-graph is 'dirty'?)

2008-07-25 Thread Viggo Løvli
Hi Robert, My current code instances a new one each cull traverse. I wonder if that means I get a sizeof(osgUtil::RenderBin) memory leak each cull-traverse? Anyway, I am going to try to multi-buffer it. I should be able to count the number of cull-traverse calls I get for each update

[osg-users] Defining Local Coordinate Center For Every Node

2008-07-25 Thread Ümit Uzun
Hi all, Firstly sorry for simple question, but I can't find related topics on the web. How can I change my models's center coordinate? I have lots of components, I am trying to collect them in one model, and I want to control one part in it's local coordinate (for example I want to rotate it

Re: [osg-users] transparency becomes dark

2008-07-25 Thread dimi christop
Hi, I dont see that you are doing anything wrong... It was not working for me either though but I think you messed somehow the logic up. Here is an example based on what you sent which makes the model (I used cow.osg) fade in/out. Hope this helps - Original Message From: Dieter

Re: [osg-users] Robert: I figured it out :-) (was: Is it possible to know when the node-graph is 'dirty'?)

2008-07-25 Thread Robert Osfield
Hi Viggo, On Fri, Jul 25, 2008 at 7:22 AM, Viggo Løvli [EMAIL PROTECTED] wrote: Hi Robert, My current code instances a new one each cull traverse. I wonder if that means I get a sizeof(osgUtil::RenderBin) memory leak each cull-traverse? The rendering backend uses ref_ptr's so there shouldn't

Re: [osg-users] Robert: I figured it out :-) (was: Is it possible to know when the node-graph is 'dirty'?)

2008-07-25 Thread Viggo Løvli
Hi Robert, Hi Viggo, The rendering backend uses ref_ptr's so there shouldn't be any leak, assigning the new RenderBin will lead to the previous one being deleted. Yep I figured out that one :-) Rather than second guess what will be need might I suggest you maintain a recycling list of

[osg-users] osg pick problem

2008-07-25 Thread forest37
hi,all when i use the function computeIntersections to pick a drawable in the scene,it's Ok when i use osg::ShapeDrawable to build the scene。but the computeIntersections doesn't work when i use self drawing, I derive a class from osg::Drawable,and overwrite the function computeBound()

[osg-users] How to read out the coordinate info from model files

2008-07-25 Thread TANG Fangqin
Hi all, I'm trying to import some 3ds models (using osgDB::readNodeFile) into an osg programme. Now the problem is that: Is there any way that we can read the coordinate information out from the models since 3ds models have saved the position (the model center) coordinate information themselves?

Re: [osg-users] osg pick problem

2008-07-25 Thread Robert Osfield
Hi Forest, The osg::Drawable class has an accept(PrimitiveFunctor) method that is used to extract the geometry information in a way that the IntersectionVisitor can use, so if you want picking support then you'll need to implement this. Robert. 2008/7/25 forest37 [EMAIL PROTECTED]: hi,all

[osg-users] Moving from Producer to osgViewer

2008-07-25 Thread Bruno Carneiro de Castro
Hi all I'm moving an app from Producer to osgViewer and have doubts about the equivalence between some Producer methods vs. osgViewer methods. May you help me, indicating the methods more suitable to change in the Producer code fragment below, in order to get it working under osgViewer? Thanks,

Re: [osg-users] Moving from Producer to osgViewer

2008-07-25 Thread Gordon Tomlinson
Have you tried ? It took us not more than a couple days to move away form producer in our apps Some things a little different and you pick up those up quickly when you convert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bruno Carneiro de Castro

Re: [osg-users] How to read out the coordinate info from model files

2008-07-25 Thread Gordon Tomlinson
None that I'm aware of The OSG file readers are about loading the data into the scene graph, not about probing files for properties or meta data You will have to implement your own probe mechanism for this _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of TANG

Re: [osg-users] Robert: I figured it out :-) (was: Is it possible to know when the node-graph is 'dirty'?)

2008-07-25 Thread Viggo Løvli
Hi Robert, I have a very strange bug. The code I have written to render one bin twice works fine in the project code-base that I am working on. I took the class and integrated into the OSGForest example, and there it does not work as expected. In the OSGForest example:- The bin is rendered two

Re: [osg-users] Getting the opengl texture id of an osg::Texture2D

2008-07-25 Thread Steffen Kim
Thanks for the help, everything seems to work fine so far. But now I'm a little bit lost on what the best way for creating an osg::Texture2D out of the ID of an OpenGL-texture is. I have the id of an OpenGL-texture as the result delivered by the API I'm using and I want to get this texture as

Re: [osg-users] Robert: I figured it out :-) (was: Is it possible to know when the node-graph is 'dirty'?)

2008-07-25 Thread Viggo Løvli
Hi Robert, Completely understandable :-) Regards, Viggo Date: Fri, 25 Jul 2008 14:00:09 +0100 From: [EMAIL PROTECTED] To: osg-users@lists.openscenegraph.org Subject: Re: [osg-users] Robert: I figured it out :-) (was: Is it possible to know when the node-graph is 'dirty'?) Hi Viggo, I

[osg-users] NPS_Tutorials.zip ?

2008-07-25 Thread Ariasgore
Hi, does anybody know where I can get the NPS Tutorials zip with all modells referenced in the osg tutorials? It's pretty hard to do them without the proper files and it seems that they are unavailable at the moment. The old page here -

Re: [osg-users] NPS_Tutorials.zip ?

2008-07-25 Thread Ümit Uzun
Hi, You can download it from http://www.openscenegraph.org/projects/osg/attachment/wiki/Support/Tutorials/NPS_Tutorials_src.rar Good luck, Bye.. Umit UZUN 2008/7/25 Ariasgore [EMAIL PROTECTED]: Hi, does anybody know where I can get the NPS Tutorials zip with all modells referenced in the

[osg-users] Compile error on Solaris10/SunStudio11

2008-07-25 Thread Martin Spott
Hi, when trying to build OSG (SVN from thursday afternoon, 15:30 UTC) on Solaris, I get the following Error: [ 99%] Building CXX object applications/osgconv/CMakeFiles/application_osgconv.dir/PluginQuery.o /opt/SUNWspro/bin/CC -xO2 -xtarget=ultra2 -xprefetch=auto -xO2 -DNDEBUG

Re: [osg-users] Compile error on Solaris10/SunStudio11

2008-07-25 Thread Robert Osfield
Hi Martin, The missing return was fixed yesterday. Today the function is now moved in to the osgDB, but this shouldn't effect the build. Robert. On Fri, Jul 25, 2008 at 3:55 PM, Martin Spott [EMAIL PROTECTED] wrote: Hi, when trying to build OSG (SVN from thursday afternoon, 15:30 UTC) on

[osg-users] Please test SVN of OpenSceneGraph in prep for 2.6 release candidate

2008-07-25 Thread Robert Osfield
Hi All, This evening I'll be making the OpenSceneGraph-2.6 branch, and tag this as release candidate 1. I'd greatly appreciate users testing out the svn trunk to make sure everything is compiling correctly across platforms. Thanks in advance for you help, Robert.

Re: [osg-users] Slave Cameras projection matrices and aspect ratio

2008-07-25 Thread Robert Osfield
Hi Jose, I tried the .cfg out and it works, but since osgviewer cow.osg -c your.cfg doesn't contain your specific master projection matrix nor have your profiling code I can't really test what your are seeing at your end. Given I'm busy working getting a 2.6 rc1 out the door, and am away from

[osg-users] World Coordinates

2008-07-25 Thread Kim C Bale
I'm trying to work out the world coordinates of vertices in my shader, and I'd like to check my understanding of a few things. At the moment I manually go through the graph and grabbing the transformations en-route to the target geode and create the matrix myself, pass this to the shader, and

Re: [osg-users] Please test SVN of OpenSceneGraph in prep for 2.6 release candidate

2008-07-25 Thread Adrian Egli OpenSceneGraph (3D)
Hi Robert, the latest SVN doesn't link (osgViewer) : virtual void operator()(const osg::Image image, const unsigned int context_id) = 0; cause a problem under VS 2003. Linking... Creating library C:\dev\OpenSceneGraphSVN\Openscenegraph\lib\Release\..\osgViewer.lib and object

Re: [osg-users] Compile error on Solaris10/SunStudio11

2008-07-25 Thread Martin Spott
Robert Osfield wrote: The missing return was fixed yesterday. Today the function is now moved in to the osgDB, but this shouldn't effect the build. Ok, I'll recheck. A little notice when running CMake makes me wonder (freshly pulled from SVN): [...] -- Performing Test

Re: [osg-users] Please test SVN of OpenSceneGraph in prep for 2.6 release candidate

2008-07-25 Thread Robert Osfield
HI Adrian, I can't work out what is actually missing, everything looks sounds to me. Any chance that you have an out of sync build, or older libs hanging around? Robert. On Fri, Jul 25, 2008 at 4:23 PM, Adrian Egli OpenSceneGraph (3D) [EMAIL PROTECTED] wrote: Hi Robert, the latest SVN

Re: [osg-users] NPS_Tutorials.zip ?

2008-07-25 Thread Ariasgore
Many thanks for the file! But is this his official package? There seems to be still files missing like HUDBack2.tga Thanks -- From: Ümit Uzun [EMAIL PROTECTED] Sent: Friday, July 25, 2008 4:27 PM To: OpenSceneGraph Users

Re: [osg-users] Please test SVN of OpenSceneGraph in prep for 2.6 release candidate

2008-07-25 Thread Jean-Sébastien Guay
Hello Robert, This evening I'll be making the OpenSceneGraph-2.6 branch, and tag this as release candidate 1. I'd greatly appreciate users testing out the svn trunk to make sure everything is compiling correctly across platforms. Builds fine for me. Vista 32bit, VC++ 8. J-S --

Re: [osg-users] Moving from Producer to osgViewer

2008-07-25 Thread Bruno Carneiro de Castro
Hi Gordon, I tried to port the Producer code to osgViewer, but some methods are becoming hard to replace (see details bellow). Any replacement suggestions? Thanks, Bruno - //variables (just to contextualize) osgProducer::Viewer* viewer_obj;

Re: [osg-users] Moving from Producer to osgViewer

2008-07-25 Thread Joseanibal Colon Ramos
Take a look at this: http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/classes.html It will help you find the proper function name changes (or similar functions) for the new classes you will be using. For instance: osgProducer::Viewer* viewer_obj; -

Re: [osg-users] Moving from Producer to osgViewer

2008-07-25 Thread Robert Osfield
Hi Bruno, osgViewer != osgProducer, but pretty well all of Producer functionality is available + much new functionality and flexibility. Naming has changed to better reflect OpenGL naming conventions - something that the core OSG has always done, Producer diverged from this occassionally. FYI:

[osg-users] How to scale rotations ?

2008-07-25 Thread Janusz
Dear all: Appreciate any answer on the topic: I am reading an orientation / rotation matrix info from a sensor, then visualizing the rotation of an object on screen with OSG. Given the matrix or the resulting quaternion I need to be able to scale the rotations independently, i.e.

[osg-users] computeIntersections works very strange

2008-07-25 Thread GMD GammerMaxyandex.ru
Hello. I have question about OSG v 2.5.5. In this version of OSG function viewer-computeIntersections(x,y, hlist) works very strange - when cursor movements over object is short it(cursor) falls throught the object and function returns name of object which is behind current(object over which

Re: [osg-users] Please test SVN of OpenSceneGraph in prep for 2.6 release candidate

2008-07-25 Thread Vican, Justin E.
Hi Robert, Builds without error on the following systems: -64 bit RedHat EL4, gcc/g++ 3.4.6 -32 bit RedHat EL4, gcc/g++ 3.4.6 -IRIX 6.5, cc/CC 7.4.2m Thorough testing will take a while, but no problems found so far. -Justin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

Re: [osg-users] computeIntersections works very strange

2008-07-25 Thread Robert Osfield
Hi Max, This suggests that the changes I made to osgUtil::LineSegmentIntersector to improve precision are introducing problems is some corner cases. Could you provide the data that causes these problems? Robert. On Fri, Jul 25, 2008 at 8:20 PM, GMD GammerMaxyandex.ru [EMAIL PROTECTED] wrote:

Re: [osg-users] NPS_Tutorials.zip ?

2008-07-25 Thread Ümit Uzun
You are welcome. Yes it's official package for version osg2.x. But as you see, the tutorials were arranged for osg1.2 So you can see dıfferent part of fıle from them. It's normal. Good luck. Best Regards. Ümit UZUN 2008/7/25 Ariasgore [EMAIL PROTECTED]: Many thanks for the file! But is this

[osg-users] OpenSceneGraph-2.6.0-rc1 tagged

2008-07-25 Thread Robert Osfield
Hi All, I have just tagged OpenSceneGraph-2.6.0-rc1: http://www.openscenegraph.org/svn/osg/OpenSceneGraph/tags/OpenSceneGraph-2.6.0-rc1/ And have made the OpenSceneGraph-2.6 branch: http://www.openscenegraph.org/svn/osg/OpenSceneGraph/branches/OpenSceneGraph-2.6/ I've also put up

[osg-users] OSX X11 build

2008-07-25 Thread Eric Sokolowsky
I've been away from OSG for a few weeks (vacations, other projects, etc) but I have some time to get back to it. I'm encountering trouble building OSG with X11 because CMake can't find GL/glx.h. I'm going to keep banging away at this, but if anyone offhand knows how to get CMake to find the file

[osg-users] [Bug] Invalid CMake version checks

2008-07-25 Thread Kevin Kofler
This construct is not future safe: IF(CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION GREATER 4) This will break the day CMake 3.0 is released. Kevin Kofler ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] osg::Image::update?

2008-07-25 Thread Hartmut Seichter
Robert Osfield wrote: Hi Hartmut, On Thu, Jul 24, 2008 at 3:10 AM, Hartmut Seichter [EMAIL PROTECTED] wrote: I just realized the introduction of osg::Image::update(osg::NodeVisitor*) which is awsome (kindof - for now it just breaks the whole thing), What do mean just breaks the

[osg-users] How to read out the coordinate info from model files

2008-07-25 Thread TANG Fangqin
Hi all, I'm trying to import some 3ds models (using osgDB::readNodeFile) into an osg programme. Now the problem is that: Is there any way that we can read the coordinate information out from the models since 3ds models have saved the position (the model center) coordinate information themselves?