POV-Ray : Newsgroups : povray.binaries.images : Sky shader for PovMan ... (18K bu) Server Time
15 Nov 2024 16:16:33 EST (-0500)
  Sky shader for PovMan ... (18K bu) (Message 1 to 6 of 6)  
From: Michael Andrews
Subject: Sky shader for PovMan ... (18K bu)
Date: 26 May 2003 12:44:18
Message: <3ed24462@news.povray.org>
Hi Folks,

I've been playing with PovMan 1.0 over the weekend and decided to write 
a shader.

I've basicly translated Philippe Debar's Skylight.inc v0.6b to a pigment 
shader. For ease of implementation I chopped out the integration to 
Jaimes Vives Piqueres' light macros and the ability to vary 'north', but 
now I have it working I'll try to reimplement these.

Attached is a test render. I'll post the .pov and .sl files in p.b.s-f 
shortly.

Please let me know what you think of it.

Bye for now,
	Mike Andrews.


Post a reply to this message


Attachments:
Download 'skytest.jpg' (18 KB)

Preview of image 'skytest.jpg'
skytest.jpg


 

From: Christoph Hormann
Subject: Re: Sky shader for PovMan ... (18K bu)
Date: 27 May 2003 10:47:57
Message: <3ED37A9D.4B693B50@gmx.de>
Michael Andrews wrote:
> 
> Hi Folks,
> 
> I've been playing with PovMan 1.0 over the weekend and decided to write
> a shader.
> 
> I've basicly translated Philippe Debar's Skylight.inc v0.6b to a pigment
> shader. For ease of implementation I chopped out the integration to
> Jaimes Vives Piqueres' light macros and the ability to vary 'north', but
> now I have it working I'll try to reimplement these.

Nice idea but i am not sure if this would be the most efficient way. 
POV-Man shaders are not extremely fast.  Even using native POV-Ray 3.5
functions would be quite a bit faster probably.  

Concerning the image - the brightness ratio between sky near and far away
from the sun does not seem right, the sky directly at the sun is darker
than the brightest parts of the ground.

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Vahur Krouverk
Subject: Re: Sky shader for PovMan ... (18K bu)
Date: 27 May 2003 11:39:08
Message: <3ed3869c$1@news.povray.org>
Michael Andrews wrote:
> Hi Folks,
> 
> Please let me know what you think of it.
> 
Is there any noticeable speed difference between Debar's macros and 
shader? I guess that this picture renders fast enough, so this speed 
difference is probably insignificant for such pictures...
Can't say anything about the picture itself, as I'm not familiar with 
Debar's macros or original paper...


Post a reply to this message

From: Gilles Tran
Subject: Re: Sky shader for PovMan ... (18K bu)
Date: 27 May 2003 13:15:21
Message: <3ed39d29$1@news.povray.org>

3ed3869c$1@news.povray.org...
> Is there any noticeable speed difference between Debar's macros and
> shader? I guess that this picture renders fast enough, so this speed
> difference is probably insignificant for such pictures...

IIRC, Philippe Debar's macro works by creating a faceted sphere and
assigning a different texture to each facet, and both operations are quite
slow (it's like building a giant bitmap pixel per pixel).

G.

--

**********************
http://www.oyonale.com
**********************
- Graphic experiments
- POV-Ray and Poser computer images
- Posters


Post a reply to this message

From: Christoph Hormann
Subject: Re: Sky shader for PovMan ... (18K bu)
Date: 27 May 2003 13:25:01
Message: <3ED39F6C.332EE623@gmx.de>
Gilles Tran wrote:
> 
> IIRC, Philippe Debar's macro works by creating a faceted sphere and
> assigning a different texture to each facet, and both operations are quite
> slow (it's like building a giant bitmap pixel per pixel).

But it will render fairly fast which is the most important thing (a
sky_sphere with a image_map pigment could be even faster but this will
have problems with limited dynamic range with current POV-Ray of course).

Christoph

-- 
POV-Ray tutorials, include files, Sim-POV,
HCR-Edit and more: http://www.tu-bs.de/~y0013390/
Last updated 28 Feb. 2003 _____./\/^>_*_<^\/\.______


Post a reply to this message

From: Philippe Debar
Subject: Re: Sky shader for PovMan ... (18K bu)
Date: 27 May 2003 20:36:28
Message: <3ed4048c@news.povray.org>
Christoph Hormann wrote:
> 
> Gilles Tran wrote:
> 
>>IIRC, Philippe Debar's macro works by creating a faceted sphere and
>>assigning a different texture to each facet, and both operations are quite
>>slow (it's like building a giant bitmap pixel per pixel).
> 
> 
> But it will render fairly fast which is the most important thing (a
> sky_sphere with a image_map pigment could be even faster but this will
> have problems with limited dynamic range with current POV-Ray of course).


Yes, I still have to add a save mesh feature - among many other things. 
Just waiting for RL to slow a little to do that...


Povingly,


Philippe


Post a reply to this message

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