# Batch bake gives me black textures on some objects

**URL:** https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109
**Category:** Maya
**Tags:** mental-ray
**Created:** [June 2, 2005, 3:56pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109 "2005-06-02T15:56:52Z")
**Posts on this page:** 16
**Page:** 1

<div class="post-metadata">

### Author: ![ncheater](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@ncheater](https://forum.highend3d.com/u/ncheater)
#### Post date: [June 2, 2005, 3:56pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/1 "2005-06-02T15:56:52Z")

</div>

I’m fairly new to MR but the batch bake to texture seems to be pretty straight forward when I read the help.  
My test scene has 5 objects (4 poly cubes scaled & rotated to form a floor and walls and a poly sphere in the middle). All awfully colored with different lambert materials without any fancy shaders to keep it as simple as possible.

It renders ok with MR so the lighting is working.

But when I use bake to texture (fully lit) one of my objects turns out completly black?? the others have the shadows and color correctly baked in the textures.

Any clues anyone? I’m using Maya 6.5

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [June 2, 2005, 4:19pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/2 "2005-06-02T16:19:25Z")

</div>

Chak the objects normals are pointing outward! Also chek the shader it is assigned!

---

<div class="post-metadata">

### Author: ![ncheater](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@ncheater](https://forum.highend3d.com/u/ncheater)
#### Post date: [June 2, 2005, 4:34pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/3 "2005-06-02T16:34:15Z")

</div>

Thanks for the fast reply but..  
The normals are pointing outwards on all objects.  
And one object that is working, is a duplicate of one that doesnt work (just rotated) so ist not the shader : (

I managed to get all to work if I rotated the non working objekt so that the side is pointing “up” use bake . hitting undo, rotate back to correct position, the use bake again.  
Which makes me even even more confused…

---

<div class="post-metadata">

### Author: ![mandrak](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@mandrak](https://forum.highend3d.com/u/mandrak)
#### Post date: [June 2, 2005, 4:43pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/4 "2005-06-02T16:43:08Z")

</div>

Is it duplicated, or instanced? Check that out - it shouldn’t work with instances.  
Also, there might be a sharing problem with shaders, so You could try recreating new shading network for the object in question.

---

<div class="post-metadata">

### Author: ![ncheater](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@ncheater](https://forum.highend3d.com/u/ncheater)
#### Post date: [June 2, 2005, 5:28pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/5 "2005-06-02T17:28:18Z")

</div>

Hmm Nope  
The object is duplicated as copy.  
And applying a new material didnt help either : (

this it what is look like, how can rotating it make any difference ???  
 ![](http://www.virtuelldesign.com/stuff/MR_bake_muppo.jpg)

---

<div class="post-metadata">

### Author: ![failure](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@failure](https://forum.highend3d.com/u/failure)
#### Post date: [June 2, 2005, 5:57pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/6 "2005-06-02T17:57:58Z")

</div>

Disable shadow casting for walls

---

<div class="post-metadata">

### Author: ![ncheater](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@ncheater](https://forum.highend3d.com/u/ncheater)
#### Post date: [June 2, 2005, 6:11pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/7 "2005-06-02T18:11:29Z")

</div>

Made some difference, but not usefull.  
Turned off Casts Shadows under Render Stats for the 2 walls. correct ?

Instead of a totally black object I got a stripe along the left side with a tint of red, and the rest black as before.

If anyone would like to try and reproduce the error [here is the file](http://www.virtuelldesign.com/stuff/test_MR_bake_6_5.mb) just run batch bake and see if it look the same, or if it’s just my computer (or me) thats stupid

---

<div class="post-metadata">

### Author: ![failure](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@failure](https://forum.highend3d.com/u/failure)
#### Post date: [June 2, 2005, 6:26pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/8 "2005-06-02T18:26:36Z")

</div>

ma please

---

<div class="post-metadata">

### Author: ![mandrak](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@mandrak](https://forum.highend3d.com/u/mandrak)
#### Post date: [June 2, 2005, 6:34pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/9 "2005-06-02T18:34:37Z")

</div>

I think one row of Your UV’s is conected into one streched face that is spread all over entire map, so You get this artifact. FOr baking to be successful, UV’s can’t overlap.

---

<div class="post-metadata">

### Author: ![ncheater](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@ncheater](https://forum.highend3d.com/u/ncheater)
#### Post date: [June 2, 2005, 6:44pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/10 "2005-06-02T18:44:15Z")

</div>

Thankz a ton  
[Here as ma](http://www.virtuelldesign.com/stuff/test_MR_bake_6_5.ma)

---

<div class="post-metadata">

### Author: ![mandrak](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/m/3e96dc/32.png) [@mandrak](https://forum.highend3d.com/u/mandrak)
#### Post date: [June 2, 2005, 6:56pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/11 "2005-06-02T18:56:42Z")

</div>

Nope, sorry. I’ve checked it out now, so I see they are ok.  
I think it has to have sth with the way mr calculates fg inh baking. There’s some difference in max/min values in these two.

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [June 2, 2005, 7:00pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/12 "2005-06-02T19:00:08Z")

</div>

the min max radius settings MUST be set manualy whan baking as mr has no clue on how big the objects are compared to cam views (yes its explained in the manual under beking with mr).

But no that does not seem to be the point here.

---

<div class="post-metadata">

### Author: ![failure](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@failure](https://forum.highend3d.com/u/failure)
#### Post date: [June 2, 2005, 7:13pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/13 "2005-06-02T19:13:37Z")

</div>

No, uv’s are not ok. They must be in 0-1 range.

---

<div class="post-metadata">

### Author: ![ncheater](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@ncheater](https://forum.highend3d.com/u/ncheater)
#### Post date: [June 2, 2005, 7:18pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/14 "2005-06-02T19:18:33Z")

</div>

Je I saw that but since the other objects worked with baking I didnt set the max min, somehow it does figure out how big it is ( or it just works…)

And why the H… does rotating the object in a sertain way solve the problem ??

---

<div class="post-metadata">

### Author: ![failure](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/f/f08c70/32.png) [@failure](https://forum.highend3d.com/u/failure)
#### Post date: [June 2, 2005, 7:31pm UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/15 "2005-06-02T19:31:05Z")

</div>

It doesn’t. it just happens to look like it in this particular case. ( Well almost because you still have artefacts on third picture - note the squeezed ball shadow on both sides of the blue box )

If you have overlapping uv’s or uv’s out of 0-1 range ( which is technically same as overlapping ) the renderer will have to store two or more pixels in the same place in texture. Which is of course not possible so the one that is rendered/stored last is the one you see as the end result. This tends to look like a pretty random behavior if you don’t understand what’s underneath.

Min and max fg radius has nothing to do with this.

---

<div class="post-metadata">

### Author: ![ncheater](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/n/9e8a1a/32.png) [@ncheater](https://forum.highend3d.com/u/ncheater)
#### Post date: [June 3, 2005, 7:37am UTC](https://forum.highend3d.com/t/batch-bake-gives-me-black-textures-on-some-objects/46109/16 "2005-06-03T07:37:22Z")

</div>

Jeee  
Thankz everyone  
Newer checked the uv’s didnt think they could mess up when just using simple cubes.  
I got the same reply now from Alias support that the UV’s are outside the 0-1 range.  
But U all were 2 days behind with the question and gave me reply’s and the solution faster : )
