![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Eric Freeman <eri### [at] datasync com> wrote ...
> I'm also trying to get a visible reflected light beam with media and have
> had no luck. I've got a hollow box with a small hole in the right side
and
> a light source 500,000 units to the right of the hole. Inside the box
I've
> placed several mirrors which reflect the light and eventually reflect it
> onto the left wall of the box. It works great. But then I added a second
> light source to illuminate the inside of the box but did not want it to
> shoot photons at the mirrors. This resulted in no photons being shot, so
I
> removed it. I added a second box the same size as the inside of the box
to
> contain media so I could see the light as it travels around the box and
get
> the message: "warning: Could not save photon map - no photons!" Also, the
> media does not show the light beam entering from the right and striking
the
> first mirror. As I am clueless when it comes to media, I don't know how
to
> fix this (altho I am randomly tweaking the media parameters to
experiment).
> If I find a cure, I'll let you know.
Send me some source code and I'll take a closer look.
-Nathan
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Nathan Kopp" <Nat### [at] Kopp com> wrote in message
news:38dbcf67$1@news.povray.org...
>
> Eric Freeman <eri### [at] datasync com> wrote ...
> > I'm also trying to get a visible reflected light beam
> > with media and have had no luck. [snip]
> >
> > I added a second box the same size as the inside
> > of the box to contain media so I could see the light
> > as it travels around the box and get the message:
> > "warning: Could not save photon map - no
> > photons!" Also, the media does not show the light
> > beam entering from the right and striking the first
> > mirror. As I am clueless when it comes to media, I
> > don't know how to fix this (altho I am randomly
> > tweaking the media parameters to experiment). If I
> > find a cure, I'll let you know.
>
> Send me some source code and I'll take a closer look.
>
> -Nathan
I got the scene working (see "Phun With Photons" in binaries.images) by
extending the media container to the right to enclose the light source. At
least I think that's what made it work.
As far as the second light source causing no photons to be shot, here's the
scene file. I'm not sure what part of it would be useful, so I'm posting
the whole thing. Pardon the sloppy code. The second light source is just
after the camera declaration. If "reflection off" is set in this light, no
photons are shot. The scene requires "kolors.inc" and my "mega_metals.inc"
but colors can be changed if you don't have these.
Eric
--------------------
http://www.datasync.com/~ericfree
--------------------
"I don't like it, and I'm sorry I ever had anything to do with it."
- Erwin Schrodinger talking about Quantum Mechanics.
Post a reply to this message
Attachments:
Download 'reflector.pov.txt' (9 KB)
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
You might consider including the scene source in plain text instead of
uuencoded the next time, since this is not a binary group.
Thanks.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
This is the scene I'm trying to render. Can someone tell me how should
I modify so that the reflected light would be visible in the media?
#version Unofficial MegaPov 0.4;
#include "colors.inc"
#include "textures.inc"
#declare UsePhotons=yes;
global_settings
{
max_trace_level 6
#if(UsePhotons)
photons
{ count 20000
autostop 0
media 100
}
#end
}
media
{ intervals 10
scattering { 1, rgb .5 extinction .01 }
method 3
}
sphere
{ 0,70 inverse
pigment
{ bozo color_map { [0 rgb 0][1 rgb <1,.5,0>] }
scale <5,10,5>
}
}
camera { location -z*20 look_at 0 angle 35 }
light_source
{ <50,2,0> 1
spotlight point_at y*2 radius .5 falloff .6
}
light_source
{ <100,100,-100>*.3 .8 media_interaction off
#if(UsePhotons)
// photons { reflection off refraction off }
#end
}
#declare MirrorBox=
union
{ difference
{ box { <-.5,-1.8,-1.8><.1,1.8,1.8> }
box { <-.1,-1.5,-1.5><.11,1.5,1.5> }
pigment { DMFWood4 }
}
box
{ <-.1,-1.5,-1.5><0,1.5,1.5>
pigment { rgb 0 }
finish { reflection 1 diffuse 0 ambient 0 }
#if(UsePhotons)
photons
{ target
refraction off
reflection on
ignore_photons
}
#end
}
}
object
{ MirrorBox
rotate z*-45
translate <-3,2,0>
}
object
{ MirrorBox
rotate z*45
translate <-3,-2,0>
}
box
{ <-.5,-1.5,-1.5><0,1.5,1.5>
pigment { Cherry_Wood scale .5 }
rotate z*180
translate <4,-2,0>
}
sphere
{ 0,1.3 scale <.3,1,1>
pigment { rgbf <.7,.9,1,.9> }
finish { specular .5 reflection .1 }
interior { ior 1.5 }
translate <2,-2,0>
#if(UsePhotons)
photons
{ target
refraction on
reflection on
}
#end
}
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
If I substituted the media with a box with media so that the light source
is inside the box, it worked.
Why it only works this way? Why it doesn't work with the global media? Why
the light source has to be inside the box?
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Apparantly I fixed this already. In my WIP version of 0.5, this will shoot
photons even if both reflection and refraction are turned off for the second
light source.
Neat scene, by the way. :-) It's a good example of media photons. If
you'd like, you could clean up the code (however much you want) and I'll
include it in the MegaPov demos.
-Nathan
Eric Freeman <eri### [at] datasync com> wrote...
>
> As far as the second light source causing no photons to be shot, here's
the
> scene file. I'm not sure what part of it would be useful, so I'm posting
> the whole thing. Pardon the sloppy code. The second light source is just
> after the camera declaration. If "reflection off" is set in this light,
no
> photons are shot. The scene requires "kolors.inc" and my
"mega_metals.inc"
> but colors can be changed if you don't have these.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Warp" <war### [at] tag povray org> wrote in message
news:38df2455@news.povray.org...
>
> You might consider including the scene source
> in plain text instead of uuencoded the next time,
> since this is not a binary group.
> Thanks.
Oops. I attached it that way because inserting plain text turns "//" into
"file://" on Outlook Express.
Eric
--------------------
http://www.datasync.com/~ericfree
--------------------
"I don't like it, and I'm sorry I ever had anything to do with it."
- Erwin Schrodinger talking about Quantum Mechanics.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
"Nathan Kopp" <Nat### [at] Kopp com> wrote in message
news:38dfae35@news.povray.org...
>
> Apparantly I fixed this already. In my WIP version of
> 0.5, this will shoot photons even if both reflection and
> refraction are turned off for the second light source.
Cool.
> Neat scene, by the way. :-)
Tanks.
> It's a good example of media photons. If you'd like, you
> could clean up the code (however much you want) and I'll
> include it in the MegaPov demos.
>
> -Nathan
Cool. I'm working on a new version with beam splitters and mirrors. It
should be ready in a day or so.
Eric
--------------------
http://www.datasync.com/~ericfree
--------------------
"I don't like it, and I'm sorry I ever had anything to do with it."
- Erwin Schrodinger talking about Quantum Mechanics.
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
I've learned to put a space after all double-slashes. I'm like Pavlovs dog in
that respect.
Bob
"Eric Freeman" <eri### [at] datasync com> wrote in message
news:38e268db@news.povray.org...
| "Warp" <war### [at] tag povray org> wrote in message
| news:38df2455@news.povray.org...
| >
| > You might consider including the scene source
| > in plain text instead of uuencoded the next time,
| > since this is not a binary group.
| > Thanks.
|
| Oops. I attached it that way because inserting plain text turns "//" into
| "file://" on Outlook Express.
|
| Eric
| --------------------
| http://www.datasync.com/~ericfree
| --------------------
| "I don't like it, and I'm sorry I ever had anything to do with it."
| - Erwin Schrodinger talking about Quantum Mechanics.
|
|
|
|
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
Eric Freeman <eri### [at] datasync com> wrote:
: Oops. I attached it that way because inserting plain text turns "//" into
: "file://" on Outlook Express.
That's why I don't like programs that try to be too smart.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |