View Full Version : normal maps
01-25-2012, 07:41 AM
Anybody has an example of a OBJ file with normal map?
I just don't know how to use Blender to generate them myself,
and there are not much OBJ files with normal maps on the web...
01-25-2012, 08:04 AM
Normal maps, as the name suggests, are textures. Obj files store meshes. Mesh files do not store texture data. They may store references to textures (the filename of a texture), but not the texture itself.
01-25-2012, 08:13 AM
I understand perfectly well that OBJ file does not contain a normal map... I'm not so much of a noob... :)
What I meant is two files:
1) OBJ file representing a mesh model....
2) Aproppriate normal map for it. A texture containing the normals of the surface encoded as RGB values, so I might use these normals when I apply the lighting equation...
01-25-2012, 08:16 AM
Try this one.
Open the OBJ file in some modeling program (like blender), isolate one object that contains a normal map (like the ground plane) and save that object.
01-25-2012, 08:45 AM
It should be noted that .obj files cannot (as far as I can tell) store the tangent-space basis necessary for doing tangent-space bump mapping.
01-25-2012, 10:00 AM
Yes, that is right. I use this library http://assimp.sourceforge.net/ in order to read .objs and compute tangents and binormals. It is easy to use and it is able to import various commons formats.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.