Brian,
ok so if I understand well, i can set a second array of coordinate of
texture. but for that I need the geometry... and i only can get the drawable
from a geode... so how can I get the geometry ?

thanks for help.

Vincent.

2008/4/18, Brian R Hill <[EMAIL PROTECTED]>:
>
> 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 <[email protected]>
> 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
> [email protected]
>
> 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
> [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