OK, so we've finally arrived at your problem :)
On 15/10/10 14:31, Aitor Ardanza wrote:
Yeah, I understand it... but I can't work on a quad, because I need
to compare the position of the picking and the vertex in the vertex
shader, and depending on the distance between them make a new texture
....
Doing on a quad, the resulting image would be the next: [Image:
http://img836.imageshack.us/img836/3308/bakeoverride.jpg ] painting
in areas of blank. I need a way to find the coordinates of the
texture, having an vertex area of the model. With th picking, I get
the position and texture coordinates...
Check out the intersection code in osgmovie example in
MovieEventHandler::handle.
You get back the closest 3 vertices and a texture coordinate. I'm not
sure what else you need. It should work on a complex model and a quad.
jp
------------------ Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32781#32781
_______________________________________________ osg-users mailing
list [email protected]
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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org