Hi all.
I'm developing a mobile game with irrlicht and I'm wondering if it's possible to do cheap fast shadows in it.
Something like this for example:
Just a simple texture rendered below the character.
Since stencil shadows are very taxing (at least on the irrlicht port I'm using). and realtime shadow maps are out of the question of course, because we're talking mobile here.
Thanks!
Cheap shadows?
Re: Cheap shadows?
Of course. Such fake blobs are very cheap and easy to do, and there are infinite ways to do so.
One way would be to render a black sphere at the character's feet, right before rendering the character. If your char can jump, you'll also need to raycast it to the terrain, otherwise just use the feet position. (The sphere would use inverted face culling & depth test)
One way would be to render a black sphere at the character's feet, right before rendering the character. If your char can jump, you'll also need to raycast it to the terrain, otherwise just use the feet position. (The sphere would use inverted face culling & depth test)
-
- Posts: 26
- Joined: Tue Nov 11, 2008 5:20 pm
Re: Cheap shadows?
Thank you for the reply!
I'm not sure where to start though. Can you give more hints please?
Also what do you mean by depth test?
I'm not sure where to start though. Can you give more hints please?
Also what do you mean by depth test?
Re: Cheap shadows?
I think he means if the character jumps make the blob smaller.
Dream Big Or Go Home.
Help Me Help You.
Help Me Help You.
Re: Cheap shadows?
Start with making a sphere draw at your character's feet.