POV-Ray : Newsgroups : povray.unofficial.patches : POV-Man sky_sphere problem Server Time
2 Sep 2024 00:19:02 EDT (-0400)
  POV-Man sky_sphere problem (Message 11 to 15 of 15)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Vahur Krouverk
Subject: Re: POV-Man sky_sphere problem
Date: 5 Dec 2000 10:38:16
Message: <3A2D0C66.C0BB0DDB@aetec.ee>
Paul Wise wrote:
> 
> Vahur Krouverk wrote:
> 
> > Sky sphere is not usual object and its shading
> > calculation lacks number of parameters (most notably normal of surface),
> > which are needed for anisotropic shader.
> 
> Could the normal of the skysphere be considered to be -1 times the ray direction
> ?

One possibility of course is to pass along as much information as
possible in each case: in case of sky sphere find normal and pass it
along (btw, such approach, proposed above, will work only in special
case, generally normals are transformed differently from points or
vectors), etc. But will it be sound solution? In such case shader writer
should know beforehand, which variables are available and which are not
in each particular case. Of course available variables for each type of
non-object could be specified in documentation, but this will be too
implementation-dependent and its use will become cumbersome and awkward.
Additionally, normal is used for lighting calculation, but sky sphere
(and other non-objects) have nothing to do with lighting, they have only
pigment.

Much better solution would be to create other shader type (lets call it
pigment shader).
This shader could be used with such non-objects, it will have clearly
defined subset of built-in variables (e.g. shading point (or better yet,
evaluation point) P, output color Ci, output opacity Oi etc.) and
built-in functions, which are guaranteed to work with this limited set
(e.g. shading and lighting functions have no meaningful implementation
and should be disabled, math and geometric functions could be used).
But such approach will require quite big rewriting and I'm not sure,
whether I want to do this right now (although I'm thinking about
implementing displacement shaders sometimes in future and such work
could become handy in this case, for displacement shaders have limited
set of functionality as well).

Easiest solution for now would is to issue warning, when shader is used
with non-object and shader writer should ensure, that shader will work
correctly. Of course this implies, that it should be documented, which
functions and built-in variables are available and could be used without
problems (from built-in variables only shading (or evaluation) point,
resulting color and opacity are available, possible functions are math
and geometry, etc.).


Post a reply to this message

From: Chris Huff
Subject: Re: POV-Man sky_sphere problem
Date: 5 Dec 2000 17:15:26
Message: <chrishuff-D9971B.17161105122000@news.povray.org>
In article <3a2d03c3@news.povray.org>, Warp <war### [at] tagpovrayorg> 
wrote:

>   Why hollow and not inverted?

So you can put media in it. :-)

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

From: Mark Wagner
Subject: Re: POV-Man sky_sphere problem
Date: 6 Dec 2000 01:29:54
Message: <3a2ddce2$1@news.povray.org>
Vahur Krouverk wrote in message <3A2C8EFE.8619FB3F@aetec.ee>...
>P.S. Mark, out of curiosity, what was the reason to try anisotropic
>shader with sky_sphere? Was it attempt to break things or attempt to
>perform something nice? Sky sphere is not usual object and its shading
>calculation lacks number of parameters (most notably normal of surface),
>which are needed for anisotropic shader.

Originally, I was applying a "clouds" shader to the sky_sphere, but after
POV-Man crashed when using it, I tried a few other shaders to see if the
problem was with the specific shader, or with POV-Man, and the anisotropic
shader just happened to be the last one I tested.

--
Mark

"The derivative of sin(2x) is cos(2x)"  - Matt Giwer
"I never said that" - Matt Giwer


Post a reply to this message

From: Vahur Krouverk
Subject: Re: POV-Man sky_sphere problem
Date: 6 Dec 2000 02:08:40
Message: <3A2DE67A.12BC1C37@aetec.ee>
Mark Wagner wrote:
> 
> Originally, I was applying a "clouds" shader to the sky_sphere, but after
> POV-Man crashed when using it, I tried a few other shaders to see if the
> problem was with the specific shader, or with POV-Man, and the anisotropic
> shader just happened to be the last one I tested.

Do you mean clouds shader from my homepage? I'm not sure, whether it
will work with sky_sphere even with the fixed version: in order to have
something, that resembles cloud, several spheres (or other objects)
should be used; with one surface it doesn't look like cloud at all.


Post a reply to this message

From: Mark Wagner
Subject: Re: POV-Man sky_sphere problem
Date: 7 Dec 2000 02:05:02
Message: <3a2f369e$1@news.povray.org>
Vahur Krouverk wrote in message <3A2DE67A.12BC1C37@aetec.ee>...
>Do you mean clouds shader from my homepage? I'm not sure, whether it
>will work with sky_sphere even with the fixed version: in order to have
>something, that resembles cloud, several spheres (or other objects)
>should be used; with one surface it doesn't look like cloud at all.

No, it's one I found on the Internet.  It uses only the evaluation point as
input.
--
Mark

"The derivative of sin(2x) is cos(2x)"  - Matt Giwer
"I never said that" - Matt Giwer


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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