Hi Linda,

Your code looks correct to me. Your shader does the texture lookup at 0,0,0 coord is there a chance that your test1.bmp picture is black in the corner ? Or its res differs than 128x128 so loading them does not work or leaves some empty space ?. You may try to run the example code from the following message:

http://www.mail-archive.com/[email protected]/msg32539.html

It used to work for me. Just change the wrap mode to other than CLAMP_TO_BORDER if you have ati graphics.

Wojtek


-----Oryginalna wiadomość----- From: Linda Lee
Sent: Saturday, June 11, 2011 11:42 AM
To: [email protected]
Subject: Re: [osg-users] Passing multiple textures in glsl

Hi,

Forgot to mention to I have this msg when I run the application.

Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(,)

Thank you!

Cheers,
Linda

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





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to