POV-Ray : Newsgroups : povray.general : Is it possible to trace colours in 3d? Server Time
29 Jul 2024 14:17:13 EDT (-0400)
  Is it possible to trace colours in 3d? (Message 1 to 5 of 5)  
From: Nekar Xenos
Subject: Is it possible to trace colours in 3d?
Date: 16 May 2011 14:18:31
Message: <op.vvk6g4rjufxv4h@xena>
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.

-- 
-Nekar Xenos-


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: Is it possible to trace colours in 3d?
Date: 16 May 2011 17:59:52
Message: <4dd19e58$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.


-- 
Jaime Vives Piqueres
		
La Persistencia de la Ignorancia
http://www.ignorancia.org


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: Is it possible to trace colours in 3d?
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

From: Roman Reiner
Subject: Re: Is it possible to trace colours in 3d?
Date: 17 May 2011 04:40:01
Message: <web.4dd233efc1136d603cf570d20@news.povray.org>
MegaPOV has a camera_view pigment. Maybe it could work with that?


Post a reply to this message

From: clipka
Subject: Re: Is it possible to trace colours in 3d?
Date: 18 May 2011 19:25:41
Message: <4dd45575$1@news.povray.org>
Am 17.05.2011 09:18, schrieb Jaime Vives Piqueres:

> 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.... ;)

Too late for 3.70, yes. But chances are there'll be a 3.71 some day ;-)


Post a reply to this message

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