Re: [osg-users] Changing another thread's node's StateSet's data

2016-12-12 Thread Fei Liu
CTW_Liu wrote: > Hi, > > I have a project which is required WPF to show a 3d scene, so I create a CLR > dll project and a C++ dll project which use OSG. All of them were created in > VS2013 and my osg version is 3.4.0. > > One of the demands in my project is that users can change model's textu

Re: [osg-users] Is it possible to draw an ive object inside a shader?

2016-12-12 Thread Sebastian Messerschmidt
Hi Mike, basically the thing you are looking for is instancing. The question is still a bit void. You'll need a shader to do instancing, but you need to put some effort into it by using a visitor to create your instances. Take a look at the osggpucull example if your looking for an efficient

Re: [osg-users] Is it possible to draw an ive object inside a shader?

2016-12-12 Thread Mike Greene
Similar to what OSGforest example does, except render an actual ive file and mot just textured quads... Thank you! Cheers, Mike -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69661#69661 ___ osg-us

[osg-users] Is it possible to draw an ive object inside a shader?

2016-12-12 Thread Mike Greene
Hi, Wondering if it possible to draw an ive file inside a shader. For example, say I want to populate an urban area with a particular building, maybe have the shader scale and rotate and place it randomly. Can I use a shader to draw the ive file over and over again externally to the actual OSG

Re: [osg-users] Building KdTrees

2016-12-12 Thread Ale Maro
Hi Robert, sorry, I suspect that this can be trivial but I tried to debug but I did not find a solution. The KdTree code in DatabasePager is inside DatabasePager::FindCompileableGLObjectsVisitor class ( in apply(Drawable*) ) that is used inside DatabasePager::DatabaseThread::run() method. Datab

Re: [osg-users] How to Draw Infinte 3D Grid in osg

2016-12-12 Thread Robert Osfield
On 12 December 2016 at 08:38, Rambabu Repaka wrote: > Hi,Robert i saw the projective texturing and osg::TexGen/TexGenNode files iam > unable to draw the grid starting trouble ? Can you explain how to start > drawing the 3d grid. It's just a matter of filling in an osg::Image with a grid pattern

Re: [osg-users] How to Draw Infinte 3D Grid in osg

2016-12-12 Thread Rambabu Repaka
Hi,Robert i saw the projective texturing and osg::TexGen/TexGenNode files iam unable to draw the grid starting trouble ? Can you explain how to start drawing the 3d grid. ... Thank you! Cheers, Rambabu -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.