Generating Normal/Height maps in Blender 2.36

The place for artists, modellers, level designers et al to discuss their approaches for creating content for OGRE.
Post Reply
nfz
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 1263
Joined: Wed Sep 24, 2003 4:00 pm
Location: Halifax, Nova Scotia, Canada

Generating Normal/Height maps in Blender 2.36

Post by nfz »

With Blender 2.36, it is now possible to easily generate planar normal maps for doing standard Dot3 bumpmapping in Ogre, and generate normal height maps for doing parallax mapping in Ogre.

Here is a NH map I generated in Blender:
Image

Here is the result when used in an Ogre Parallax mapping material:
Image
Image


I am working on a tutorial on how to generate N and NH maps in blender.
Last edited by nfz on Fri Apr 14, 2006 6:10 pm, edited 1 time in total.

nfz
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 1263
Joined: Wed Sep 24, 2003 4:00 pm
Location: Halifax, Nova Scotia, Canada

Post by nfz »

I changed the images above since the original ones posted were generated using just a normal map. The images posted now are for the NH map.

User avatar
bana
Greenskin
Posts: 132
Joined: Mon Aug 02, 2004 7:40 am
Location: Austin, Texas
Contact:

Post by bana »

Wow, awesome results there. I was just playing with this myself yet I am guessing it still does not support normal maps (or normal heightmaps) for complete unwrapping of 3d objects, I am guessing that is what this is referring to in the changelog as to what still needs to be done:
1) "Object space" versus "Tangent space"

By only storing the normals in a map with a positive Z component, you can also wrap them around a model, where the map-normals will be applied (rotated) according to the orientation of the face. Although Blender uses and creates such "Tangent maps", it currently doesn't apply it using "tangent mapping". Current mapping is to "Object space" only.

Meaning; normal maps in Blender now only render correct when applied on a flat plane.

Note; there also exist normal maps storing all normals (also with negative Z) based on Object Space. Creating such maps is quite difficult though, certainly in Blender.
Keep us posted on that tutorial though :wink:
A proud member of the OpenFrag Coding Team.
http://coolhands.blogspot.com/

nfz
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 1263
Joined: Wed Sep 24, 2003 4:00 pm
Location: Halifax, Nova Scotia, Canada

Post by nfz »

Ya, no support yet for generating a normal map from a high poly model and applied to a low poly model.

As far as Blender not being able to generate normal maps in tangent space, well they are wrong. The NH maps I generating using Blender are in tangent space.
Last edited by nfz on Sat Jan 01, 2005 7:28 am, edited 1 time in total.

nfz
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 1263
Joined: Wed Sep 24, 2003 4:00 pm
Location: Halifax, Nova Scotia, Canada

Post by nfz »

Played some more with the texture sequencer in Blender. Here is slightly modified NH map of the first one:

Image

This is what it looks like when rendered in Ogre:
Image
Last edited by nfz on Sat Jan 01, 2005 7:20 am, edited 1 time in total.

User avatar
Robomaniac
Hobgoblin
Posts: 508
Joined: Tue Feb 03, 2004 6:39 am

Post by Robomaniac »

r u a god? :P

Looks amazing :)
phear hingo

My Webpage

User avatar
bal
Greenskin
Posts: 100
Joined: Thu Dec 09, 2004 7:29 pm
Location: Geluwe, Belgium

Post by bal »

It's like real plastic omg. Looking forward to your tutorial, really!

User avatar
semicolon
Halfling
Posts: 94
Joined: Sun Jul 04, 2004 4:42 pm
Location: Bangkok, Thailand
Contact:

Post by semicolon »

Hi everyone:

I am a bit confused between Bump map and Normal map. I am trying to differentiate the twos. I have tried experimenting Normal map but the result seems to effect the same thing as Bump map, doesn't it?

Semicolon
"Nature is the mother of learning"

User avatar
bal
Greenskin
Posts: 100
Joined: Thu Dec 09, 2004 7:29 pm
Location: Geluwe, Belgium

Post by bal »

semicolon wrote:Hi everyone:

I am a bit confused between Bump map and Normal map. I am trying to differentiate the twos. I have tried experimenting Normal map but the result seems to effect the same thing as Bump map, doesn't it?

Semicolon
I think a normal map is used to create the bump mapping effect, isn't it?

User avatar
semicolon
Halfling
Posts: 94
Joined: Sun Jul 04, 2004 4:42 pm
Location: Bangkok, Thailand
Contact:

Post by semicolon »

Well, I still think Normal map can do something else useful enough to worth the extra effort for creating it. Since I can create bump map easily by creating grayscale texture. By the way, I read about some extra information that the DDS file contains like MIP-MAP. And especially, it seems to work very closely to Cgfx function. Any additional comments are very welcome.

Semicolon
"Nature is the mother of learning"

nfz
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 1263
Joined: Wed Sep 24, 2003 4:00 pm
Location: Halifax, Nova Scotia, Canada

Post by nfz »

Here is a link that gives a good description of the differences between bump map and normal map :

http://www.pinwire.com/modules.php?name ... int&sid=82

nfz
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 1263
Joined: Wed Sep 24, 2003 4:00 pm
Location: Halifax, Nova Scotia, Canada

Post by nfz »

I re-read the article at the link I posted above and tried the lighting method to produce a normal map rather than using the new Blender 2.36 method. The result is a more accurate normal map which is much easier to set up and is more flexible. The second NH map and associated pic above have been updated using the lighting method.

User avatar
semicolon
Halfling
Posts: 94
Joined: Sun Jul 04, 2004 4:42 pm
Location: Bangkok, Thailand
Contact:

Post by semicolon »

Thanks for the help. nfz I can see how they work now. By the way, can Orge load the normal map (.DDS) as bump map?

Thanks,
Semicolon
"Nature is the mother of learning"

nfz
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 1263
Joined: Wed Sep 24, 2003 4:00 pm
Location: Halifax, Nova Scotia, Canada

Post by nfz »

I have been able to use Dxt4 and Dxt5 .dds for normal maps in Ogre. I used DxTex which is a DX9 SDK tool in DXSDK/BIN to convert from .png to .dds Dxt5. I also use GIMP with the .dds plugin to do the conversion which is a little more flexible than the DxTex tool.

User avatar
semicolon
Halfling
Posts: 94
Joined: Sun Jul 04, 2004 4:42 pm
Location: Bangkok, Thailand
Contact:

Post by semicolon »

I see. I found some set of tools in Nvdia and ATI to create the normal map and some other helping stuff. Right now I can see only a few games using this off-the-shlef technology. But in the future there will be a lot of games or real-time 3D using this showing off. Fortunately Orge does support this technology as well.

Semicolon
"Nature is the mother of learning"

Post Reply