Re: [osg-users] RenderBin vs. SlaveCamera
hi Modenbach, My approach is to use a separate camera(not a slave camera) different with the main camera, and add it to the root node. In my opinion, there is little difference between these different approaches, since they will all be treated as elements in scene graph and state graph. But I am a little confused about your using slave camera. Is not slave camera share the same scene with the main camera ? How do you assign different scenes in you HUD display ? -- Cheers, --- TianZJ At 2017-08-03 17:59:41, "Werner Modenbach"wrote: >Hi all, > >I'm restructuring my project because I want to implement some multi pass >effects. >I have some problems understanding the different approaches for example when >creating HUD displays. >The approach I used so far is attaching a SlaveCamera and puttung it in >PostRender pass. >On the other hand I found an approach of just attaching the matrices to >the root node and >assigning the HUD geometry to a RenderBin with high number. > >I'd like to understand the difference of the approaches and the pros and >cons. > >Is there any one who can help me with that? > >Thanks > >- Werner - > >___ >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] memory issue about x-windows in Linux
"Lv Qing" writes: > Hi, >I know it is not be an osg problem. Just want to know anyone here may met > the same problem. >We use reahat linux 6.5 to run our osg app .The desktop is kde4.3.4. . > After 7 to 20 days,we found the X-windows Process (X) suddenly took all > of system's memory ,and force linux to kill the process itself ,which result > to force the redhat back to it's login windows. > I have observe both the osg and X problem every single day,it seems every > stable ,not any trace of memory leak problem.Then just one short moment,the X > process suddenly eats up all system memory . > My question is what the link with osg and x-windows?Is it because our > app has some memory leak problem to make the X process eat up too many > memory ? >Or just the X process cause the problem only due to itself? Hi, Lv: many parts of the system could be to blame, but I think that you can start with some easy tests: - Use valgrind's massif tool to or the new heaptrack (https://github.com/KDE/heaptrack). Since yours is a long-running process, I would recommend the later, as it is lighter and faster. - Try to run the program with a different GPU brand to rule out driver issues. Hope that helps, -- Alberto ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
[osg-users] RenderBin vs. SlaveCamera
Hi all, I'm restructuring my project because I want to implement some multi pass effects. I have some problems understanding the different approaches for example when creating HUD displays. The approach I used so far is attaching a SlaveCamera and puttung it in PostRender pass. On the other hand I found an approach of just attaching the matrices to the root node and assigning the HUD geometry to a RenderBin with high number. I'd like to understand the difference of the approaches and the pros and cons. Is there any one who can help me with that? Thanks - Werner - ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org