There is probably a really simple answer, but I can't figure it out. I usually add them to the albedo maps, but when I'm just testing to see how they look this isn't very efficient and it doesn't allow me to change them around easily. Is there a way to blend just the dark colors of the AO map into the texture?
-
1$\begingroup$ maybe this video help you youtube.com/watch?v=63Zk2rmwDgc $\endgroup$– atekCommented Feb 15, 2017 at 4:28
-
$\begingroup$ Totally! I knew there had to be a way. Thanks :) $\endgroup$– ZenetCommented Feb 16, 2017 at 18:39
-
$\begingroup$ Possibly relevant? blender.stackexchange.com/questions/46287/… $\endgroup$– JtheNinjaCommented Feb 16, 2017 at 20:27
-
$\begingroup$ @JtheNinja, I've never been able to get that to work in the game engine. I think that's only for Blender Render. $\endgroup$– ZenetCommented Feb 17, 2017 at 5:10
2 Answers
If you don't care much for physical accuracy then you can just multiply the AO map over your albedo texture. Quick and easy.
(I like using nodes but the UI can also be used)
If you do care, though, it gets slightly more complex.
This is the formula we will follow:
Diffuse = (Direct + Indirect) * Color
Direct means material node
Indirect is what is often called Ambient term It can be approximated as follows:
Indirect = AmbientColor * AO
If you want something a bit better to represent the AmbientColor you could make yourself a pre-convolved environment map (A.K.A. very blurred HDRI)
You might also want to have a UV channel that is used just for AO, separate from the albedo texture. If you do end up using one please, do not use the light-map unwrapping method, it will lower the performance of your game significantly.
Figured it out thanks to Atek. The trick is to add a seperate UV map for the baked ambient occlusion map as a light map, and then in the blend setting of the texture use soft light (or whatever works best for your scene) to blend both UV maps together. This video explains it very nicely: https://www.youtube.com/watch?v=63Zk2rmwDgc