POV-Ray : Newsgroups : povray.general : Lighting and transparency Server Time
6 Nov 2024 10:23:34 EST (-0500)
  Lighting and transparency (Message 1 to 2 of 2)  
From: Timothy R  Cook
Subject: Lighting and transparency
Date: 5 Sep 2002 20:15:13
Message: <3d77f391$1@news.povray.org>
Is there a way to create a texture such that the areas
that are lit are transparent, and the areas in shadow
opaque?  Would a negative number in phong or specular
accomplish that?  TIA.

-- 
Tim Cook
http://empyrean.scifi-fantasy.com
mirror: http://personal.lig.bellsouth.net/lig/z/9/z993126

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GFA dpu- s: a?-- C++(++++) U P? L E--- W++(+++)>$
N++ o? K- w(+) O? M-(--) V? PS+(+++) PE(--) Y(--)
PGP-(--) t* 5++>+++++ X+ R* tv+ b++(+++) DI
D++(---) G(++) e*>++ h+ !r--- !y--
------END GEEK CODE BLOCK------


Post a reply to this message

From: Zeger Knaepen
Subject: Re: Lighting and transparency
Date: 5 Sep 2002 20:51:17
Message: <3d77fc05$1@news.povray.org>
"Timothy R. Cook" <tim### [at] scifi-fantasycom> schreef in bericht
news:3d77f391$1@news.povray.org...
> Is there a way to create a texture such that the areas
> that are lit are transparent, and the areas in shadow
> opaque?  Would a negative number in phong or specular
> accomplish that?  TIA.
I don't know (haven't tried it), but maybe it's possible with the shadow_pigment
in MLPOV ?

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

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