Re: [osg-users] Problem with OpenSceneGraph.xcodeproj in 2.3.9 (andearlier)

2008-04-20 Thread Robert Osfield
Hi Roger,

On Sat, Apr 19, 2008 at 9:15 PM, Roger James
<[EMAIL PROTECTED]> wrote:
>  Hopefully a CMake for OSX solution will output Xcode compatible frameworks
>  so that OSG can easily integrated into other projects.

This time last year it was lack of CMake frameworks support that held
use back from dropping hand maintained XCode projects.   I believe
frameworks support exists, but I'm not sure if its made it into a
CMake stable release.  Eric Wing provided some details on this a
couple of weeks back.   Eric mentioned that we'd need to tweak the
OSG's CMake scripts to get things working too.  This is work that will
have to be tackled once OSG-2.4 is out.

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Clearing RenderLeaf ref_ptrs

2008-04-20 Thread Robert Osfield
Hi Paul,

On Sun, Apr 20, 2008 at 12:20 AM, Paul Martz <[EMAIL PROTECTED]> wrote:
> Thanks, Robert. On second thought, forcing OSG to stop threading and flush
>  its backend structures would certainly cause a frame stall; handling this
>  some other way would produce better results. For now, waiting "a few frames"
>  to unload the DLL is a good solution.

Stopping threading will cause a frame stall and or flusing back end
structres is likely to cause a frame drop.  Even unloading a dll and
deletion of associated memory could cause a frame drop in itself. If
dropping frame is critical I'd suggest avoiding unloading dll's untill
the app exits.

Would another tack be possible - i.e. is there any way you can stop
Windows assigning a separate heap per dll, this to me is the natural
solution.  Would overriding global new and delete do the trick?

Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Removing an object from the SceneGraph

2008-04-20 Thread Steve Smith
Hello,
I have a scenegraph constructed and rendering. I'm trying to remove and
object by calling

pRoot->removeChild(pFlightLeader);

pRoot is the root of the scene graph, and pFlightLeader is an osg::Node.

However, the model remains in the scene on subsequent renders. Is there
anything additional that I need to do to remove the node?

Many thanks to any kind souls...

Steve
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Removing an object from the SceneGraph

2008-04-20 Thread Charles Cossé
Steve,
Are you creating your object with a ref_ptr?
-Charles

On Sun, Apr 20, 2008 at 9:52 AM, Steve Smith <[EMAIL PROTECTED]>
wrote:

> Hello,
> I have a scenegraph constructed and rendering. I'm trying to remove and
> object by calling
>
> pRoot->removeChild(pFlightLeader);
>
> pRoot is the root of the scene graph, and pFlightLeader is an osg::Node.
>
> However, the model remains in the scene on subsequent renders. Is there
> anything additional that I need to do to remove the node?
>
> Many thanks to any kind souls...
>
> Steve
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>


-- 
AsymptopiaSoftware | [EMAIL PROTECTED]
www.asymptopia.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Removing an object from the SceneGraph

2008-04-20 Thread Robert Osfield
Hi Steve,

The line you are using to remove a child is the appropriate one, as to
why it doesn't work in your case, we'll this isn't something I can
answer.  To find out why you'll need to do more debugging at your end.
 Perhaps a bug in your code is occurring such that pointers are wrong,
or code isn't being executed.

Robert.

On Sun, Apr 20, 2008 at 4:52 PM, Steve Smith <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I have a scenegraph constructed and rendering. I'm trying to remove and
> object by calling
>
> pRoot->removeChild(pFlightLeader);
>
> pRoot is the root of the scene graph, and pFlightLeader is an osg::Node.
>
> However, the model remains in the scene on subsequent renders. Is there
> anything additional that I need to do to remove the node?
>
> Many thanks to any kind souls...
>
>
> Steve
> ___
>  osg-users mailing list
>  osg-users@lists.openscenegraph.org
>  http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Removing an object from the SceneGraph

2008-04-20 Thread Paul Martz
That should work. pFlightLoader, however, must have the address of the child
node. So, check under a debugger to look at the addresses of pRoot's
children, or simply step through the removeChild call to see why it is
failing. (This is the benefit of having the source code, so you should make
use of it.)
   -Paul
 


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Smith
Sent: Sunday, April 20, 2008 9:53 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Removing an object from the SceneGraph


Hello, 

I have a scenegraph constructed and rendering. I'm trying to remove and
object by calling

pRoot->removeChild(pFlightLeader);

pRoot is the root of the scene graph, and pFlightLeader is an osg::Node.

However, the model remains in the scene on subsequent renders. Is there
anything additional that I need to do to remove the node? 

Many thanks to any kind souls...

Steve

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Removing an object from the SceneGraph

2008-04-20 Thread Steve Smith
Robert,

Thanks for the sanity check. From what I could tell scouring the
documentation (and a few google hits) this was the correct way to remove
something. I did the usual stepping through code and such before wanting to
post on the list to make sure I wasn't doing something real obvious code
wise.


After my first post, I had one other idea. I called removeChild(), but not
on the root of the scene graph, but on the parent node of the node I wanted
to remove. This worked as expected.


So the followup question is... must removeChild() be called on the immediate
parent node instead of the root node (or any node up the chain)? I assumed,
perhaps incorrectly, that if I asked the root node to remove a child, it
would traverse the tree for me. If this _should_ work, then I will continue
to look for the cause on my end... I just want to make sure I have a proper
understanding of the expected behavior.


I should also have mentioned in the first post, I'm using OSG 2.2 (on OS X
if that is important as well).


Steve


>Hi Steve,
>
>The line you are using to remove a child is the appropriate one, as to
>why it doesn't work in your case, we'll this isn't something I can
>answer.  To find out why you'll need to do more debugging at your end.
>Perhaps a bug in your code is occurring such that pointers are wrong,
>or code isn't being executed.
>
>Robert.
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] What's the mpr.dll ?

2008-04-20 Thread neil.hughes
Hi,

You've just encountered the wonderful world of Windows.

If you look up the mpr.dll problem on  the internet, you eventually get to find 
out that the Depends.exe of windows has problems with late binding 
dependencies. This is really an issue with Depends, not your programme. The 
best advice I can give - having spent many an hour trying to resolve this 
myself - is that you can safely ignore this warning, and any to do with 
shlapi(?) as well. At run time, the relavent stubs run, and everything is fine.

If you application is failing on another machine, it is highly unlikely that 
these warnings can contribute to tracking down what the problem is.

If the app is an osg one, did you copy across all the osg dlls? I usualy forget 
openthreads myself ;-(

Hope this shortens your search.

Neil.

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Removing an object from the SceneGraph

2008-04-20 Thread Paul Martz
You'll want to call removeChild() on the Node's parent.
 
You mentioned calling removeChild() on the root Node, and having OSG support
this by walking the tree to find and delete the Node. First, if this is
indeed what you want, you can write a NodeVisitor to do this task. Second,
be aware that you'll need to handle cases where the Node is multi-parented
(more than one parent Node references the child Node).
   -Paul
 


  _  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Steve Smith
Sent: Sunday, April 20, 2008 12:09 PM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Removing an object from the SceneGraph


Robert, 


Thanks for the sanity check. From what I could tell scouring the
documentation (and a few google hits) this was the correct way to remove
something. I did the usual stepping through code and such before wanting to
post on the list to make sure I wasn't doing something real obvious code
wise.




After my first post, I had one other idea. I called removeChild(), but not
on the root of the scene graph, but on the parent node of the node I wanted
to remove. This worked as expected.




So the followup question is... must removeChild() be called on the immediate
parent node instead of the root node (or any node up the chain)? I assumed,
perhaps incorrectly, that if I asked the root node to remove a child, it
would traverse the tree for me. If this _should_ work, then I will continue
to look for the cause on my end... I just want to make sure I have a proper
understanding of the expected behavior.




I should also have mentioned in the first post, I'm using OSG 2.2 (on OS X
if that is important as well).




Steve




>Hi Steve,
>
>The line you are using to remove a child is the appropriate one, as to
>why it doesn't work in your case, we'll this isn't something I can
>answer.  To find out why you'll need to do more debugging at your end.
>Perhaps a bug in your code is occurring such that pointers are wrong,
>or code isn't being executed.
>
>Robert.








___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] OSG Training in Paris -- Last call

2008-04-20 Thread Paul Martz
Hello all --
 
The training venue requires a final headcount for the OSG Training course by
Wednesday. If you would like to attend the course, please register
immediately so that we can include you in the final headcount. There are
still a few spaces open. To register online with a credit card, please visit
this Web site:
  http://www.skew-matrix.com/trainingparis.html
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com  
+1 303 859 9466
 
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Removing an object from the SceneGraph

2008-04-20 Thread Steve Smith
Paul,
Thank for the clarification and tip!

Steve


On Sun, Apr 20, 2008 at 3:41 PM, Paul Martz <[EMAIL PROTECTED]> wrote:

>  You'll want to call removeChild() on the Node's parent.
>
> You mentioned calling removeChild() on the root Node, and having OSG
> support this by walking the tree to find and delete the Node. First, if this
> is indeed what you want, you can write a NodeVisitor to do this task.
> Second, be aware that you'll need to handle cases where the Node is
> multi-parented (more than one parent Node references the child Node).
>-Paul
>
>
>  --
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Steve Smith
> *Sent:* Sunday, April 20, 2008 12:09 PM
> *To:* osg-users@lists.openscenegraph.org
> *Subject:* Re: [osg-users] Removing an object from the SceneGraph
>
> Robert,
>
> Thanks for the sanity check. From what I could tell scouring the
> documentation (and a few google hits) this was the correct way to remove
> something. I did the usual stepping through code and such before wanting to
> post on the list to make sure I wasn't doing something real obvious code
> wise.
>
>
> After my first post, I had one other idea. I called removeChild(), but not
> on the root of the scene graph, but on the parent node of the node I wanted
> to remove. This worked as expected.
>
>
> So the followup question is... must removeChild() be called on the
> immediate parent node instead of the root node (or any node up the chain)? I
> assumed, perhaps incorrectly, that if I asked the root node to remove a
> child, it would traverse the tree for me. If this _should_ work, then I will
> continue to look for the cause on my end... I just want to make sure I have
> a proper understanding of the expected behavior.
>
>
> I should also have mentioned in the first post, I'm using OSG 2.2 (on OS X
> if that is important as well).
>
>
> Steve
>
>
> >Hi Steve,
> >
> >The line you are using to remove a child is the appropriate one, as to
> >why it doesn't work in your case, we'll this isn't something I can
> >answer.  To find out why you'll need to do more debugging at your end.
> >Perhaps a bug in your code is occurring such that pointers are wrong,
> >or code isn't being executed.
> >
> >Robert.
>
>
>
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org