PDA

View Full Version : Ambient Occlusion map giving me RED rendering errors.


opreska
11-12-2007, 08:22 PM
I'm having a problem with my Ambient Occlusion maps.
Whenever I render them out, they seem to have a bunch of red marks all over the map.

I'm using the render to texture option with mental ray as my renderer.
I made sure that my cage was reset and expanded to the proper proportions.
I'm doing this for a game model, using my high poly as a reference to my low poly game model (low poly contains the UV map fyi)
I also made sure to hide my low poly model before rendering out the Ambient Occlusion map.

I'm at a loss, anybody know of why these red blotchy errors are appearing?

JuddWack
11-12-2007, 08:48 PM
Sounds like a cage error... I would double check it. Find the areas that are appearing red and where that spot coincides on the cage. Manipulate the cage verts there a bit and see if it changes anything.

glynnsmith
11-12-2007, 09:40 PM
Red areas on your bake means that rays are missing.

Baking works by using a projection cage to project rays from it to the low poly mesh you're baking for. Any high poly geometry the rays hit are recorded (or baked) into the texture map (normal, amb occ, whatever).

Usually it means that you have holes in your mesh, but it can sometimes be that your projection range isn't high enough, therefore your rays are cancelling out and stopping before they actually hit anything to record the form from.

Hope some of this helps :)

Chartist
11-12-2007, 11:38 PM
Why not just use crazy bump? It generates some really good Occlusion maps imo.

JuddWack
11-13-2007, 12:10 AM
Crazy bump can't render an AO from a high poly to a low poly. It only renders AO based of the existing texture if I'm not mistaken.

opreska
11-13-2007, 01:28 AM
Hey guys,

Thanks for the replies.
Okay, so I've narrowed down the problem, but, I can't figure out how to hide the low poly geometry.
I hid the low poly geometry under the " Reference Geometry" tab located when you open up the render to texture options. (see attachment for more info)
Anyway, in the viewport it does hide the geometry, however, it's still showing up in the rendered out ambient occlusion map.
So, how am I supposed to hide the low poly geometry?

glynnsmith
11-13-2007, 08:02 AM
Ah. Your high res / reference geo is occluding your bake.

The only way I've found to get around this in Max (I'm still on version 8) is to use light tracer with the scanline renderer.

glynnsmith
11-13-2007, 08:04 AM
Ah. Your high res / reference geo is occluding your bake.

The only way I've found to get around this in Max (I'm still on version 8) is to use light tracer with the scanline renderer when you render to texture.

urgaffel
11-13-2007, 11:29 AM
You can use Object ID to exclude objects from the ambient occlusion shader. I can't remember exactly how it works, but there is info about it here and there if you do a search for ambient occlusion and object id.

opreska
11-13-2007, 05:39 PM
Figured out the problem:

Alex Halchuk gave me the solution from the 3D Studio Max forums. So, if anybody else comes across this problem, here's your solution:

Posted by Alex:
"Neat little trick to fix is is by going into your low poly mesh. Go into polygon or element sub-selection and hit ctrl-a to select all the faces. Then hit hide selection in the command panel.

All of your low poly mesh should be invisible, but the object can still be selected and only your cage should be visible. Now if you bake the model it won't show up in the render and you'll get a nice clean result. When you're done, just go back into editable poly and click on unhide all."

Thanks for all the help!

CGTalk Moderation
11-13-2007, 05:39 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.