Re: [osg-users] Why ref_ptr node can not release memory immediatelly?

2016-07-08 Thread John Lee
Hi,Sebastian Thank you for your reply! John SMesserschmidt wrote: > Am 08.07.2016 um 10:10 schrieb John Lee: > > > Hi,Alberto > > Thank you for your reply. > > The problem at the link you share is exactly what i have now. But I can't > > find any solution on

Re: [osg-users] Why ref_ptr node can not release memory immediatelly?

2016-07-08 Thread John Lee
that may be interesting to > you: > > http://forum.openscenegraph.org/viewtopic.php?t=15809 > > "John Lee" <> writes: > > > > Hi, > > > > In my appllication, there are many child nodes in my root node. When i > > dynamically remove its chil

[osg-users] Why ref_ptr node can not release memory immediatelly?

2016-07-07 Thread John Lee
Hi, In my appllication, there are many child nodes in my root node. When i dynamically remove its child node, i find the memory will not free immediatelly, it will free sometimes, maybe it will free when i keep removing a few child nodes, or it will free when i remove all child nodes? Why this

Re: [osg-users] how to detect if an object bounding box collision with the camera frustum?

2016-06-27 Thread John Lee
Hi Sebastian. Thank you for your answer. What i want to do is to detect if a bounding box is inside the view frustum, but i don't know how to do. Can you give me some hints? I am new to osg. Cheers John SMesserschmidt wrote: > Hi John, > > > > Hi, > > > > how to detect if an object bounding

[osg-users] how to detect if an object bounding box collision with the camera frustum?

2016-06-27 Thread John Lee
Hi, how to detect if an object bounding box collision with the camera frustum? I wonder if someone can suggest me how to do such check? Thank you! Cheers, John -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=67846#67846

Re: [osg-users] how to judge if an object is in the frustum?

2016-06-27 Thread John Lee
ate the > View frustum as a Polytope and do the intersectons... I hope Robert will shed > more light into this > > > > > On Mon, Jun 27, 2016 at 10:20 AM, John Lee < ()> wrote: > > > Hi, robert. > > Thank you for your reply. > > I never use the Polytop

Re: [osg-users] how to judge if an object is in the frustum?

2016-06-27 Thread John Lee
sector, creating a Polytope as the > frustum. > > Robert. > > On 27 June 2016 at 07:30, John Lee <> wrote: > > > Hi, > > > > I don't know how to judge if an object is in the frustum? I want to get > > which node is in the frustum. > > > > Thank you

Re: [osg-users] how to judge if an object is in the frustum?

2016-06-27 Thread John Lee
        if (cv && cv->isCulled(node)) >         { >             >         } >     } > }; > > node->setCullCallback(new MyCullCallback); > > > On Mon, Jun 27, 2016 at 9:15 AM, Trajce Nikolov NICK < ()> wrote: > > > something like this:L > > > &g

Re: [osg-users] how to judge if an object is in the frustum?

2016-06-27 Thread John Lee
tor and do > something like this in your callback: > > > CullVisitor* cv = nv->asCullVisitor() > > cv->isCulled(node) > > > > On Mon, Jun 27, 2016 at 8:30 AM, John Lee < ()> wrote: > > > Hi, > > > > I don't know how to j

[osg-users] how to judge if an object is in the frustum?

2016-06-27 Thread John Lee
Hi, I don't know how to judge if an object is in the frustum? I want to get which node is in the frustum. Thank you! Cheers, John -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=67832#67832 ___

Re: [osg-users] osg::Switch node can't free memory

2016-05-31 Thread John Lee
robertosfield wrote: > Hi John, > > On 30 May 2016 at 10:02, John Lee <> wrote: > > > It helps me. Now I load a lot of models in my scene, and each model is a > > scene node in the scene graph. Is there any method that i can decrease > > memory usage? >

Re: [osg-users] osg::Switch node can't free memory

2016-05-30 Thread John Lee
Hi robert, It helps me. Now I load a lot of models in my scene, and each model is a scene node in the scene graph. Is there any method that i can decrease memory usage? Thank you! Cheers, John -- Read this topic online here:

[osg-users] some problem about hud and window size

2016-05-04 Thread John Lee
Hi, First, I drew some tags dynamically using HUD camera on the render window size which is 1100X679, but when I change the length-width ratio of the render window size, the tags positions changed and it was wrong. Can anyone tell me how can i solve this problem. Thank you! Cheers, Lee

[osg-users] some problem about hud and window size

2016-05-04 Thread John Lee
Hi, First i drew some tags by HUD on the window size which is 1100X679, and it was correct. But when i change the window's length-width ratio the tag's position changed and it became wrong. Can anyone tell me how i can solve this problem? Thank you! Cheers, John -- Read this