Vincent,

I'm not sure what you're trying to do. The second texture will only look
right on the geometry if you define the texture coordinates to make it
right.

Each texture has it's own texture coordinates:
osg::Geometry::setTexCoordArray(texture unit, texture coordinate array)

The first texture should use texture unit 0 and the second should use
texture unit 1.

Brian

[EMAIL PROTECTED] wrote: -----


To: osg <osg-users@lists.openscenegraph.org>
From: "Vincent Bourdier" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
Date: 04/18/2008 10:17AM
Subject: [osg-users] Geometry

Hi All,

I've a new problem, which is about Geometries.

this is simple : I've a node, already with a texture, and I want to put a
second texture on it. BUT, the second texture have to be well positioned on
the node, without depending on the Geometry's texture coordinates...

I've tried osg::TexGen and osg::TextureCubeMap but the second texture is
never put correctly on the node...

How can I get the texture coordinates ? or how can I put the second texture
right on the node ?
Thanks.

Regards,
   Vincent.
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery. NOTE: Regardless of content, this e-mail shall not operate to
bind CSC to any order or other contract unless pursuant to explicit written
agreement or government initiative expressly permitting the use of e-mail
for such purpose.
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

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

Reply via email to