Re: [osg-users] textures in shaders

2009-08-20 Thread Jason Daly

Michele Olsen wrote:

Hello,

I have been having some trouble rendering textured models with shaders. I am a little confused about how to set the sampler uniform to the textures. 


Also, from my understanding, if a vertex shader is not specified that 
functionality is pushed to the fixed pipeline?
  


Correct (at least for now :-) )

Here is what I have. 
  


At a quick glance, it looks OK to me (although you see me to be doing 
odd things with the fragment color).  I'd double-check that the model is 
actually using texture unit 1.  I've seen some COLLADA models 
(particularly those exported from 3ds MAX) that try to use texture unit 
1 instead.


--J


___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] textures in shaders

2009-08-20 Thread Michele Olsen

 'd double-check that the model is
 actually using texture unit 1. I've seen some COLLADA models
 (particularly those exported from 3ds MAX) that try to use texture unit
 1 instead.


That did it!!

Thank you!!

Michele

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=16504#16504





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org