Hi to all,
I am trying to learn more about shadow mapping and how it works.
So I would like to know if there is a good reference to the jME Unshaded material shadow map feature or
is there any hidden tutorial or examples out there?
Yes, I wish to use shadow mapping in android.
I thought that shadow mapping was there so that one can show some form of shadows with out having a light source in the scene.
Sorry that was my BAD!!! I was actually taking about light mapping, I think and how texture baking work in jME.
Also, I want my scenes to look as if there are lights in them, but with no impact on the performance for android.
What would you suggest?
OK, yeah actually I overlooked this a bit in the current implementation. The Shadow renderers take a light as parameter.
In the case of unshaded it does not really make sense…
But it kind of make sense since you want shadows…
It should not really be a problem if you have a light in your scene graph (it doesn’t even have to be added to the root node though).
For the light baking I may make a small tutorial, I did some tests yesterday night for a scene I’m working on and it gives nice results
I’ve been playing around with similar points for the last time. To bake a lightmap i would really recommend, doing this before importing the model to jmp (e.g. with blender it’s pretty easy). Beside im still playing around with merging jme’s material definition files with known fast mobile shaders around the net (Rajawali, irrlicht and isgde). I would suggest you do the same. About realtime shadow there is an issue with depth textures on Tegra devices (they don’t support it), wich makes it difficult to render shadows.
To bake a lightmap in blender, you simply wrap your object’s UV, head for the render menu and on the bottom of it, theres the bake button. The resulting image can be saved as file and should be accepted by jme’s unshaded material definition.
Aaa, thanks a lot for the info.
I will definitely check it out.
Also, it is a shame about the tegra devices, they are such good devices, but what else to do?
Have you investigated any way of doing shadows?