PDA

View Full Version : Diffuse maps



devdept
03-29-2011, 07:54 AM
Hi All,

What are the diffuse maps below? Where can I learn more? Have they something to do with occlusion culling? Are they generated on the fly or something the 3D artist needs to paint manually?

http://www.devdept.com/diffuse_map.jpg

Thanks,

Alberto

ZbuffeR
03-29-2011, 08:38 AM
Done completely automatically. Well, maybe the texture atlas coordinates unwrapping is done by hand or semi-assisted.
Project texels in texcoord space into 3D world space, compute diffuse value with your (potentially offline) renderer (which can use occlusion or raytracing for this), store in on texture. When done, uninitialized parts of the texture are 'colonized' by nearby values, to avoid bleeding on mipmaps.

devdept
03-29-2011, 08:50 AM
Therefore, if we need more realistic real-time rendering we would need:

1) to compute this texture for each mechanical part face
2) to nest all of them on a square texture
3) modulate the face diffuse color with the texture color

Right?

Thanks,

Alberto

ZbuffeR
03-29-2011, 09:24 AM
Yes, this is also called 'baking' :
http://wiki.blender.org/index.php/Doc:Manual/Render/Bake
http://www.katsbits.com/tutorials/blender/blender-2.5-baking-ambient-occlusion_adv.php

All sort of stuff can be baked, be it ambient occlusion, normals from a highly detailed object to a coarse mesh, static cast shadows, a complex procedural material, etc.

"All programming is an exercise in caching." - Terje Mathisen

devdept
03-29-2011, 09:32 AM
Thanks sooo much!