Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Moo |
Noob question: when I import some of Kenney’s excellent 3D models as DAE or GLTF objects, the colours are wrong - they appear darker than they should be.
When I import them into Unity they appear correct. Been googling lots the last few days but can’t find a simple answer. I’m setting a light source in the scene etc. but still the models appear darker, more washed-out as it were.
Please can someone point me in the right direction what I’m doing wrong?
more washed-out as it were.
Do you mean the environment is affecting the colour too much or are the UVs messing up?
Edit - Was Unity using the scene lighting or the default editor lighting? Unity doesn’t have a sky contribution property like Godot either since it uses the GI and material settings to get similar results, so turning the sky contribution way down with a directional light in the scene would make it look more like Unity.
Magso | 2020-02-23 10:30
I’ve used kenneys objects (imported from wavefront obj) in some test project. The colors seem to be correct.
That model does not use textures but color definitions in the material.
My guess ist that the lighting setup does not match your expectations.
You might want to add (if not already) a worldenvironment to your scene. Via that you can control the ambient light (preferrably set to white). You can also fiddle with the energy of the directional and also the ambient light.
There’s also the opportunity to adjust the general contrast/brightness and configure other color corrections via the worldenvironment node. But that should not be required in this case.
Finally, you can check if HDR is enabled in the projects rendering preferences.
wombatstampede | 2020-02-23 13:21
Thanks Magso and WombatStampede for the useful feedback. I’ve taken two screenshots - one of a godot mockup and another of unity - to show what I mean.
I’m beginning to think it’s a lighting setting from what you’ve both said, rather than a model import issue.
Godot screenshot crystals are washed-out - godot-models-and-light hosted at ImgBB — ImgBB
Unity screenshot crystals look normal - unity-models-and-light hosted at ImgBB — ImgBB
Moo | 2020-02-24 09:07
It is mostly the default environment settings in Godot that’s causing that. Another thing is have you assigned any materials yet? If the materials are imported with only a specified albedo texture, Godot automatically sets quite a reflective material as opposed to unity’s standard diffuse.
Magso | 2020-02-24 10:18
I checked kenneys “crystal” model on different import formats and I can (partly) acknowledge your findings.
I am not completely sure how and when material colors (albedo) are changed while importing but this happens.
My guess is that this is caused somehow by the mapping from material names to material files. So it only seems to happen when material storage is set to (material) files (instead of buit-in) on import. Maybe there’s a second “fainted” version of the crystal material somewhere in the model that overwrites the proper color.
But using shared materials (in files) is preferrable IMHO. It is easier to later adjust settings for all models sharing the same material/color and it also saves GPU resources.
I propose that you make sure that “Keep on Reimport” in the Material Import settings is checked (that is default IIRC). Then open the improper material files and adjust them to your likings. Also make sure to backup your project often in case materials still get overwritten on imports (where ‘keep’ wasn’t selected).
So in short words:
Either select Material built-in storage on import or edit/adjust the materials later.
wombatstampede | 2020-02-24 10:31
Thank you again Magso and WombatStampede I’ll investigate the import settings and the environment settings too. Really appreciate your helpful pointers about where to look
Moo | 2020-02-24 11:02