POV-Ray : Newsgroups : povray.general : odd behavior of photon reflection/refraction defaults : Re: odd behavior of photon reflection/refraction defaults Server Time
15 Dec 2025 22:04:13 EST (-0500)
  Re: odd behavior of photon reflection/refraction defaults  
From: jr
Date: 11 Dec 2025 15:10:01
Message: <web.693b2471874e57e8475fba6a6cde94f1@news.povray.org>
hi,

"Kenneth" <kdw### [at] gmailcom> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > > > Kenneth wrote:]
> > > > Would these be more appropriate for the docs' default?:
> > > > target 1.0     When 'spacing' is used in the global photons block
> > > > target on     When 'count' is used in the global photons block
> >
> > why 'on' ??
> > (do you actually want to add further "ambiguities" to the parsing ?
>
> Sorry to say that I did not do much testing of 'target' behavior until now-- and
> it is also a bit confusing to me.
>
> Given that the docs say that the default for an object is 'target 1.0'-- which
> should mean ON as I understand it (when *either* 'count' or 'spacing' is used ...

"The keyword target makes this object a target."  note, keyword alone.
<wiki.povray.org/content/Reference:Photons#Photon_Global_Settings>

as I wrote, the syntax diagram says 'target [float]', a value of '1.0' simply
ensures (I think) that "nothing changes" by default wrt photon spacing.


> ...
> So it seems that the target default is OFF for an object-- unless I am
> completely mistaken as the what 'default of target 1.0' means in the docs (other
> than as an explicit 'spacing divisor').

there isn't a photons "default" either w/out corresponding block, iiuc.  unsure
how 'collect' plays with 'target', but, again aiui, 'refraction' and
'reflection' do not require the object to be a target.

also, fwiw, the documentation calls it a "spacing multiplier", rather than
"divisor".  luckily, with '1.0', no difference :-).


regards, jr.


Post a reply to this message

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