TheGameCreators / GameGuruRepo

The GameGuru Repository For Community Collaboration
http://www.game-guru.com
137 stars 56 forks source link

GGMAX - EXP - Some sky settings not saved to standalone #5480

Open DBird-1994 opened 5 months ago

DBird-1994 commented 5 months ago

After building a standalone, various sky settings are not saved. For example in the pic below,the top picture shows how the sky looks in the level editor and test game, and the bottom picture shows how the sky looks in standalone. Things that are missing:

  1. The sun itself, in the bottom pic the sun is missing
  2. Lens flares and sun rays are also missing suns
LeeBamberTGC commented 1 month ago

@DBird-1994 Can you take a snapshot of the sky box you chose and one of the lens flare settings (and the biome chosen) so I can recreate as close as possible to the shot you have provided, thanks! Maybe even an FPM too as that might get even closer to recreating quickly.

LeeBamberTGC commented 1 month ago

@DBird-1994 Turns out it is the lensflare that goes missing. Seems related to whether there is a transparent item(kinda) in the scene. If there is no transparent object (or thing), then the lensflare does not render: image VS image

I can only assume it is some graphics state that the transparent render sets allows the lens flare to also render, and when this state is not set per cycle, the lensflare does not render visibly.

More investigation is needed...

LeeBamberTGC commented 1 month ago

NOTE: I think I cracked it, just moved the lensflare draw slightly further up and it works in all scenarios :) Ready for next DEVTEST build.