Wintermute Engine Forum

Wintermute Engine => Technical forum => Topic started by: chrisras on October 13, 2008, 03:46:45 PM

Title: Strange shadows on 3D-Actor
Post by: chrisras on October 13, 2008, 03:46:45 PM
I have some strange Shadows between the legs of my 3D-Actor.
(http://lh3.ggpht.com/Crasulis/SPNe-6v0EGI/AAAAAAAABGI/YkKcWPpIhKo/s144/screen.jpg)

Anyone an idea what could cause that?
Title: Re: Strange shadows on 3D-Actor
Post by: FogGobbler on October 13, 2008, 04:29:04 PM
Hard to say, because the image is quite small  :) .

Have you tried to alter the shadow-light-source-position in the actor file?

Code: [Select]
LIGHT_POSITION { x, y, z }// change values

Perhaps the light is stuck inside the actor mesh and that causes these artefacts.
Title: Re: Strange shadows on 3D-Actor
Post by: chrisras on October 14, 2008, 01:29:46 PM
I played around with the position of the light, but the strange shadow lines in the middle of my actors legs stayed...
I tried putting the light inside the actor, for comparing the effect, and that looks completly different than my bug.

I also tried giving my actor a lowpoly-model for shadowing, but the shadow-lines stayed there.

Could it be a problem with my 3dmax-file?
But it seems fine...
Title: Re: Strange shadows on 3D-Actor
Post by: FogGobbler on October 14, 2008, 03:22:08 PM
Have you tried different clipping values in the scene editor?
Title: Re: Strange shadows on 3D-Actor
Post by: Dan-D on October 14, 2008, 05:21:00 PM
Or if you are using separate shadow model make sure that you rigged it good
Title: Re: Strange shadows on 3D-Actor
Post by: Mnemonic on October 15, 2008, 11:07:17 AM
Perhaps your model contains holes (unconnected vertices)? So the shadow volume leaks through.
Title: Re: Strange shadows on 3D-Actor
Post by: chrisras on October 18, 2008, 03:37:34 AM
Thanks for the help!
It was really a rigging problem.
In 3DsMax it showed up fine but in the engine one of the vertices behaved very strange.
It was connected to a bone, I tried around with different weights, but it always ended up on
the floor in Wintermute... So eventually I edited the mesh and deleted the vertex.

And now everything looks perfect  :)