OpenKeeper
OpenKeeper copied to clipboard
Convert bump maps (height maps) to normal maps
Convert bump maps (height maps) to normal maps. This can be done in AssetConversion. Data\EngineTextures\ contains EnvMaps & bump maps for water & lava. Only normal maps are supported by JME. We should use these always, not optionally like DK II did.
Well, actually they are butt ugly :D So maybe just try to support the regular + bump + modern water. Lava is decent.
i actually wouldn't use the bump water in any way, since every selfmade one today is way better than this.
I tried to convert it by hand via blender, but it doesn't look that pretty.
Here is the tutorial that i used: https://www.youtube.com/watch?v=-hgEtq3gYM0
It is necessary to wait for the normal lighting, I think.
https://github.com/tonihele/OpenKeeper/tree/experimental-light here some real lightning, though I wouldn't know if it is the "final solution".
FWIW JME has built-in water support.
A simple reflection-based one (which does require something like a skybox to reflect though):
https://wiki.jmonkeyengine.org/docs/3.4/core/effect/water.html
And and a post-processing effect:
https://wiki.jmonkeyengine.org/docs/3.4/core/effect/post-processor_water.html
https://github.com/tonihele/OpenKeeper/compare/master...Trass3r:OpenKeeper:water
https://github.com/tonihele/OpenKeeper/blob/f63cfdd679228f75769e2f14a3aae8621c8d14e8/src/toniarts/openkeeper/view/map/Water.java#L140