self receiving shadow on create manual

Problems building or running the engine, queries about how to use features etc.
Post Reply
gummibumm
Gnoblar
Posts: 5
Joined: Tue Sep 17, 2013 2:59 pm

self receiving shadow on create manual

Post by gummibumm »

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

PS.: I also posted here in the mogre forum:
http://www.ogre3d.org/addonforums/viewt ... =8&t=30411
Attachments
topview.png
3DView.png
gummibumm
Gnoblar
Posts: 5
Joined: Tue Sep 17, 2013 2:59 pm

Re: self receiving shadow on create manual

Post by gummibumm »

Hi *,

after a lot of searching the problem I found some shadow problems which might cause the shadow artifact:

http://linode.ogre3d.org/forums/viewtop ... 25&t=83212

Code: Select all

        Ogre::Root *root = mGraphicsSystem->getRoot();
        Ogre::Hlms *hlmsPbs = root->getHlmsManager()->getHlms(Ogre::HLMS_PBS);
        Ogre::HlmsDatablock *hlmsPbsDefaultDatablock = hlmsPbs->getDefaultDatablock();
        hlmsPbsDefaultDatablock->mShadowConstantBias = 2.0f;
This might be a solution, but only available for new Ogre Version... We are still running 1.7 Mogre Version... (Is it possible to run Mogre 2.x?)

http://www.cnblogs.com/pulas/archive/20 ... 89392.html

here are some artifacts describtions... Is my Problem called Shadow acne artifact?

http://www.ogre3d.org/forums/viewtopic.php?f=5&t=59322
And I think I also see this artifact :-/

Maybe you know how to solve this Problem with Mogre (1.7? or 2.x?!)

Have a nice day,
- Marcel
gummibumm
Gnoblar
Posts: 5
Joined: Tue Sep 17, 2013 2:59 pm

Re: self receiving shadow on create manual

Post by gummibumm »

Any idea? :)
Post Reply