Hi,

I don't know the name of any existing algorithms to do it, but the
procedure is fairly simple. First of all, you need a normal map of the
actual geometry (without bump-mapping) and then you need to calculate
a normal map for the bump map on a flat plane. The former should
probably be done by some tool, e.g. Blender (and you could probably
use the same tool for both.) But if you want to do the later
procedurally then it's a matter of understanding that a bump map
defines the offset of geometry per pixel along the existing normal.
That means that if you want to calculate a new normal, you can't just
do it per-pixel, but you have to do it from the angle between two (or
more) adjacent pixels' offset.

If you don't need to do it procedurally (i.e. if your geometry and/or
bump map does not change dynamically) then I would simply advise you
to use a 3D tool, and apply the bump map to your geometry and render a
normal map of that geometry including bump map.


Cheers
/R


On Jul 1, 7:20 pm, jamie655321 <jamie.ow...@gmail.com> wrote:
> Hi,
>
> Does anyone know of any code/algorithms to create Normal Maps from
> greyscale Bump/Height Maps?
>
> Thanks,
>
> Jamie

Reply via email to