[Solved]Flashing material when camera is moved, help

Discussion in 'Content Creation' started by Narwhal, Jun 4, 2016.

  1. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    I just applied a normal map and a diffuse map to my suburbans door(which is a seperate material from the rest of the car) , but now when i move the camera the door flashes faintly. Without those two maps it doesnt flash.

    also im not sure if my diffuse map should be a spec map. it still flashes when i put it as a spec map though,
    I have included my normal map and other map, they are not the finals, i know they are poor quality, but they are a test.

    My section of the materials.cs
    Code:
    singleton Material(door_test)
    {
        mapTo = "door_test";
        diffuseMap[2] = "vehicles/pickup/suburban/door_test_d.png";
        normalMap[2] = "vehicles/pickup/suburban/door_test_n.png";
        specularMap[2] = "vehicles/pickup/suburban/door_test_d1.png";
        specularMap[1] = "vehicles/pickup/suburban/door_test_d1.png";
        diffuseMap[0] = "vehicles/common/null.dds";
        specularMap[0] = "vehicles/common/null.dds";
        normalMap[1] = "vehicles/pickup/suburban/door_test_n.png";
        diffuseMap[0] = "vehicles/common/null.dds";
        specularMap[0] = "vehicles/common/null.dds";
        normalMap[0] = "vehicles/pickup/suburban/door_test_n.png";
        specularPower[0] = "128";
        pixelSpecular[0] = "1";
        specularPower[1] = "32";
        pixelSpecular[1] = "1";
        specularPower[2] = "128";
        pixelSpecular[2] = "1";
        diffuseColor[0] = "1 1 1 1";
        diffuseColor[1] = "1 1 1 1";
        diffuseColor[2] = "1 1 1 1";
        useAnisotropic[0] = "1";
        useAnisotropic[1] = "1";
        useAnisotropic[2] = "1";
        castShadows = "1";
        translucent = "1";
        translucentBlendOp = "None";
        alphaTest = "0";
        alphaRef = "0";
        dynamicCubemap = true;
        materialTag0 = "beamng"; materialTag1 = "vehicle";
    };
    
     

    Attached Files:

    • door_test_d.png
    • door_test_n.png
  2. H/\Z/\RDOUS

    H/\Z/\RDOUS
    Expand Collapse

    Joined:
    Apr 18, 2016
    Messages:
    307
    Delete it then reinstall it; if that doesn't work, I'm out of ideas...:p
     
  3. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    how would that help me though? its my own mod, not released anywhere. thus i cant "delete and reinstall"
     
  4. bobby_boulgat

    bobby_boulgat
    Expand Collapse

    Joined:
    Aug 23, 2013
    Messages:
    453
    it's maybe because you mix dds and png textures. Put a dds texture on a png or jpg make flashing. I've seen this bug on my maps since the 2 last updates, so it's may be this. Use only the same format of files (dds) ?
     
  5. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,685
    Layer 1 has no Diffuse map?
    I recall this happens when you try to use a Normal map without having a Diffuse map.
     
  6. Narwhal

    Narwhal
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,698
    That worked. Thanks!
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice