POV-Ray : Newsgroups : povray.binaries.images : Patterned light sources - PatternLights.JPG (1/1) Server Time
4 Nov 2024 22:23:23 EST (-0500)
  Patterned light sources - PatternLights.JPG (1/1) (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Chris Huff
Subject: Patterned light sources - PatternLights.JPG (1/1)
Date: 26 Feb 2000 19:32:18
Message: <chrishuff_99-A21D37.19332226022000@news.povray.org>
I finally got around to implementing patterned light sources, here are 
the first results. The patch isn't quite finished yet, see my post in 
.unofficial.patches for details. Here is the code for these two light 
sources:
light_source {< -8, 5,-3>*2,
    pigment {onion
        color_map {
            [0 color Red]
            [0.5 color Green]
            [1 color Blue]
        }
        translate < -5, 0.5,-3>*2
    }
    color Yellow
    map_type 0
}
light_source {< 2, 5,-5>*2,
    pigment {onion
        color_map {
            [0 color Red]
            [0.5 color Green]
            [1 color Blue]
        }
        translate < 2, 5,-5>*2
    }
    color Yellow
    map_type 0
}

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


Post a reply to this message


Attachments:
Download 'PatternLights.JPG' (41 KB)

Preview of image 'PatternLights.JPG'
PatternLights.JPG


 

From: Bill DeWitt
Subject: Re: Patterned light sources - PatternLights.JPG (1/1)
Date: 26 Feb 2000 19:36:25
Message: <38b87189@news.povray.org>
"Chris Huff" <chr### [at] yahoocom> wrote :
>
> I finally got around to implementing patterned light sources,
>

    That's pretty cool...


Post a reply to this message

From: Ross Litscher
Subject: Re: Patterned light sources - PatternLights.JPG (1/1)
Date: 26 Feb 2000 21:09:23
Message: <38b88753@news.povray.org>
yes, yes... this with a bunch of glass and a bunch of photons.


Post a reply to this message

From: TonyB
Subject: Re: Patterned light sources - PatternLights.JPG (1/1)
Date: 26 Feb 2000 21:43:09
Message: <38b88f3d@news.povray.org>
Great work, but why

>light_source {< -8, 5,-3>*2,
>    pigment {onion
>        color_map {
>            [0 color Red]
>            [0.5 color Green]
>            [1 color Blue]
>        }
>        translate < -5, 0.5,-3>*2
>    }


>    color Yellow


---------^-^-^

>    map_type 0
>}

?


Post a reply to this message

From: Chris Huff
Subject: Re: Patterned light sources - PatternLights.JPG (1/1)
Date: 26 Feb 2000 22:07:14
Message: <chrishuff_99-B948BA.22084126022000@news.povray.org>
In article <38b88f3d@news.povray.org>, "TonyB" 
<ben### [at] panamac-comnet> wrote:

> Great work, but why
> 
> >light_source {< -8, 5,-3>*2,
> >    pigment {onion
> >        color_map {
> >            [0 color Red]
> >            [0.5 color Green]
> >            [1 color Blue]
> >        }
> >        translate < -5, 0.5,-3>*2
> >    }
> 
> 
> >    color Yellow
> 
> 
> ---------^-^-^
> 
> >    map_type 0
> >}

Oh, that is something I forgot about. You can specify both the solid 
color and a pigment, the pigment overrides the color. I had both 
specified while I was working on some code that hadn't yet been changed 
to use the pigment, and just never deleted it from the .pov file.

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


Post a reply to this message

From: Chris Huff
Subject: Re: Patterned light sources - PatternLights.JPG (1/1)
Date: 26 Feb 2000 22:09:46
Message: <chrishuff_99-D2BB88.22111426022000@news.povray.org>
In article <38b88753@news.povray.org>, "Ross Litscher" 
<lit### [at] osuedu> wrote:

> yes, yes... this with a bunch of glass and a bunch of photons.

Well...since I haven't gotten the mappings working yet, it would just 
look like caustics with the pattern(the pattern itself won't be 
refracted/reflected). I am still working on that part.

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


Post a reply to this message

From: Mick Hazelgrove
Subject: Re: Patterned light sources - PatternLights.JPG (1/1)
Date: 27 Feb 2000 04:57:42
Message: <38b8f516@news.povray.org>
Great. This has wonderful possibilities. Look forward to seeing it in the
next megapatch

Mick

--
*************************************************************
       http://www.minda.swinternet.co.uk/index.htm

*************************************************************
"Chris Huff" <chr### [at] yahoocom> wrote in message
news:chrishuff_99-A21D37.19332226022000@news.povray.org...
> I finally got around to implementing patterned light sources, here are
> the first results. The patch isn't quite finished yet, see my post in
> .unofficial.patches for details. Here is the code for these two light
> sources:
> light_source {< -8, 5,-3>*2,
>     pigment {onion
>         color_map {
>             [0 color Red]
>             [0.5 color Green]
>             [1 color Blue]
>         }
>         translate < -5, 0.5,-3>*2
>     }
>     color Yellow
>     map_type 0
> }
> light_source {< 2, 5,-5>*2,
>     pigment {onion
>         color_map {
>             [0 color Red]
>             [0.5 color Green]
>             [1 color Blue]
>         }
>         translate < 2, 5,-5>*2
>     }
>     color Yellow
>     map_type 0
> }
>
> --
> Chris Huff
> e-mail: chr### [at] yahoocom
> Web page: http://chrishuff.dhs.org/
>
>


Post a reply to this message

From: Ken
Subject: Re: Patterned light sources - PatternLights.JPG (1/1)
Date: 27 Feb 2000 05:01:16
Message: <38B8F541.C0956320@pacbell.net>
Mick Hazelgrove wrote:
> 
> Great. This has wonderful possibilities. Look forward to seeing it in the
> next megapatch

I agree. I was just thinking how easy it would be to simulate a prism
color spectrum using a rainbow color map with a gradient pattern. It
would be much faster than using photons with dispersion and would give
you greater control over the colors. This is just one idea for this
feature !

-- 
Ken Tyler -  1300+ Povray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Bob Hughes
Subject: Re: Patterned light sources - PatternLights.JPG (1/1)
Date: 27 Feb 2000 05:52:19
Message: <38b901e3@news.povray.org>
What happens if the color map is scaled very small or the frequency increased a
lot?  Maybe some interesting colorations at certain places and the rest more or
less like white light perhaps?

Bob


Post a reply to this message

From: ingo
Subject: Re: Patterned light sources - PatternLights.JPG (1/1)
Date: 27 Feb 2000 06:03:18
Message: <8EE773FB3seed7@204.213.191.228>
Bob Hughes wrote:

>What happens if the color map is scaled very small or the frequency
>increased a lot?

Do this with two light_sources and yo get interference patterns tha can be 
used to measure, and thus triangulate, objects. Mmm, where is my optics 
book ...

Ingo

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


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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