Hi Daniel,

I haven't specifically tried doing what are trying to do, but my
inclination would be to compute the bari-centric coordinates of the the new
mesh points relative to the triangle corners, then use thse bar-centric
coordinates to compute the texture coordinates.  Have a look online for
docs on bari-centric coordinates.

Robert.


On 6 September 2013 11:26, Daniel Schmid <[email protected]>wrote:

>  Hi all****
>
> ** **
>
> As you can see in the attached illustration, I have created a configurable
> algorithm that takes the Triangles of an existing Geode and creates a mesh
> of quads (yellow). ****
>
> Everything works fine so far. ****
>
> ** **
>
> Now I have the following problem: I want the reuse the texture that was
> originally applied to the triangle to be applied to the mesh again, to have
> the same rendered appearance.****
>
> How can I generate the texture coordinates for the mesh points? They
> should somehow be interpolated, but I don’t know how to do this...****
>
> ** **
>
> Anybody?****
>
> ** **
>
> Regards****
>
> Daniel****
>
> _______________________________________________
> 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