Hi,
if you don't set texenv for texture unit 0, the osg default is MODULATE
which will then modify the underlying geometry's colour. Do you set a
colour for the geometry? If not, set it to white. Otherwise change the
texture unit 0 to DECAL too.
cheers
jp
On 01/03/11 14:39, Petr Srom wrote:
J.P.,thanks for answer, your post make me to check texture coords, i have
added tcoords for second texture (same as for the first texture), what a simple:
screenQuad->setTexCoordArray(0, tcoords);
screenQuad->setTexCoordArray(1, tcoords);
and result:
[Image: http://www.imgshare.cz/images/multipqmq.jpg ]
Textures ok, but scene still very dark ...
changes in code:
1) replace:
texenv->setMode(osg::TexEnv::DECAL);
//texenv->setMode(osg::TexEnv::BLEND);
2) rem this line:
//quadState->setTextureAttributeAndModes(1, texgen, osg::StateAttribute::ON);
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=37213#37213
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard.
The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
This message has been scanned for viruses and dangerous content by MailScanner,
and is believed to be clean. MailScanner thanks Transtec Computers for their support.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org