POV-Ray : Newsgroups : povray.binaries.images : Translucent Leaf Texture : Re: Translucent Leaf Texture Server Time
1 Aug 2024 06:25:06 EDT (-0400)
  Re: Translucent Leaf Texture  
From: Zeger Knaepen
Date: 24 Oct 2008 14:28:29
Message: <490213cd$1@news.povray.org>
"slongay" <slo### [at] gmailcom> wrote in message 
news:web.49020cb3fbf8e12a2ebc1c00@news.povray.org...
> Hi, I am currently trying to render large trees in POV-Ray. I have 
> attached an
> image of a prototype scene so you can see what I mean. The scene used was
> created by Gilles Tran and is available here:
> http://www.oyonale.com/modeles.php?lang=en&page=38
>
> I have just replaced his tree with one of mine.
>
> The issue I am having is that with so many leaves light does not propagate 
> into
> the crown of the tree. In the picture I have posted I used a %50 
> transparent
> leaf texture which helps a little but also blurs everything and would look 
> bad
> for close up shots.
>
> What I am looking for is a way to make a texture that allows light to pass
> through it while not having the object transparent.
>
> Does anyone know how to do this in POV-Ray?

Chris B posted a useful and relevant technique in povray.general, thread: 
"Shadow density"
Just add no_shadow to your tree, remove the transparency, and add a copy of 
the same tree in the same place, with no_image and some transparency.  I 
think this should give you the desired result.

cu!
-- 
#macro G(b,e)b+(e-b)*C/50#end#macro _(b,e,k,l)#local C=0;#while(C<50)
sphere{G(b,e)+3*z.1pigment{rgb G(k,l)}finish{ambient 1}}#local C=C+1;
#end#end _(y-x,y,x,x+y)_(y,-x-y,x+y,y)_(-x-y,-y,y,y+z)_(-y,y,y+z,x+y)
_(0x+y.5+y/2x)_(0x-y.5+y/2x)            // ZK http://www.povplace.com


Post a reply to this message

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