OpenB3D Normal Maps with DirectLight

BlitzMax Forums/MiniB3D Module/OpenB3D Normal Maps with DirectLight

RustyKristi(Posted 2016) [#1]
I was wondering what is the correct setup for directlight and normal/specularmaps.

When I tried to modify the bumpmap example and moving the camera far away, it looks like the lighting is kinda off and object gets darker as oppose to just stay the same brightness since directlight is casted.


markcw(Posted 2016) [#2]
The bumpmap demo doesn't have a specularmap but bumpmap3 does have code to support that so I should try adding a texture.

I tried moving the d-light about 100m away on the z axis and it had little/no effect on bumpmap brightness except for bumpmap2 which doesn't seem to support d-light, even though it does have some code for it.


RustyKristi(Posted 2016) [#3]
Ok I'll have another try on the bump3 example, thanks munch.