Hello Lars,
Lars Bilke wrote:
> Hey,
>
> first thank you for your answers. I took a look at this topic some days
> ago with no success.
>
> But now my question is: how to pass, e.g., the OSGWorldMatrix to a
> SHLChunk as a UniformParameter:
>
> chunk->setUniformParameter("OSGWorldMatrix", ??)
>
> What is second parameter (value)??
you can pass a locally created Matrix (the value is ignored):
Matrix m;
chunk->setUniformParameter("OSGWorldMatrix", m);
The name "OSGWorldMatrix" is recognized as magic internally and the
system makes sure that the right matrix is fed to the shader (since it
depends on the object being rendered). Just make sure your shader has a
uniform mat4 OSGWorldMatrix.
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users