uzh-rpg / flightmare_unity

MIT License
42 stars 33 forks source link

Industrial lighting #9

Open francofusco opened 3 years ago

francofusco commented 3 years ago

Hello! :wave:

Whenever I start from a fresh build, the industrial environment looks fine, but all objects inside the scene are blue-ish. As an example, I have tried inserting a (white) car and an aruco-like marker. The result is the following:

fmblue

This happens also with the rpg_gate (I haven't taken pictures yet, but I can do it if needed).

Anyway, I am able to correct this behavior by manually regenerating the lighting (for those in need: see below :arrow_down:), however this takes quite a while on my PC, I'd say about ~15-20 minutes. I am then able to rebuild the render, but often if I close Unity's editor and try to reopen the project later, I get a bunch of null pointer exceptions and the only consistent way I found to get it to work again is to restart from a fresh checkout of the project. This unfortunately means that I have to rebuild lighting again :sob: Since I am not familiar enough with how Unity works, I am unsure how to "permanently" fix this issue. Do you have any suggestion?

For sake of completeness, below is how the same scene looks like with regenerated lighting. Note that even the drone is blue-ish. Also, if I am not mistaken the same issue is present in the industrial scene in the precompiled render v0.0.5. I haven't tested other scenes/releases, sorry :sweat_smile:

fmwhite


How to rebuild lighting

These are the steps I follow to manually fix the issue. I hope they can be helpful for others facing the same issue :relaxed:

Hopefully, objects are now rendered correctly, as in the second pic above :+1:

slimeth commented 3 years ago

This will be done in the next standalone release :+1: