POV-Ray : Newsgroups : povray.unofficial.patches : Photon bug? Server Time
2 Sep 2024 12:17:28 EDT (-0400)
  Photon bug? (Message 5 to 14 of 14)  
<<< Previous 4 Messages Goto Initial 10 Messages
From: Nathan Kopp
Subject: Re: Photon bug?
Date: 24 Mar 2000 15:26:15
Message: <38dbcf67$1@news.povray.org>
Eric Freeman <eri### [at] datasynccom> 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

From: Eric Freeman
Subject: Re: Photon bug?
Date: 25 Mar 2000 15:27:27
Message: <38dd212f@news.povray.org>
"Nathan Kopp" <Nat### [at] Koppcom> wrote in message
news:38dbcf67$1@news.povray.org...
>
> Eric Freeman <eri### [at] datasynccom> 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)

From: Warp
Subject: Re: Photon bug?
Date: 27 Mar 2000 04:05:25
Message: <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.

-- 
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

From: Warp
Subject: Re: Photon bug?
Date: 27 Mar 2000 07:24:48
Message: <38df5310@news.povray.org>
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

From: Warp
Subject: Re: Photon bug?
Date: 27 Mar 2000 08:27:16
Message: <38df61b3@news.povray.org>
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

From: Nathan Kopp
Subject: Re: Photon bug?
Date: 27 Mar 2000 13:53:41
Message: <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.

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] datasynccom> 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

From: Eric Freeman
Subject: Re: Photon bug?
Date: 29 Mar 2000 15:34:35
Message: <38e268db@news.povray.org>
"Warp" <war### [at] tagpovrayorg> 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

From: Eric Freeman
Subject: Re: Photon bug?
Date: 29 Mar 2000 15:38:59
Message: <38e269e3$1@news.povray.org>
"Nathan Kopp" <Nat### [at] Koppcom> 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

From: Bob Hughes
Subject: Re: Photon bug?
Date: 29 Mar 2000 21:40:27
Message: <38e2be9b@news.povray.org>
I've learned to put a space after all double-slashes.  I'm like Pavlovs dog in
that respect.

Bob

"Eric Freeman" <eri### [at] datasynccom> wrote in message
news:38e268db@news.povray.org...
| "Warp" <war### [at] tagpovrayorg> 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

From: Warp
Subject: Re: Photon bug?
Date: 30 Mar 2000 03:46:54
Message: <38e3147e@news.povray.org>
Eric Freeman <eri### [at] datasynccom> 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

<<< Previous 4 Messages Goto Initial 10 Messages

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