gangwism
08-05-2015 09:50:23
Hey *,
I got a question concerning the use of different shadowtechniques in combination with a manually created mesh.
It seems that ShadowTechnique.SHADOWTYPE_STENCIL_MODULATIVE; with normal closed polygons works really nice, such that I get a nice shadow.
My Problem is with the use of a manually created mesh which is not closed and should somehow represent the underlying terrain.
And exactly for this mesh I want to get shadow on this mesh which got casted by the mesh itself! (So some shadowed parts in the terrain which are shaded.)
If I use the ShadowTechnique.SHADOWTYPE_STENCIL_MODULATIVE; I get some artifacts, like these parallel lines (see screenshot).
Below the terrain I have a shadow receiving ground plane...
Maybe you have an idea what I'm doing wrong?
Have a nice day!
- Marcel
I got a question concerning the use of different shadowtechniques in combination with a manually created mesh.
It seems that ShadowTechnique.SHADOWTYPE_STENCIL_MODULATIVE; with normal closed polygons works really nice, such that I get a nice shadow.
My Problem is with the use of a manually created mesh which is not closed and should somehow represent the underlying terrain.
And exactly for this mesh I want to get shadow on this mesh which got casted by the mesh itself! (So some shadowed parts in the terrain which are shaded.)
If I use the ShadowTechnique.SHADOWTYPE_STENCIL_MODULATIVE; I get some artifacts, like these parallel lines (see screenshot).
Below the terrain I have a shadow receiving ground plane...
Maybe you have an idea what I'm doing wrong?
Have a nice day!
- Marcel