x


Cubemaps disappearing from objects with identical material?

I have a very simple reflective material that is using a cubemap (it is the default reflective/specular material).

However, whenever I have more than 2 objects with this material on-screen, the cubemap vanishes from all but 1 of the objects.

alt text

When I delete 5 of those gray blocks, the remaining 2 will properly use the cubemap. But as you can see, when all of these are here, only 1 of them shows the cubemap.

More confusingly, if I take any of the blocks with the broken cubemap and move it far away, its cubemap reappears. What's going on, and is there a way to fix it?

more ▼

asked Jan 27 '12 at 06:53 PM

Jason B gravatar image

Jason B
1.7k 29 32 44

Hoping someone out there knows something about why reflections disappear like this. :( Still stuck.

Feb 01 '12 at 08:31 AM Jason B

Hi,

Please mention the platform (webplayer/standalone) the unity3d version you're using - along with the hardware you're seeing this on.

I just put together a small test scene with cubes & spheres sharing the same reflective material. On win7 / unity3.4.2f2 this runs fine on my machine QuadCore i7/ nvidia 260 GTX.

Unity Answers doesn't allow me to attach my webplayer here .

Feb 06 '12 at 06:54 AM Dev.D

This happens in the editor, while playing in the editor, and while playing in standalone. Using Unity 3.5. I have an Nvidia 550GTX/Windows 7. It's being deployed as PC standalone (32-bit). Unity free, forward rendering, one directional light.

Feb 06 '12 at 07:22 PM Jason B

It's obviously a batching issue. Windows had problems with batching, early on, that weren't present on other platforms. Apparently this is still the case. File a bug. Turn off batching as a workaround; it's not all that helpful on PC anyway.

Feb 06 '12 at 07:43 PM Jessy

Thanks. Turning off batching fixed it, and for that matter, I got absolutely no change in performance from doing so. As long as that remains the case, I'll just keep the batching off.

Feb 06 '12 at 08:45 PM Jason B
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

For the sake of being able to mark this question as officially answered:

Jessy noted that this is a batching issue. If you're experiencing this problem, turning off batching fixes it. Thanks to Jessy for the solution.

Alternatively, I think you could also instance the material across all of the problem objects. This would eliminate the batching error for only those objects and allow you to batch other objects as usual.

more ▼

answered Feb 06 '12 at 08:50 PM

Jason B gravatar image

Jason B
1.7k 29 32 44

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x841
x355
x59

asked: Jan 27 '12 at 06:53 PM

Seen: 750 times

Last Updated: Feb 07 '12 at 04:41 AM