question

Doug Addy avatar image
Doug Addy asked ·

I'm having trouble with texture baking in the same scene.

I baked a texture to an object. but when I try to bake another texture to another object it bakes the previous object until I unload the reference, then it works.

texturebugbaking
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Doug Addy avatar image
Doug Addy answered ·

it seems to happen when the cubes normals are reversed

Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Stephen Blair avatar image
Stephen Blair answered ·

Can you post what's logged in the script editor?
For example:

select -r pCube1 ;
# [mtoa] Render to Texture : Rendering polymesh pCubeShape1
# [mtoa] Render to Texture : Rendered to C:/Users/blairs/Documents/maya/projects/default/images/bake/pCubeShape1.exr
select -r pCube1 ;
# [mtoa] Render to Texture : Rendering polymesh pCubeShape1 # 
# [mtoa] Render to Texture : Rendered to C:/Users/blairs/Documents/maya/projects/default/images/bake/pCubeShape1.exr # 


5 comments Share
10 |600 characters needed characters left characters exceeded

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

select -r Cube ;

select -cl ;

select -r Cube ;

# [mtoa] Render to Texture : Rendering polymesh CubeShape

# [mtoa] Render to Texture : Rendered to D:/Pro/Pregnancy/sourceimages/baketest/CubeShape.exr

0 Likes 0 · ·

Can you reproduce the problem? First bake one object, then the other.
Then we should have two sets of messages in the script editor

0 Likes 0 · ·
Doug Addy avatar image Doug Addy Stephen Blair ♦♦ ·

select -r Cube ;

select -r RenderCamera ;

select -r week40_master_body ;

# [mtoa] Render to Texture : Rendering polymesh week40_master_bodyShape

# [mtoa] Render to Texture : Rendered to D:/Pro/Pregnancy/sourceimages/baketest/week40_master_bodyShape.exr

select -r Cube ;

# [mtoa] Render to Texture : Rendering polymesh CubeShape

# [mtoa] Render to Texture : Rendered to D:/Pro/Pregnancy/sourceimages/baketest/CubeShape.exr


first I get this (expected)

1.png

then I get this (unexpected)

2.png


0 Likes 0 · ·
1.png (739.3 KiB)
2.png (419.4 KiB)

when the reference is loaded I get this (unexpected),bad.pngwhen the reference (the baby model) is unloaded I get this, (expected)

good.png

0 Likes 0 · ·
bad.png (420.1 KiB)
good.png (330.3 KiB)

its using the uvs of the correct model but its baaking the wrong texture. those are not the correct uv's for the baby.

0 Likes 0 · ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 5 attachments (including images) can be used with a maximum of 2.0 MiB each and 9.8 MiB total.

Welcome to the Arnold Answers community.

This is the place for Arnold renderer users everywhere to ask and answer rendering questions, and share knowledge about using Arnold, Arnold plugins, workflows and developing tools with Arnold.

If you are a new user to Arnold Answers, please first check out our FAQ and User Guide for more information.

When posting questions, please be sure to select the appropriate Space for your Arnold plugin and include the plugin version you are using.

Please include images, scene and log files whenever possible as this helps the community answer your questions.

Instructions for generating full verbosity log files are available for MtoA, MaxtoA, C4DtoA, HtoA, KtoA, and Kick.

If you are looking for Arnold Documentation and Support please visit the Arnold Support site.

To try Arnold please visit the Arnold Trial page.

Bottom No panel present for this section.