POV-Ray : Newsgroups : povray.binaries.images : Translucency shader test Server Time
18 Aug 2024 04:20:15 EDT (-0400)
  Translucency shader test (Message 1 to 4 of 4)  
From: Abe
Subject: Translucency shader test
Date: 10 Jul 2001 20:09:11
Message: <3B4B985D.7B4E526C@taconic.net>
I asked once about rendering translucency with pov or at least
simulating it.
I got some replies, among which was "try writing a shader" - I was
dreading that.

Well, I finally got up the nerve - and you know, it was kinda fun!
(regardless of the outcome). Here is the result of my first whack at it,
applied to some leaves. The approach is heuristic and not very robust.
The shader in its present state would probably get me banned from CG
circles for committing such atrocities to code.

Anyway, there are two views; one with, and one without translucency.
Light source is roughly 80 degrees to the left of the direction of view.

Abe


Post a reply to this message


Attachments:
Download 'leaftest1.jpg' (74 KB) Download 'leaftest2.jpg' (66 KB)

Preview of image 'leaftest1.jpg'
leaftest1.jpg

Preview of image 'leaftest2.jpg'
leaftest2.jpg


 

From: Nekar Xenos
Subject: Re: Translucency shader test
Date: 11 Jul 2001 11:15:19
Message: <3b4c6d87@news.povray.org>
Very good looks quite 'real' - until you look for detail that is.

- Nekar

--
/* Nekar Xenos */#local N=<-20,40,100>;#local K=<20,-40,100>;#local R=seed(0);
blob{#while((K-N).x>0)#local X=N;#local N=N+<rand(R),rand(R),1>/3;#local N=(
vlength(N-K)<vlength(X-K)?N:2*X-N);sphere{<N.y,-N.x,N.z>,1,1 scale .02}sphere{N
,1,1 scale.02}sphere{<-N.x-40,N.y,N.z>1,1 scale.01}sphere{<N.x+40,-N.y,N.z>1,1
scale.01 }#end pigment{rgbt 1}interior{media{emission <2,4,5>*5}}hollow}


Post a reply to this message

From: Jari Juslin
Subject: Re: Translucency shader test
Date: 11 Jul 2001 18:07:32
Message: <3B4CCE22.3949EEDB@iki.fi>
Abe wrote:
> Here is the result of my first whack

Pretty cool, I have to admit.

-- 
          /"\                           |    iki.
          \ /     ASCII Ribbon Campaign |    fi/
           X      Against HTML Mail     |    zds
          / \


Post a reply to this message

From: Povray
Subject: Re: Translucency shader test
Date: 20 Jul 2001 15:41:33
Message: <3b58896d$1@news.povray.org>
I'm wondering if I could get a copy of the shader you used for this test
scene?  I've never used one myself, but they intrest me, and this looks
simular to something I wanted to try to do for a scene..

"Abe" <bul### [at] taconicnet> wrote in message
news:3B4B985D.7B4E526C@taconic.net...
> I asked once about rendering translucency with pov or at least
> simulating it.
> I got some replies, among which was "try writing a shader" - I was
> dreading that.
>
> Well, I finally got up the nerve - and you know, it was kinda fun!
> (regardless of the outcome). Here is the result of my first whack at it,
> applied to some leaves. The approach is heuristic and not very robust.
> The shader in its present state would probably get me banned from CG
> circles for committing such atrocities to code.
>
> Anyway, there are two views; one with, and one without translucency.
> Light source is roughly 80 degrees to the left of the direction of view.


Post a reply to this message

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