The lighting is wrong, why?

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
michael520
Posts: 230
Joined: Mon Oct 10, 2005 2:24 am

The lighting is wrong, why?

Post by michael520 »

The vertex very near the light is view so dark, it's wrong. I want to upload the printscreen here but I don't know how to. Help please..[/img]
michael520
Posts: 230
Joined: Mon Oct 10, 2005 2:24 am

Post by michael520 »

does this forum only support hyperlink-image ? can't I upload an image?
needforhint
Posts: 322
Joined: Tue Aug 30, 2005 10:34 am
Location: slovakia

Post by needforhint »

I experianced the same problem, I know what u mean
what is this thing...
sRc
Posts: 431
Joined: Thu Jul 28, 2005 1:44 am
Location: Salt Lake City, Utah
Contact:

Post by sRc »

yeah it doesnt let you upload to it. put the image on like imageshack and then link to it.
The Bard sRc

Blog | Twitter
BlackNinjaGames
Posts: 31
Joined: Mon Sep 05, 2005 4:47 pm
Contact:

Post by BlackNinjaGames »

Is this light behind the polygon?

Then the normal of the polygon would be facing away, so it would be dark.

I think...
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post by bitplane »

Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
michael520
Posts: 230
Joined: Mon Oct 10, 2005 2:24 am

Post by michael520 »

BlackNinjaGames wrote:Is this light behind the polygon?

Then the normal of the polygon would be facing away, so it would be dark.

I think...
For example:
the light is attach with the fps camera.
a cube is near the camera, a wall is further.
so, the cub should be brighter than the wall.
but, in irrlicht, the further corner of the cube is very dark, darker than the wall which is far away!
I know, the further corner of the cube is a vertex, which has faces that the light can't reach, be, the face that is lighted shouldn't have so dark a corner, which is darker than the wall far away.

and , that corner vertex has three normals because it relate with three faces of a cube.
Post Reply