Vertex lighting problems

Hi! Thank You for the great solution of creativity and sorry for my poor english :slight_smile:

After upgrading my 2.6.1 project to 3.0.0, i’ve found strange situation with vertex-lighted objects.

  • i have a lot of procedurally vertex-prelighted-objects, the blue crystals, for example.
  • in play window my crystals has orange color (right after blue color fade_in sequence finished)
  • in editor window the color of crystal is in fight between blue and orange (depends of camera position)

Is it the sort of new batching mechanics? How to keep the vertex color of batched meshes safe?

Thanks again.

PS: the black soil under the crystal now has no right vertex colors too.
Also you can see the 2.6.1 sample screenshot with no any vertex problems…

394961--13550--$image_01.jpg
394961--13551--$image_02.jpg
394961--13552--$image_03.jpg

the vertex color of them remains safe, I would guess its more a matter of the used material that causes this or you are using lights that impact it …

I have not lights in scene and have only 2 materials (standart and additive) with texture atlases. I have a lot of start vertex coloring procedures and the orange color is the one of the config color for vertex lighting.

Looks like the batcher has read the color of the first vertex of combined meshes and clone it to whole vertices of resulted mesh…

update: the vertex color data is fine… searching the reason of wong coloring

Here is the scene with animated camera and crystals vertex-painted as red, green and blue only:
http://www.fictionware.com/u3d/WebPlayer.html

UPDATE: Artifact is actual in any combination of Rendering Path and Batching methods

just to check a thing: you did not by error mark them static right? cause with static batching such side effects could happen I think. with dynamic batching they shouldn’t

Heh… after cloning and testing the scene with about 30 of crystals, i’ve got the problem even with Dynamic Batching is OFF, Static Batching OFF/ON etc :slight_smile:

All works fine only with 1 crystal in scene… yes, it’s the solution too :slight_smile:

395094–13562–$lighting_problems.unitypackage (200 KB)

I don’t see any problems. That package only had 3 crystals though, not 30.

–Eric

Eric5h5, do you see the red, green and blue crystals while playing in scene and game windows?

Oh… my fault… the problems appears ONLY with Dynamic Batching is ON.
I’m sorry, just mixed up the Player Settings panels. :slight_smile:

So, Dynamic Batching is not an option for me. The orange crystals now has a sweet blue color.
Thank you for helping :slight_smile:

Yes, I see red, green, and blue crystals. That’s with dynamic batching on, actually.

–Eric

Damn… i have a flashing Disco lights with Dynamic ON on PC+GF240. Do you Mac user?

Yes, although maybe it could be a driver issue? Have you tried it on another PC?

–Eric

He-he! You are right… no problems on my mini with posted web-scene.
Thanks again… its more optimistic than disabling dynamic batching :slight_smile: