|
|
Hi,
how about adding an limits and hints system?
Let me explain on example,
photons count *must* be >= 0, so its limits are 0 .. about 2^32
Any other value will cause should stop render with error mesage.
For IOR, usualy values are >= 1, but for artistics reasons any value could
be used, so there is no limit, but there is a hint - 1.0 .. 10.0 (other
values will cause Warining, or rather Hints - new stream type in addition
to debug, warning,...)
Limits could be placed both in code so that renderer will inform about them
at parsing-time, and in documentation.
Maybe it would be a good idea to start from documentation, since especialy
newusers could be a bit confused - I think every value should be described
in documentation by default value, suggested values, and valid values
limits.
--
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics
Post a reply to this message
|
|
|
|
spa### [at] raf256com news:Xns94BECA44B61B4raf256com@203.29.75.35
> Maybe it would be a good idea to start from documentation, since
> especialy newusers could be a bit confused - I think every value
> should be described in documentation by default value, suggested
> values, and valid values limits.
Btw, I wish to help adding this to manual, can I help - what tools should I
download to edit source code of help (AFAIK all versions of manual are
generated from one source?). Is there maybe some tool to edit them for
Windows (or are they in some text/html-like format?)
--
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics
Post a reply to this message
|
|
|
|
"Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote in message
news:Xns94BECA44B61B4raf256com@203.29.75.35...
> Hi,
> how about adding an limits and hints system?
>
> Let me explain on example,
>
> photons count *must* be >= 0, so its limits are 0 .. about 2^32
> Any other value will cause should stop render with error mesage.
>
> For IOR, usualy values are >= 1, but for artistics reasons any value could
> be used, so there is no limit, but there is a hint - 1.0 .. 10.0 (other
> values will cause Warining, or rather Hints - new stream type in addition
> to debug, warning,...)
I often use IOR's > 10 for metal textures (using fresnel reflection)
cu!
--
camera{location-z*3}#macro G(b,e)b+(e-b)*(C/50)#end#macro L(b,e,k,l)#local C=0
;#while(C<50)sphere{G(b,e),.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1
;#end#end L(y-x,y,x,x+y)L(y,-x-y,x+y,y)L(-x-y,-y,y,y+z)L(-y,y,y+z,x+y)L(0,x+y,
<.5,1,.5>,x)L(0,x-y,<.5,1,.5>,x) // ZK http://www.povplace.be.tf
Post a reply to this message
|
|