PDA

View Full Version : Reflection seen without lights


CONDE3D
11-06-2002, 10:07 PM
Hi, just a simple problem:
Even when the lights are off (or without lights), I continue seeing the reflection map on the object.
Here´s the pic. Thanx!

DesignDawg
11-06-2002, 11:17 PM
There's definitely a light in that scene.

Is the image supposed to show us what you're talking about?

Ricky

empleh
11-06-2002, 11:49 PM
I thought reflection maps showed up without raytracing. I also thought that they would show up without a light. Aren't reflection maps additive light?

ww

CONDE3D
11-06-2002, 11:51 PM
There's only one point light!!!
(I work with Maya 3.0, but dont believe that would be the prob)

Its the model, with a Blinn shader, with a spherical projected file texture (in reflected color channel),ambience color is black...

CONDE3D
11-07-2002, 01:36 AM
Correction about my scene description:
It dont reflects a spherical proyection file.
My object reflects a bigger sphere (primary visibility OFF, Visible in reflection ON) with a surface shader.

empleh
11-07-2002, 01:57 AM
A surface shader doesn't do any light based calculations for the color. If you assign a surface shader the color red, then it will always be red, regardless of the light or lack there of. That's why you are assigning a value to the "out color". The reflected rays will see this color also and give you reflections, even though you don't have a light.

At least that's what I think is happening.

Does that make sense, or did I misunderstand?

ww

CONDE3D
11-07-2002, 02:24 AM
Hmmm.... you're wright!!
That's the problem...
So, must be a way to make it work!! I mean, reflect when it's illuminated and dont when is dark. Maybe some kind of connection between shader and light...
By the way, I tried non raytrace reflection (color reflection file) and it didn't work neither!!

empleh
11-07-2002, 02:41 AM
You could multiply your keylight intensity by the color of the reflection map and then feed that value to the surface shader. That way the illuminance of the reflected environment will change as the illuminance of the real one does.

Who knows if it will look right or not.

ww

alexx
11-07-2002, 08:22 AM
if you connect your reflection map not to the reflected color but the color e.g. itself you have the desired result.
in general reflection maps are added to the color, which means they are visible even if there is no light at all in the scene

cheers

alexx

Gentle Fury
11-08-2002, 01:11 AM
when there are no lights in a scene maya gives you a default ambient light......it wasnt like that until like ver 4 (i hate it) so if you dont want any lights in the scene make a light and set the intensity to 0

alexx
11-08-2002, 08:53 AM
i think it is a point light in the camera :)

btw: just hiding the light helps as well..
maya just checks, if there is any light present in the scene to determine whether a default light should be created. if it finds a light (hidden or not) none gets created..

fury:
you can switch the behaviour of a default light creation off in the render globals
(renderOptions->enableDefaultLight)

cheers

alexx

CGTalk Moderation
01-13-2006, 09:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.