The normal way to do this, is that you need to break the model in to component 
pieces and have a geode for each piece you want to apply a different texture to 
using the standard OSG state mechanism and you also have ensure you have the 
correct texture coordinates etc.

Trying to have one lump of geometry and then trying to figure out how to apply 
a different texture to a certain pixel say in a shader is not the way I would 
go about it,



Gordon

__________________________________________________________
Gordon Tomlinson

Product Manager 3D
Email  : gtomlinson @ overwatch.textron.com
__________________________________________________________

"Self defence is not a function of learning tricks 
but is a function of how quickly and intensely one 
can arouse one's instinct for survival" 
- Master Tambo Tetsura

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of GMD 
GammerMaxyandex.ru
Sent: Friday, October 10, 2008 6:53 AM
To: osg-users@lists.openscenegraph.org
Subject: Re: [osg-users] Using different textures for the same geometry

Shaders...

> 
> Hi Robert,
> 
> Thank you very much for your reply.
> 
> I have a single geometry and I want to apply different textures for 
> it. That is, imagine a figure of a woman which is a single geometry. 
> However, I have a texture for the head, another one for the body, 
> another one for the shirt, etc... Do you understand? Sorry if I 
> explained it badly, but I am not good explaining things and even worse 
> in english :)
> 
> Thanks a lot for your reply Robert,
> 
> Regards,
> 
> Aitor


Яндекс.Почта. Поищите спам где-нибудь еще http://mail.yandex.ru/nospam 
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to