Hi. Has anyone encountered this problem?

  1. I created a model in Blender and divided it into parts.
  2. I uploaded them to Godot in .gbl format and noticed that they had different colors, even though they were made of the same material.
  3. The problem was specifically on the hood and fenders, which always remained darker than the rest of the elements in the same color.
    ... However, if you look at the car from underneath, you can see the illuminated side. If you flip the hood 180°, the light will still fall on it from below.
    The normals are correct.
    I'm working on Godot's compatibility renderer.

  • xyz replied to this.

    Vendigo Which of those two totally different images illustrates the problem?

      xyz .In the two images, the hood is always darker than the car's body color. In the first image, the fenders and hood are darker than the car's body and bumper colors

      Are you making Street legal type of game? Soft body physics?

      THe problem might be in the material export. Why cant you reassign them yourself after the import? Or maybe bake the texture in blender and then recreate the material in godot?

        kuligs2 Yes, this is a Street legal/racing game. I didn't make any soft bodies.
        I imported the model into Godot in .gbl format, then created .tskn child scenes based on the body elements, and then completely changed the material for all MeshInstances to a new one created in Godot. To reiterate, the material is the same for all of them, and I load it from a folder. I change the material color in the .gd script.

        However, there is another issue: The hood and fenders are still darkened in the inspector.

        I know that it is possible to disable the darkening of the back of the material so that the light is on all sides.

          Vendigo However, there is another issue: The hood and fenders are still darkened in the inspector.

          Try importing a scene from Godot like glTF and open it in Blender. That might give you a clue.

          Is it a Lada or a Zaporozhets?

            Tomcat Okay, I'll try to import the scene into Blender.

            Yes, this is the Lada Samara 2108 and its modification called the 2113. I'm from Russia, and this game will be about our auto culture, "Stritukha."

            Vendigo If you plan to get somewhere with your game development efforts, you need to be able to debug. It's a fundamental skill without which you'll get completely lost. One of the basic debugging approaches is to reduce the scope of the problem to its bare minimum. That way, figuring it out will become much easier, as there are fewer places you need to look and think about.

            So in this particular case - delete everything from the model except one surface that displays correctly and one that doesn't. Export/import that and proceed to search for the cause by determining the difference between those two that may cause the problem.

            I've solved the problem. 😉

            Before exporting from Blender, you need to press ctrl+A and select "All Transformation Types."
            There are two options:
            1) Nothing will happen.
            2) The model will break slightly and need to be redone.
            However, after this procedure, the lighting will work correctly in Godot.

            Thank you for your interest.👍