[osg-users] Instanced Rendering Example in OSG

2010-04-23 Thread Nicholas Vidovich
Can someone please post a working example of rendering 100k+ instanced objects using OSG? I have seen quite a few posts saying you need to use shaders or some other advanced technique, but haven't found any concrete examples. I need to render around 100k boxes without killing the framerate. I

Re: [osg-users] Instanced Rendering Example in OSG

2010-04-23 Thread Christian Buchner
the osgdrawinstanced sample uses OpenGL draw instancing. Refer to this one instead of osgforest. Christian ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Re: [osg-users] Instanced Rendering Example in OSG

2010-04-23 Thread Nicholas Vidovich
Thanks, Christian -- I have tried modifying the osgdrawinstanced example as well. Do you have an example that sets the positions of the instances? I tried passing positions in as a uniform sampler2D texture, but that didn't work out. (I had planned on breaking the position dataset into some

Re: [osg-users] Instanced Rendering Example in OSG

2010-04-23 Thread Paul Martz
Nicholas Vidovich wrote: Thanks, Christian -- I have tried modifying the osgdrawinstanced example as well. Do you have an example that sets the positions of the instances? I tried passing positions in as a uniform sampler2D texture, but that didn't work out. I have done instanced rendering

Re: [osg-users] Instanced Rendering Example in OSG

2010-04-23 Thread Nicholas Vidovich
Hi Paul -- I didn't mean to imply that the technique wasn't viable -- due to my errors and lack of experience I was unable to correctly implement instanced rendering by passing the data in a floating point texture. Do you have an example you would be willing to post? Thanks, Nick On Fri, Apr

Re: [osg-users] Instanced Rendering Example in OSG

2010-04-23 Thread Paul Martz
Nicholas Vidovich wrote: Hi Paul -- I didn't mean to imply that the technique wasn't viable -- due to my errors and lack of experience I was unable to correctly implement instanced rendering by passing the data in a floating point texture. OK. Yeah, it's definitely possible. Sounds like you