Hi Mateusz,

2013/8/11 Mateusz Janiak <mati_jan...@wp.pl>

> Ok, Jordi solution wokrs like a charm, I had only to disable culling on
> drawable, so that its all hardware instanced objects are not culled when
> original is not visible.


You must provide the BoundingBox yourself (i.e. using a computeBoundingBox
callback) because OSG will only calculates the original instance bounding
box.



> I have another problem now - how to apply Material and Light to such a
> drawable so that it is populated with hardware instancing with shader? I
> can apply simple color, but despite applied light to the scene there is no
> light effect on drawable.
>
>
Did you tried to add normals to the instaced geometry?

Cheers.

...
>
>
> Thank you!
>
> Cheers,
> Mateusz
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=55820#55820
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
Jordi Torres
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to