0 votes

I currently do a [practical exercise for my university* with the focus on "traffic".

Therefore, I have started implementing some vehicles, which all contain head-, rear-, brake- and reverse-lights.

However, there is a problem with the brake- and reverse-light:

As you can see here, the lights are lit up when I brake or reverse the vehicle:

braking lights working normally
reverse lights working normally

But if I turn on the head- and rear-lights, only one brake- and reverse-light shows up:

only one braking light is working
only one reverse light is working

So, the question is: What causes this and can I fix it?

Some additional information:

This car here has 8 light nodes, as there are 2 nodes for each "light": One Omnilight with small range so you can see it's lit up by looking at the vehicle, and one Omnilight with large range (or an spotlight for the headlights) for lighting up the enviroment.

As I have another vehicle with 10 lights having this problem even more, I suspect that I somehow hit a limit. Can this be the cause?


*: This is the best I can describe it. Our university calls it "Anfängerpraktikum", but I could not find a fitting english equivalent for it.

Godot version v3.2.3.stable.flathub
in Engine by (57 points)

1 Answer

0 votes
Best answer

It's a limitation of 8 maximum lights for 1 mesh with 3.2.3 or below.
reference : https://github.com/godotengine/godot/issues/15651

But it's changed to 32 and even can be increased at Project settings/rendering/limits/rendering/maxlightsper_object after 3.2.4 beta
reference : https://github.com/godotengine/godot/pull/43606

try 3.2.4 beta from https://godotengine.org/article/dev-snapshot-godot-3-2-4-beta-6

by (9,702 points)
selected by

Thanks! I knew about the newly raised limitation, but thought it is already in the stable release.

Using the Release Candidate now and lights working like expected.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.