Integrating 3D models with photography
Interested in integrating your 3D work with the real world? This might help
# 1 04-07-2011 , 08:47 PM
Stannoman's Avatar
Registered User
Join Date: Apr 2009
Posts: 51

Mental Ray Batch Bake - Nothing happens when, "Convert and Close"

I am trying to create an ambient occlusion black and white texture to use in my colormap.
The current model I am working with has three different UV sets, and for 2 out of 3 UV sets, the baking works fine, it creates a fine black and white ambient occlusion texture. But when I try to do this with one particular set of objects, (another UV set) nothing happens when I try to convert to a texture. The window does not close, and maya does not start going slow (like it should). The only message I get when pressing Convert and Close eventually is:


convertLightmapSetup -camera persp -bakeSetOverride tmpTextureBakeSet -bakeAll -showcpv;

and three things appear in my outliner (when I bake the other UV sets this does not happen):

initialTextureBakeSet
initialVertexBakeSet
tmpTextureBakeSet

Does anyone know what the problem could be? I already checked the meshes with the cleanup tool, cleared my history aswell.

# 2 05-07-2011 , 11:52 AM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
Have you checked your norms are facing the correct way...........dave




Avatar Challenge Winner 2010
# 3 05-07-2011 , 12:03 PM
Stannoman's Avatar
Registered User
Join Date: Apr 2009
Posts: 51
Yep, when I reverse normals it still won't bake.

# 4 05-07-2011 , 12:13 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
Im going to ask the obvious,have you checked for overlapping uvs or flipped uvs.......dave




Avatar Challenge Winner 2010
# 5 05-07-2011 , 12:32 PM
Stannoman's Avatar
Registered User
Join Date: Apr 2009
Posts: 51
No overlap, no reversed UVs either :/

# 6 05-07-2011 , 12:47 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
One last look at the uvs, duplicate the part with the problem then run a auto uvs then run your bake occlusion if that still not working you know its not you uvs then we will need to look at the mesh..............dave




Avatar Challenge Winner 2010
# 7 05-07-2011 , 12:50 PM
Stannoman's Avatar
Registered User
Join Date: Apr 2009
Posts: 51
Done, it still doesnt work so I guess it is not the UVs

# 8 05-07-2011 , 01:30 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
Do you want to post your file and will have a look...........dave




Avatar Challenge Winner 2010
# 9 05-07-2011 , 01:34 PM
Stannoman's Avatar
Registered User
Join Date: Apr 2009
Posts: 51
I sent you a PM with the download details

note though: In this version there are still flipped and overlapping UV's. :/

# 10 05-07-2011 , 01:59 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
Witch group is giving you the problem........dave




Avatar Challenge Winner 2010
# 11 05-07-2011 , 02:23 PM
Stannoman's Avatar
Registered User
Join Date: Apr 2009
Posts: 51
The objects with the arms_material assigned to them, so basicly the arms.

# 12 05-07-2011 , 04:13 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
Will get back to you.........dave




Avatar Challenge Winner 2010
# 13 05-07-2011 , 08:04 PM
daverave's Avatar
The thin red line
Join Date: Aug 2009
Location: England
Posts: 4,472
I manage to get it to work, put all the uvs onto one map(you might not need to do this) then did one arm at a time............dave

Attached Thumbnails



Avatar Challenge Winner 2010
# 14 05-07-2011 , 08:14 PM
Stannoman's Avatar
Registered User
Join Date: Apr 2009
Posts: 51
Cool. Thanks a lot, will try it out user added image

Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off