Page 1 of 1

Lights and Shadow

Posted: Thu Jan 05, 2006 12:52 am
by Keil
I'm currently using Irrlicht 12.

i have a MD2 model which i can move into an apartment modeled with milkshape3d.
I apply shadow, so i put a light somewhere into the ceil.

when approching my md2 to a wall, i see his shadow, but, i see that the shadow is projected onto the wall behind too. i can see that because of the 3rd person-view i created.
I explain again:
the md2's shadow is projected on the floor. If i put a wall, the shadow is projected on the wall but continue to be projected in the floor even behind the wall
i i put some more walls, same effect again over the floor and each wall owns a projection of the md2's shadow.


Other problem but with light:
I hide my md2 behind a wall but the md2 keep being lit as if there weren't any wall

Posted: Thu Jan 05, 2006 2:14 pm
by Keil

Posted: Mon Jan 16, 2006 11:01 pm
by Anteater
That happens all the time in commercial games. BF:V and Dragon Quest VIII are examples.

Posted: Wed Jan 25, 2006 1:52 pm
by Guest
ok, but i don't want it to appear in my one.
is there a possibility to take down that bug?
(i don't ask how, i just don't ask if there are possibilities)

Posted: Wed Jan 25, 2006 2:53 pm
by needforhint
if I hit the .exe the game doesn't start, only console window appears for a piece of a second.... no mistake reports form XP os.
much worst then a shadow...

Posted: Wed Jan 25, 2006 7:11 pm
by Guest
Same problem, console window shows for a fraction of a second, but app does not run (XP / Win2K). Could use a logfile.

Posted: Tue Jan 31, 2006 9:42 am
by Guest
Ok! i update the zip to the latest version i made.
you will get it at:
http://viper.sign.free.fr/rpgtest.zip
It's for Windows only with DX9

but you need to set the key at the title screen by pressing F1.
i recommend the following keys
Joystick: Aucun
touche Valide: Mouse Left Click
touche Annuler(=cancel): Mouse Right Click
touche Changer: Mouse Middle Click
touche Menu: BackSpace
menu Haut: Home key
menu bas: End Key
menu gauche: Delete Key
menu droite: Page down Key
Strafe Haut/avancer: Up arrow Key
Strafe Bas/reculer: Down arrow Key
Strafe Gauche: Left arrow Key
Strafe Droite: Right arrow Key
Inverser axe Y: Just type return.
After this done, you'll be ask to test your controls and press the valid button (mouse left click) to quit and return to the title screen

i have some things to change, but i think with that, everything should be ok to wander through the map.

Anyway, i just ask you to notice the shadow problem.

Enjoy

Posted: Fri Feb 03, 2006 10:43 am
by Guest
version updated, so, i hope you'll understand french.
anyway, a the title screen if you want to change controls, the key is no longer F1 but backspace.

Posted: Thu Feb 23, 2006 4:21 am
by kburkhart84
To the OP:
If you want the lights on the other side of the wall not to be calculated, you need to not light the node specifically. Or turn off the light if you aren't in the room the light is in. Same idea with the shadow. You shouldn't be able to see on the other side of the wall anyway. The camera probably shouldn't go through walls. And if you aren't in the same room as the light, you need to turn off the light.

Posted: Tue Feb 28, 2006 8:49 am
by Guest
OK, but now you got some interested idea, do you know how to applied it?

My whole scene is a ms3D object, there is just one light. if i turn it of, i won't able able to see anything and... unfortunately, my camera has to be able to see behind walls.

If i didn't get wrong your idea, if i move to another room and look to the light point, because i switch off the light, i wouldn't be able to see the enlightened room.

if i'm wrong, can you explain yourself better please

Posted: Tue Mar 07, 2006 5:03 am
by kburkhart84
OK, first of all, light from one room shouldn't affect the walls of another. That is clear. Second, why would you want you camera to allow you to see behind a wall if you aren't there. But, if nothing else, you could create various ms3d files instead of one big one so you could turn off/on lights for each node.

Posted: Tue Mar 14, 2006 2:46 pm
by Guest
yes, that's an idea, i think i already thought of it and it seems that i will have to deal with shadow and light managing. so much for just a meaningless thing.
I had given up this idea and i am looking for somthing else:
i'd like just a dark disk under my character as his shadow.
so i won't have to manage so much things.

the problem is that i don't know how can i project the disk on a non-flat ground.
if you have any idea for this, it'll help me a lot.

thanks anyway