POV-Ray : Newsgroups : povray.newusers : CSG lighting Server Time
1 Nov 2024 16:22:41 EDT (-0400)
  CSG lighting (Message 1 to 5 of 5)  
From: ADK
Subject: CSG lighting
Date: 27 Dec 2007 18:40:01
Message: <web.477437318dc94c2ab444c6a20@news.povray.org>
Hi,

I've spent ages trying to figure out what's causing this. I'm trying to create a
paper lantern, so I've taken a sphere, used difference with two boxes to get a
horizontal slice of it, and then repeated this with slightly different sized
spheres each time, so as to create a sort of segmented sphere. Now, I've used
double_illuminate and hollow so as to place two spotlights inside, one for just
generally illuminating the inside, and another to create a soft patch of light
to simulate the lightbulb inside it. Now, this hasn't exactly worked. One of
the segments is lit, but all the others are dark. So, can anyone identify the
mistake I've made? Your help would be much appreciated. I'd post an image, but
I've just realised that you can't post attachments here. :(


Post a reply to this message

From: Stephen
Subject: Re: CSG lighting
Date: 27 Dec 2007 18:57:12
Message: <cue8n39ri4pbu2ig0dhjn5g2b200v7kve4@4ax.com>
On Thu, 27 Dec 2007 18:37:21 EST, "ADK" <nomail@nomail> wrote:

>I've just realised that you can't post attachments here. :(

You can post attachments at povray.binaries.images. 
One thing to check; is your max_trace_level high enough? 

Regards
	Stephen


Post a reply to this message

From: Warp
Subject: Re: CSG lighting
Date: 27 Dec 2007 18:57:57
Message: <47743c05@news.povray.org>
ADK <nomail@nomail> wrote:
> Now, I've used
> double_illuminate and hollow so as to place two spotlights inside

  'hollow' has no effect on lighting. (Why would it?)

> One of
> the segments is lit, but all the others are dark.

  The surface hit directly by the light is illuminated, and it's shadowing
the other surfaces.

  Try making the surfaces partially transparent for the light to pass
through.

-- 
                                                          - Warp


Post a reply to this message

From: ADK
Subject: Re: CSG lighting
Date: 27 Dec 2007 20:35:00
Message: <web.477452b0ee7802a5b444c6a20@news.povray.org>
Thanks, I thought something was wrong because there was an immediate transition
from lit to dark from one segment to another, but it turns out it was just one
segment shadowing the others. Also, I took hollow as being hollow rather than
reading what it mean, I get it now.

Warp <war### [at] tagpovrayorg> wrote:
> ADK <nomail@nomail> wrote:
> > Now, I've used
> > double_illuminate and hollow so as to place two spotlights inside
>
>   'hollow' has no effect on lighting. (Why would it?)
>
> > One of
> > the segments is lit, but all the others are dark.
>
>   The surface hit directly by the light is illuminated, and it's shadowing
> the other surfaces.
>
>   Try making the surfaces partially transparent for the light to pass
> through.
>
> --
>                                                           - Warp


Post a reply to this message

From: Alain
Subject: Re: CSG lighting
Date: 28 Dec 2007 14:31:45
Message: <47754f21$1@news.povray.org>
ADK nous apporta ses lumieres en ce 2007/12/27 18:37:
> Hi,
> 
> I've spent ages trying to figure out what's causing this. I'm trying to create a
> paper lantern, so I've taken a sphere, used difference with two boxes to get a
> horizontal slice of it, and then repeated this with slightly different sized
> spheres each time, so as to create a sort of segmented sphere. Now, I've used
> double_illuminate and hollow so as to place two spotlights inside, one for just
> generally illuminating the inside, and another to create a soft patch of light
> to simulate the lightbulb inside it. Now, this hasn't exactly worked. One of
> the segments is lit, but all the others are dark. So, can anyone identify the
> mistake I've made? Your help would be much appreciated. I'd post an image, but
> I've just realised that you can't post attachments here. :(
> 
> 
A little more effecient: Use an intersection of the sphere and one box.
And if you only want a shell, you can use clipped_by. It cut the object and 
leave the clipped part open.

Why use two lights, usualy, in a case like that, one with a looks_like is OK and 
faster.
With your aproach, you'll need another light if you see that object in a 
reflection, and need to adjust the direction of the light if you move the camera.
Set your "paper" as slightly transparent. Apply some normal with a small scale. 
  Add an interior with an ior. You may want to average several normals to get a 
smoother blured contour.
Place a light_source inside with a looks_like statement. Give it a 
fade_distance, and fade_power 2, with a value similar to the radius of the 
looks_like object and increase the value of the light to compansate.

hollow only purpose it to allow an object to contain some media.

-- 
Alain
-------------------------------------------------
You know you've been raytracing too long when people around you are astounded by 
the computer-animated tails they put on babies in The X-Files. You complain that 
it looks fake because they didn't bother to put in the tails' shadows.
Jeff Lee


Post a reply to this message

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