Incongruence between editor display and editor player

I am behind this thing since a couple of hours now and can’t find the problem.

I have 2 lights in the scene: a point light used only for lightmapping, a directional light used for dynamic objects and shadows.

There are some dynamic objects on the layer DYNAMIC and a static mesh on the layer STATIC.

Point light is culling set on STATIC layer, directional is culling set on DYNAMIC and STATIC layer because I would like dynamic objects to cast shadows on static layer.

On the editor everything looks fine: the static mesh only has lightmap rendered.
On the player things change…

If I set the LIGHTMAPPING parameter as AUTO on the directional light, then only the dynamic objects receive shadows.
If I set the same parameter to REALTIME ONLY then I have the shadows… but the static mesh is receiving the light of the directional light as well, resulting in an overexposure.

My question is: is this a correct behaviour?
Isn’t it supposed to work that I can have some lights to render the static environment and make it uberfast to render and still have the chance to have shadows projected on it?

Or a light that is working on the static meshes to receive shadows must be enabled on them MANDATORY at lightmapping projection?
This looks weird to me: can’t I just make a directional light that will NOT be part of the lightmapping calculation and use it just for projecting shadows and light dynamic objects???

Anyone on this?
I suspect a bug but I don’t want to file a bug report until I’m sure of it.

I just tried with DUAL LIGHTMAPS and shadows are working… but I really don’t need dual lightmaps, having a scene that is always rendered close by.
Still, the manual mentions that shadows should be there and that I should adjust the shadow power by hand.
Problem is, shadow power is at 1 and shadows are simply not projected.

Bumpy!

tl;dr… :stuck_out_tongue:

If I understood correctly you want to mix lightmapped (only) objects with realtime (only) ones?

Care to post a screenshot explaining what you want to happen exactly?

EDIT: Okay I think I understand.

Try this :

Have a plane as static.
A Box on top of it (not static)
One Directional Light with shadows on, lightmapping set to auto.
Check Quality Settings (shadows are enabled, proper shadow distance etc).
Bake and tadaaaa.

This should work, if it doesn’t post a scene here and I’ll take a look at it.