POV-Ray : Newsgroups : povray.general : Is it possible to trace colours in 3d? : Re: Is it possible to trace colours in 3d? Server Time
29 Jul 2024 14:27:02 EDT (-0400)
  Re: Is it possible to trace colours in 3d?  
From: Jaime Vives Piqueres
Date: 17 May 2011 03:18:14
Message: <4dd22136$1@news.povray.org>


>> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.