POV-Ray : Newsgroups : povray.unofficial.patches : little feature request Server Time
2 Nov 2024 11:23:39 EDT (-0400)
  little feature request (Message 1 to 10 of 10)  
From: ingo
Subject: little feature request
Date: 13 Dec 1999 10:00:22
Message: <8E9BA7199seed7@204.213.191.228>
Would it be possible to change trace(), so that it, next to the normal, also 
returns the colour of the hit point?
Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Ron Parker
Subject: Re: little feature request
Date: 13 Dec 1999 10:52:09
Message: <slrn85a5hj.v8.ron.parker@ron.gwmicro.com>
On 13 Dec 1999 10:00:22 -0500, ingo wrote:
>Would it be possible to change trace(), so that it, next to the normal, also 
>returns the colour of the hit point?

It would, but in keeping with my usual principle of making things as flexible
as possible, I'd prefer to see this functionality implemented as a separate
function that returns the color of a given texture at a given location, since
then it's not tied to an actual object.  I know that that patch has been 
written, more than once, so I'm surprised it's not in MegaPOV.

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

From: ingo
Subject: Re: little feature request
Date: 13 Dec 1999 11:20:38
Message: <8E9BB5D18seed7@204.213.191.228>
Ron Parker wrote:

>...I'd prefer to see this functionality implemented as a separate
>function that returns the color of a given texture at a given location,
>since then it's not tied to an actual object.
>...
That, indeed, would even be nicer.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Chris Huff
Subject: Re: little feature request
Date: 13 Dec 1999 15:16:29
Message: <chrishuff_99-2C9382.15165813121999@news.povray.org>
In article <slr### [at] rongwmicrocom>, 
ron### [at] povrayorg wrote:

> On 13 Dec 1999 10:00:22 -0500, ingo wrote:
> >Would it be possible to change trace(), so that it, next to the normal, 
> >also 
> >returns the colour of the hit point?
> 
> It would, but in keeping with my usual principle of making things as 
> flexible
> as possible, I'd prefer to see this functionality implemented as a 
> separate
> function that returns the color of a given texture at a given location, 
> since
> then it's not tied to an actual object.  I know that that patch has been 
> written, more than once, so I'm surprised it's not in MegaPOV.

I have written an eval_pigment() function that returns the color of a 
pigment at a certain point. This might do what you want, but you have to 
know the pigment used on the object, and it is limited to pigment.

Making a function that acts like trace, but returns the color of a point 
taking lighting into account would probably not be possible, because the 
lighting could depend on parts of the scene not processed yet.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Ron Parker
Subject: Re: little feature request
Date: 13 Dec 1999 16:52:26
Message: <38556a9a@news.povray.org>
On Mon, 13 Dec 1999 15:16:58 -0500, Chris Huff wrote:
>I have written an eval_pigment() function that returns the color of a 
>pigment at a certain point. This might do what you want, but you have to 
>know the pigment used on the object, and it is limited to pigment.

Yours is exactly the patch I had in mind.  It's not in MegaPOV, though.
Any idea why not?

-- 
These are my opinions.  I do NOT speak for the POV-Team.
The superpatch: http://www2.fwi.com/~parkerr/superpatch/
My other stuff: http://www2.fwi.com/~parkerr/traces.html


Post a reply to this message

From: Chris Huff
Subject: Re: little feature request
Date: 13 Dec 1999 16:59:40
Message: <chrishuff_99-99EB88.17000913121999@news.povray.org>
In article <38556a9a@news.povray.org>, ron### [at] povrayorg wrote:

> It's not in MegaPOV, though. Any idea why not?

It probably just didn't get noticed.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: ingo
Subject: Re: little feature request
Date: 13 Dec 1999 17:13:09
Message: <8E9BE37FEseed7@204.213.191.228>
Chris Huff wrote:

>In article <38556a9a@news.povray.org>, ron### [at] povrayorg wrote:
>
>> It's not in MegaPOV, though. Any idea why not?
>
>It probably just didn't get noticed.
>

Lets hope it's noticed now ;)
It's perfect in combination with the trace() function and your very own 
object pattern.

Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

From: Chris Huff
Subject: Re: little feature request
Date: 13 Dec 1999 17:31:39
Message: <chrishuff_99-518C73.17320913121999@news.povray.org>
In article <8E9BE37FEseed7@204.213.191.228>, ing### [at] homenl (ingo) 
wrote:

> Lets hope it's noticed now ;)
> It's perfect in combination with the trace() function and your very own 
> object pattern.

If it gets added, I hope eval_pattern() gets added too. It is a bit 
simpler than eval_pigment(), it returns the float value of the pattern 
at the evaluation point.

Actually, I never thought of using my object pattern with these...it 
would be a good way to detect whether a point is inside an object, while 
trace() is useful for placing things relative to the surface of the 
object.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: smellenbergh
Subject: Re: little feature request
Date: 14 Dec 1999 12:12:26
Message: <1e2te4n.1jcwl0x17r8hl6N%smellenbergh@skynet.be>
Chris Huff <chr### [at] yahoocom> wrote:

We are still looking at all your patches. We are going to add more of
them.
Just needs a bit more time and testing. 
We noticed them all ;-) 

We find it easier if the author of the patches is suplying some example
scenes. Now that we received some from you for your patches it's quicker
to work! Thanks for those examples.
Perhaps some more for all your patches? Most of the time is just a
matter of not having enough time to work more quickly.
We want to be more or less sure that there arn't too many bugs left in
paches before we add them.

Smellenbergh

> In article <8E9BE37FEseed7@204.213.191.228>, ing### [at] homenl (ingo) 
> wrote:
> 
> > Lets hope it's noticed now ;)
> > It's perfect in combination with the trace() function and your very own
> > object pattern.
> 
> If it gets added, I hope eval_pattern() gets added too. It is a bit 
> simpler than eval_pigment(), it returns the float value of the pattern
> at the evaluation point.
> 
> Actually, I never thought of using my object pattern with these...it 
> would be a good way to detect whether a point is inside an object, while
> trace() is useful for placing things relative to the surface of the 
> object.


-- 
e-mail:sme### [at] skynetbe

http://users.skynet.be/smellenbergh


Post a reply to this message

From: Chris Huff
Subject: Re: little feature request
Date: 15 Dec 1999 07:22:13
Message: <chrishuff_99-E23768.07224415121999@news.povray.org>
In article <1e2te4n.1jcwl0x17r8hl6N%smellenbergh@skynet.be>, 
sme### [at] skynetbe (smellenbergh) wrote:

> Chris Huff <chr### [at] yahoocom> wrote:
> 
> We find it easier if the author of the patches is suplying some example
> scenes. Now that we received some from you for your patches it's quicker
> to work! Thanks for those examples.
> Perhaps some more for all your patches? Most of the time is just a
> matter of not having enough time to work more quickly.
> We want to be more or less sure that there arn't too many bugs left in
> paches before we add them.

I will get some demo scenes finished and post them to .text.scene-files.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

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