POV-Ray : Newsgroups : moray.win : Light inside Server Time
28 Jul 2024 18:25:21 EDT (-0400)
  Light inside (Message 1 to 6 of 6)  
From: Robert Günther
Subject: Light inside
Date: 27 May 2000 09:04:32
Message: <392FC7BF.D5991086@exmail.de>
Hi there,
i have a little problem with spatch-created objects and povray (moray).
I have created a  body with spatch with a window. Now i want to set a
lightsource inside the body, so that the light will shine through the
window. Unfortunately, the whole body glows, like it is opaque (what it
isn't!).

Can anybody help me, what i'm doing wrong?


Bob


Post a reply to this message

From: Jamie Davison
Subject: Re: Light inside
Date: 27 May 2000 09:10:23
Message: <MPG.1399d8241fadc1d79896c6@news.stmuc.com>
> Hi there,
> i have a little problem with spatch-created objects and povray (moray).
> I have created a  body with spatch with a window. Now i want to set a
> lightsource inside the body, so that the light will shine through the
> window. Unfortunately, the whole body glows, like it is opaque (what it
> isn't!).
> 
> Can anybody help me, what i'm doing wrong?

I can't quite figure out what the problem is.  Any chance of you posting 
the file to moray.binaries, or a slightly clearer description of the 
problem?

Did you make the window by just removing a patch (or not making it in the 
first place)?

Maybe an image posted to povray.binaries.images would help me figure out 
what the problem is.  Or maybe I'm just being slow today (not entirely 
unlikely :)

Bye for now,
     Jamie.


Post a reply to this message

From: Robert Günther
Subject: Re: Light inside
Date: 27 May 2000 09:46:14
Message: <392FD1DA.1B9BF1AA@exmail.de>
Jamie Davison schrieb:

> > Hi there,
> > i have a little problem with spatch-created objects and povray (moray).
> > I have created a  body with spatch with a window. Now i want to set a
> > lightsource inside the body, so that the light will shine through the
> > window. Unfortunately, the whole body glows, like it is opaque (what it
> > isn't!).
> >
> > Can anybody help me, what i'm doing wrong?
>
> I can't quite figure out what the problem is.  Any chance of you posting
> the file to moray.binaries, or a slightly clearer description of the
> problem?
>
> Did you make the window by just removing a patch (or not making it in the
> first place)?
>
> Maybe an image posted to povray.binaries.images would help me figure out
> what the problem is.  Or maybe I'm just being slow today (not entirely
> unlikely :)
>
> Bye for now,
>      Jamie.

Sorry for posting it twice, had a little problem with my provider. Yes, i did
made a window by just removing a patch. What i want, is a body, where the
light shines only through the window from inside. So, when there is no any
further lightsource outside the body, it has to be dark (now glowing of the
body),  so that the light shines only through the removed patch.

best wishes,

Bob


Post a reply to this message

From: Jamie Davison
Subject: Re: Light inside
Date: 27 May 2000 09:53:43
Message: <MPG.1399e2774dba94559896c7@news.stmuc.com>
[snip]
> Sorry for posting it twice, had a little problem with my provider. Yes, i did
> made a window by just removing a patch. What i want, is a body, where the
> light shines only through the window from inside. So, when there is no any
> further lightsource outside the body, it has to be dark (now glowing of the
> body),  so that the light shines only through the removed patch.

I'd suggest making the texture of the patch object with ambient=0 and, if 
you're using MegaPOV, then make sure you're not double_illuminating the 
patches.

Oh, and make sure you haven't set the no_shadow flag on the patch object 
within Moray by accident.

If you want to be able to see the light beam coming out of the window, 
then you're into the realms of media, and at least from me, you're on 
your own :)  The best advice I can giv on media is to tweak it, tweak it 
some more, and be ready to curse when it doesn't work out how you 
expected :)

Bye for now,
     Jamie.


Post a reply to this message

From: Bob Hughes
Subject: Re: Light inside
Date: 28 May 2000 01:26:35
Message: <3930ae0b@news.povray.org>
I'll add this.  Be certain the light_source is fully inside the object.  And if the
camera is on a axis such as in the vector <0,1,-10> where 0 is the on-axis value then
offset the x slightly (same for y or z, whichever might be on-axis).
I don't use Moray but the bicubic_patch from sPatch POV-Ray export could be at fault,
so
check what I said.

Bob

"Jamie Davison" <jam### [at] dh70qdu-netcom> wrote in message
news:MPG### [at] newsstmuccom...
|
| I'd suggest making the texture of the patch object with ambient=0 and, if
| you're using MegaPOV, then make sure you're not double_illuminating the
| patches.
|
| Oh, and make sure you haven't set the no_shadow flag on the patch object
| within Moray by accident.


Post a reply to this message

From: Alexander Enzmann
Subject: Re: Light inside
Date: 31 May 2000 19:53:15
Message: <3935A741.6B7A9E8E@mitre.org>
The why of the problem is easy.  Fixing might be a little tougher.

When the ray intersects the surface, additional rays are sent towards
all lights to determine diffuse/specular effects.  The light inside the
surface is included in this operation.

If you were working with physical objects, this wouldn't happen because
you don't have 2D surfaces.  In order to get around this "problem" in
renderers, there is usually a flag to say you don't want to shade
backsides of surfaces.  The backside being defined in several ways,
including orientation of vertices, direction of normal, etc.  Another
way this problem is obviated in renderers is turning on/off what lights
can illuminate a particular object.

What to do with Moray/POV-Ray?  Not sure - Mega POV might offer a little
more control over single/double sided shading or controlling of lights. 

If you were using something other than a patch, I'd suggest making your
object from a CSG and ensuring you have an inner surface as well as an
outer one - like subtracting a box from another box to make a room, then
differencing boxes from the walls to make window holes.

Xander


> 

> Hi there,
> i have a little problem with spatch-created objects and povray (moray).

> I have created a  body with spatch with a window. Now i want to set a
> lightsource inside the body, so that the light will shine through the
> window. Unfortunately, the whole body glows, like it is opaque (what it

> isn't!).
> 

> Can anybody help me, what i'm doing wrong?
> 

> Bob


Post a reply to this message

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