Any good example of StandardGame and shadows?

orelero said:

For the camera, how did you see the shadow when the cam's height is 0 ?

i just set the directional light so that the shadow is castes a bit to the left, down and into the scene(-0.25f, -0.25f, -1f).
You could also use BasicGameState or CameraGameState, that way the cam, ZBuffer and stuff is already set up for you.

oh ok  :-o Actually I got learnt a lot from your funball demo, it's a good tutorial.



Just one question, is the order we add gamestates to the manager is the same order their updates are called ?

May you share your StandardGame and shadows example in jME Wiki as this SimplePassGame-way example was shared some time ago by a friend of mine?



http://www.jmonkeyengine.com/wiki/doku.php?id=simple_shadows_example


Yeah with big pleasure !



Done here: http://www.jmonkeyengine.com/wiki/doku.php?id=working_with_shadows_-_from_basegame_to_standardgame.

Now I know how to publish something on the Wiki hahaha.

I need to add some coments though and improve the layout

Great orelero, your collab will be welcome for many of those who found themselves in the same situation about StandardGame vs shadows :wink: