PDA

View Full Version : creating normal maps



JanHH
12-28-2003, 05:43 AM
Hello,

sorry if this might be slightliy OT, but I would really appreciate any hints:

How are normal maps created? When having a nice color texture and wanting to have a suitable normal map for that, how can this be achieved? I guess it's turning the color map into greyscale and using the brightness as height values!? But for sure this would not work if the brighter parts are lower than the darker ones (for example having dark tiles with white seems, like it could be on a bathroom floor or something)? Are there standard tools for this? I know how to create a normal map once a height map is present, but how to obtain such a height map?

Ideal would be a program that reads an image and outputs a normal map, does this exist? Are there gimp plugins/functions that can do this (I am using linux, so no photoshop http://www.opengl.org/discussion_boards/ubb/wink.gif )?

Thanks
Jan

satan
12-28-2003, 06:25 AM
There is a plugin for the gimp available:
http://nifelheim.dyndns.org/~cocidius/normalmap/

Cab
12-28-2003, 07:56 AM
You can create your height map drawing on a greyscale texture, imaging what parts are high and what parts are low and drawing them white and black (for example).
Also, you can create the normalmap from a high detail model using one of the tools that you can find:
- I think there is one discreet pluging for max 5.1, 6
- ATI has a tool called NormalMapper (http://www.ati.com/developer/tools.html)
- Crytek has a comercial tool for the same: http://www.crytek.com/screenshots/index.php?sx=polybump
- NVidia has a presentation about a similar tool: http://developer.nvidia.com/docs/IO/8230/GDC2003_AllThePolygonsYouCanEat.pdf but I haven't seen any new about it since that.
- You can find more info using google.

Hope this helps.

JanHH
12-28-2003, 12:12 PM
thanks. I feared that I have to draw on the image myself http://www.opengl.org/discussion_boards/ubb/wink.gif. I will try the gimp plugin. In case I write a tool myself, I will also post that.

Jan

JustHanging
12-28-2003, 01:12 PM
A very nice free tool for creating normal maps based on high-resolution meshes can be found at: http://www.soclab.bth.se/practices/orb.html

Creating normal maps like that can give excellent results, but making high resolution versions of every model seriously increases developement time, so I'd think twice before doing it in a commmercial project.

-Ilkka

JanHH
12-28-2003, 01:20 PM
thanks again. But I was really searching for something to turn a texture image into a normal map, not a mesh. The gimp plugin was exactly what I was looking for, works great, althoug it was a little painful to build (had to search for and install several rpms).

Jan