|
![](/i/fill.gif) |
>> Is it possible to trace colours on a mesh with uv mapping? I want
>> to trace blobs onto areas of a specific colour on a mesh.
>>
>> I was thinking along the lines of Jaime's method here:
>> http://news.povray.org/4bf28f4b%40news.povray.org but that only
>> works for planar images.
>
> Well, it works in 3D if you use the y component on the function
> test... anyhow, I don't think it is possible to evaluate the uv
> mapping in a function, as the uv coordinates are on the mesh. After
> some thinking, I don't see a way to do it... sorry.
>
Thinking a bit more about it, I thought it would be really nice to
have a fifth optional parameter on the trace() function to return the uv
vector at the intersection point (if the shape traced has uv info into
it). You could then check the 2d position returned against the image of
the uv map, to find the rgb at the intersection point. But it's a bit
too late for a feature request for 3.7, I guess.... ;)
--
Jaime Vives Piqueres
La Persistencia de la Ignorancia
http://www.ignorancia.org
Post a reply to this message
|
![](/i/fill.gif) |