POV-Ray : Newsgroups : povray.unofficial.patches : Dispersion in the Photon Patch Server Time
2 Nov 2024 15:24:57 EDT (-0400)
  Dispersion in the Photon Patch (Message 1 to 6 of 6)  
From: Chris Maryan
Subject: Dispersion in the Photon Patch
Date: 8 May 1999 16:37:14
Message: <373492DF.905781A3@geocities.com>
A while ago I saw someone mention using dispersion with the photon patch
on one of the povray NGs. My newsreader (NS) is configured to delete all
headers more than a few days old and I can no longer find this message.
I need to know the syntax for adding dispersion to an object.

Any help would be appreciated, thanks.

-- 
Chris Maryan
mailto:cma### [at] geocitiescom
***
Will work for cash.
***
Email me if you are interested in donating
to the Chris Maryan needs money fund.
We will also accept donations to the Chris
needs a Pentium III or SGI workstation 
fund and the Chris needs a car fund.


Post a reply to this message

From: Ken
Subject: Re: Dispersion in the Photon Patch
Date: 8 May 1999 18:23:45
Message: <37340280.DD9975AA@pacbell.net>
Chris Maryan wrote:
> 
> A while ago I saw someone mention using dispersion with the photon patch
> on one of the povray NGs. My newsreader (NS) is configured to delete all
> headers more than a few days old and I can no longer find this message.
> I need to know the syntax for adding dispersion to an object.
> 
> Any help would be appreciated, thanks.
> 
> --
> Chris Maryan


 Nathan Kopp replied to my quwry with the following:


...I have implemented dispersion, but there's no default spectrum.
If you creat your light source like this:

light_source { <10,10,10>
  color <1,1,1> // this will be replaced, but the parser is a hack right
                //   now, so it is still required
  color_map{    // here you define your light's spectrum
                //   this color_map acts like "average":  the first value is
                //   weight (intensity), the second is color
    [1, <.5,0,0>]
    [1, <.2,.2,0>]
    [1, <.3,.3,0>]
    [1, <0,.5,.5>]
    [1, <0,0,.5>]
  }
}

Notice, the color map entries added up to <1,1,1>.  This spectrum will
probably look bad (I made it up just now), but you get the idea.
------------


Good luck,

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

From: Chris Maryan
Subject: Re: Dispersion in the Photon Patch
Date: 8 May 1999 19:31:50
Message: <3734BBD1.1F71888E@geocities.com>
Just a note, I tried it and got an error.
Adding 'rgb' in front of the colour vectors in the color_map fixed the
problem. Well at least I think it did, I no longer get a parser error
but my scene has no visible dispersion. However, this may be due to the
design of my scene rather than a complete failure of the dispersion
feature.

I'm going to play around with the scene and see what happens.

-- 
Chris Maryan
mailto:cma### [at] geocitiescom
***
Will work for cash.
***
Email me if you are interested in donating
to the Chris Maryan needs money fund.
We will also accept donations to the Chris
needs a Pentium III or SGI workstation 
fund and the Chris needs a car fund.


Post a reply to this message

From: Michael Andrews
Subject: Re: Dispersion in the Photon Patch
Date: 10 May 1999 08:50:43
Message: <3736C88F.2F51E5B8@remove-this.reading.ac.uk>
Hi Chris,
	I am one of the folks playing with dispersion in the photon patch - I
posted a picture or two showing the effect. Looking back in the scene
files ng I can't see that I got around to posting any source. Well, I'll
post the source to a slightly modified version of the 'Photon Crystal'
picture I made.

	Bye for now,
		Mike Andrews.

Chris Maryan wrote:
> 
> A while ago I saw someone mention using dispersion with the photon patch
> on one of the povray NGs. My newsreader (NS) is configured to delete all
> headers more than a few days old and I can no longer find this message.
> I need to know the syntax for adding dispersion to an object.
> 
> Any help would be appreciated, thanks.
> 
> --
> Chris Maryan
> mailto:cma### [at] geocitiescom
> ***
> Will work for cash.
> ***
> Email me if you are interested in donating
> to the Chris Maryan needs money fund.
> We will also accept donations to the Chris
> needs a Pentium III or SGI workstation
> fund and the Chris needs a car fund.


Post a reply to this message

From: Nathan Kopp
Subject: Re: Dispersion in the Photon Patch
Date: 12 May 1999 19:16:49
Message: <3739FDA8.BFCADEE6@Kopp.com>
Sorry 'bout that... that's what I get for posting code that I just make
up without testing it first.

BTW, I now have a macro that will automatically create a nice color_map
spectrum given a number of elements.  It will be with the next release
of UVPov.  Make sure to put the 'dispersion' keyword in your object
just like you do for Daren's dispersion.

-Nathan

Chris Maryan wrote:
> 
> Just a note, I tried it and got an error.
> Adding 'rgb' in front of the colour vectors in the color_map fixed the
> problem. Well at least I think it did, I no longer get a parser error
> but my scene has no visible dispersion. However, this may be due to the
> design of my scene rather than a complete failure of the dispersion
> feature.
> 
> I'm going to play around with the scene and see what happens.
> 
> --
> Chris Maryan
> mailto:cma### [at] geocitiescom
> ***
> Will work for cash.
> ***
> Email me if you are interested in donating
> to the Chris Maryan needs money fund.
> We will also accept donations to the Chris
> needs a Pentium III or SGI workstation
> fund and the Chris needs a car fund.


Post a reply to this message

From: Ken
Subject: Re: Dispersion in the Photon Patch
Date: 12 May 1999 21:54:29
Message: <373A229A.F19A5E3B@pacbell.net>
Nathan Kopp wrote:

>  Make sure to put the 'dispersion' keyword in your object
> just like you do for Daren's dispersion.

 "Ah Ha!" Ken say's with sudden understading of his previous failures
with this proceedure.

-- 
Ken Tyler

mailto://tylereng@pacbell.net


Post a reply to this message

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