GaijinEntertainment / DagorEngine

Dagor Engine and Tools source code from Gaijin Games KFT
Other
2.15k stars 268 forks source link

[Question] How to build lighting? #17

Open CodeLikeCXK opened 9 months ago

CodeLikeCXK commented 9 months ago

It seems the lighting plugin is not included currently.

NicSavichev commented 9 months ago

It seems the lighting plugin is not included currently.

prebuilt lighting (lightmaps and vertex-lightmaps) was dropped in DagorEngine several years ago, plugin Light is not used anymore. Dynamic lighng (defered shading with gbuffer) is used

CodeLikeCXK commented 9 months ago

It seems the lighting plugin is not included currently.

prebuilt lighting (lightmaps and vertex-lightmaps) was dropped in DagorEngine several years ago, plugin Light is not used anymore. Dynamic lighng (defered shading with gbuffer) is used

I see. So why in editor. the dark part of sponza scene is too dark unlike the prebuilt game sample?How to solve that? Also in editor, the plugin Light is turned on in project setting and can't switch to direct lighting. Even after switching to direct light and apply and press OK, the preview shows no difference. image

NicSavichev commented 9 months ago

It seems the lighting plugin is not included currently.

prebuilt lighting (lightmaps and vertex-lightmaps) was dropped in DagorEngine several years ago, plugin Light is not used anymore. Dynamic lighng (defered shading with gbuffer) is used

I see. So why in editor. the dark part of sponza scene is too dark unlike the prebuilt game sample?How to solve that? Also in editor, the plugin Light is turned on in project setting and can't switch to direct lighting. Even after switching to direct light and apply and press OK, the preview shows no difference. image

This is due to editor doesn't use Global Illumination and ambient is not set at all/ This scene is not very good to look in the editor

CodeLikeCXK commented 9 months ago

It seems the lighting plugin is not included currently.

prebuilt lighting (lightmaps and vertex-lightmaps) was dropped in DagorEngine several years ago, plugin Light is not used anymore. Dynamic lighng (defered shading with gbuffer) is used

I see. So why in editor. the dark part of sponza scene is too dark unlike the prebuilt game sample?How to solve that? Also in editor, the plugin Light is turned on in project setting and can't switch to direct lighting. Even after switching to direct light and apply and press OK, the preview shows no difference. image

This is due to editor doesn't use Global Illumination and ambient is not set at all/ This scene is not very good to look in the editor

I see...So why after I change light and export the level, the scene looks totally dark in game? editor game

CodeLikeCXK commented 9 months ago

It seems the lighting plugin is not included currently.

prebuilt lighting (lightmaps and vertex-lightmaps) was dropped in DagorEngine several years ago, plugin Light is not used anymore. Dynamic lighng (defered shading with gbuffer) is used

I see. So why in editor. the dark part of sponza scene is too dark unlike the prebuilt game sample?How to solve that? Also in editor, the plugin Light is turned on in project setting and can't switch to direct lighting. Even after switching to direct light and apply and press OK, the preview shows no difference. image

This is due to editor doesn't use Global Illumination and ambient is not set at all/ This scene is not very good to look in the editor

image By the way. This is how the same map looks like in samples-prebuilt(I replace the map file with the one I output in editor), which means the error may come from the engine I built. How could I find the problem?

Capewearer commented 8 months ago

@CodeLikeCXK if your TestGI sample lacks lighting bounces, press F2, you'll open ImGUI menu, so you can find option that enables light bouncing. @NicSavichev is there still option to bake indirect lighting? You mentioned that lightmaps were cut, but do light probes still remain? If my assumptions are true, is there any way to bake lightmaps in external software (e.g. Blender3D) and mix it with light probes?

CodeLikeCXK commented 8 months ago

@CodeLikeCXK if your TestGI sample lacks lighting bounces, press F2, you'll open ImGUI menu, so you can find option that enables light bouncing. @NicSavichev is there still option to bake indirect lighting? You mentioned that lightmaps were cut, but do light probes still remain? If my assumptions are true, is there any way to bake lightmaps in external software (e.g. Blender3D) and mix it with light probes?

image Thanks! It works after a system update. Strange.