How are different textures created from one image

6f462632be81de42c4259bcae799a75a
0
GamingGoldenAge 101 Mar 29, 2012 at 19:45

Yeah, the subject line pretty much asks what I’m trying to ask here…

I’ve heard of the technique but don’t know how they do it.

Btw, is this one of the main gaming dev forums out there? I’ve looked at a few others and this one seems more polished I would say. I’m a student and am looking for good discussion places. Thanks for the help. This site looks really decent.

5 Replies

Please log in or register to post a reply.

A638aa42130293f319eda7fa4ba121f4
0
fireside 141 Apr 01, 2012 at 11:47

You can create a texture for depth from an image, but it doesn’t always work right. It just uses the dark and light places on the texture to map depth. There are software programs to do it. Gimp has a plugin for it. Usually for normal maps, though, a depth texture is baked from a light map. Programs like Blender do it, or there are specific programs which also do it which I can’t remember the name. You can also do maps for alpha and specularity. I think that’s what you are asking about. They’re done in modeling programs but not from one image. They are combined in the engine.

A8433b04cb41dd57113740b779f61acb
0
Reedbeta 167 Apr 01, 2012 at 20:52

I think it’s basically guesswork / eyeballing. Oftentimes textures that are from a photo reference will have some lighting baked into them, so you can kinda get some kind of approximation of the height map by looking at contrast, like fireside says. But it’s difficult to tease that out from actual changes in the material color. For instance, a sidewalk with cracks between the concrete tiles will have dirt accumulate in the cracks so they’ll both be darker in color, and darker because less light gets down in there.

B20d81438814b6ba7da7ff8eb502d039
0
Vilem_Otte 117 Apr 02, 2012 at 00:36

For getting actual height/normal map, you need to take a photo of the same surface (from same viewpoint) with different conditions of lighting - if you have all this, you can actually build correct normal map and thus correct height map (as long as you know the depth difference between most distant point and less distant point in viewport (actually this one is possible to guess without any actual measurement).

In real development, there is no time or money to do the previous one. So you actually hand-create the height maps (or try to “fake” extract it somehow) and normals map (from height map).

820ce9018b365a6aeba6e23847f17eda
0
geon 101 Apr 02, 2012 at 09:55

@Vilem Otte

So you actually hand-create the height maps (or try to “fake” extract it somehow) and normals map (from height map).

Alternatively, you actually model the details and bake them to texture/normal/specularity-maps.

B5262118b588a5a420230bfbef4a2cdf
0
Stainless 151 Apr 02, 2012 at 11:54

Or buy a 3D camera, they are not that expensive now.