Hi Matthias,

> we have some material (Cg shader) assigned to a bunch of objects or
> different parts of an object, respectively. However, some of the shader's
> uniform parameters need to be changed for the different objects, that is
> to say, the model matrix (not the modelview!) for the geometry.
> Duplicating the whole material for every node is not an option due to its
> memory consumption (textures...).

could you share the texture chunks ? This should save lots of texture memory 
( I quess you are working with noise textures ?) The shader itself shouldn't 
be too long I expect.

> Is there a way to have every node below the material change its parameters
> independently? Something like registering enter/leave functions? How can
> this be accomplished then?
> Or can the material be split into a shared "texture-part" and individual
> "shaderprogram-parts"...?

I leave this question to dirk or others.

Regards

Matthias



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to