Shadow bug

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
Spartacus
Posts: 70
Joined: Fri Nov 21, 2003 11:56 pm

Shadow bug

Post by Spartacus »

I put a mesh up in the air so it would float and the shadow looks messed up when light moves and stuff?
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Could you post an screenshot or describe the problem a little bit more exactly? :)
Spartacus
Posts: 70
Joined: Fri Nov 21, 2003 11:56 pm

Post by Spartacus »

Sure infact its a bit hard to show with only one so ill show 3.
=====================================================
These were both done with 4.1 using D3D 8.1 driver type. The light is the same from the special effects example. I just added more to the 3ds room file to kinda make it a bit bigger, and recoded it to be more object orientated. So the light source is moving around just as in the special effects demo.

=====================================================
I tried to post image using image tag but ur fourm didn't like my website so I changed them to hyperlinks instead. However, now it looks like geocities doesn't like that very much so if it doesn't work try putting url into browser directly. I don't work so I don't have my own domain :/
=====================================================
So here are the bugs I put in a html file it worked better finally after like 3-4 trys at least im pretty sure it works :/. http://www.geocities.com/zerglingunderground/shadowbug/index.html

=====================================================
This ones shadow looks really messed up:
http://www.geocities.com/zerglingunderground/shadowbug/shadowsc.gif

This one shows how the shadow isn't displayed along the ground but more just like a mirror image?
http://www.geocities.com/zerglingunderground/shadowbug/shadowsc2.gif

This one is just so you can see where the models location is compared to shadow.
http://www.geocities.com/zerglingunderground/shadowbug/shadowsc3.gif
Spartacus
Posts: 70
Joined: Fri Nov 21, 2003 11:56 pm

Post by Spartacus »

also i notice sometimes the shadow goes through the mesh and i can see it in differnt parts of the level i made generally its at the same angle the shadow is currently at but it goes through the mesh 0.o
Shadow_Wolf
Posts: 21
Joined: Tue Nov 18, 2003 5:21 am
Location: Longview, Washington

Post by Shadow_Wolf »

I have yet to be able to get shadows to work in any of my projects or the examples for that matter. I have tried using both the DT_DIRECTX8 and the DT_OPENGL drivers, I have come to beleave that it might be my computer - P3 550, 512Mb DDR Ram, GeForce2 MX200 64Mb - that keeps the shadows from working. If not, could any of you give suggestions on what I can check to try and get shadows working? Thanks in advance.
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Ah, I think I know what the problem is.
There are two possible solutions for that:
First, try to increase 'infinity', the last parameter of addShadowVolumeSceneNode() (http://irrlicht.sourceforge.net/docu/cl ... de.html#a5).
Second: Try another shadowmode by switching the zfailmethod parameter.
Guest

Post by Guest »

ok i try that niko is always on when im sleeping -.- u live so far away lol
Spartacus
Posts: 70
Joined: Fri Nov 21, 2003 11:56 pm

Post by Spartacus »

^--- that was my post.
Spartacus
Posts: 70
Joined: Fri Nov 21, 2003 11:56 pm

Post by Spartacus »

I tried messing with it it made it more messed up and laggy
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

hm.. not nice..
Spartacus
Posts: 70
Joined: Fri Nov 21, 2003 11:56 pm

Post by Spartacus »

it also kinda made like the black stuff evil lol.. it was like the shadow was strechy from the object the wall :P. and ive noticed.. that light and shadows go through the mesh :/
Post Reply