how to get textures from blender in game?

Discussion in 'Content Creation' started by GameNoobTV, Jan 5, 2016.

  1. GameNoobTV

    GameNoobTV
    Expand Collapse

    Joined:
    Aug 28, 2015
    Messages:
    413
    I am currently in the process of making a mod, and I spawned it in to the game and it did not have a texture. I created the textures in Blender, but what do I do now?
     
    #1 GameNoobTV, Jan 5, 2016
    Last edited: Jan 6, 2016
  2. GameNoobTV

    GameNoobTV
    Expand Collapse

    Joined:
    Aug 28, 2015
    Messages:
    413
  3. mumboking

    mumboking
    Expand Collapse

    Joined:
    Jun 11, 2015
    Messages:
    1,400
    I think this isn't an error with your mod, but rather with the default content.
     
  4. GameNoobTV

    GameNoobTV
    Expand Collapse

    Joined:
    Aug 28, 2015
    Messages:
    413
    Oh, well I cant get a texture to work, could you or anyone else help?
     
  5. mumboking

    mumboking
    Expand Collapse

    Joined:
    Jun 11, 2015
    Messages:
    1,400
    Maybe. I don't know too much about content creation.

    Does the mapTo part of the material match the name of the mesh's material?
    e.g:
    Code:
    singleton Material(material_Name)
    {
        mapTo = "material_Name";
        //Other material stuff here
    };
     
  6. GameNoobTV

    GameNoobTV
    Expand Collapse

    Joined:
    Aug 28, 2015
    Messages:
    413
  7. schumacher

    schumacher
    Expand Collapse

    Joined:
    Sep 1, 2013
    Messages:
    1,054
    Have you added material.cs files to your (vehicle or mod) so that bng cam read the textures ?
     
  8. Bisofication

    Bisofication
    Expand Collapse

    Joined:
    Nov 24, 2013
    Messages:
    287
    First, make a material.cs file and start putting those lines as shown in this pic
    (its missing alot of things but, it will help you understand what's going on)

    The other day I was trying to make exhaust flame(backfire) so I modeled a plane and put a flame png file as shown above.
    First, you have to apply the texture to your 3D model and and export it as a DAE file.
    Where it says "mapTo" is the name of the texture in your 3D modeling program in my case (metalfire)

    diffuseMap is the image or usually the DDS texture file
    In my case, I'm using opacityMap in order to make the flame is the only thing you see (in order to make the game ignore the white area around the flames and make them see through)
    Note: (idk why but, if I make any changes in the materials, I have to restart the game in order to apply the new changes)
     
  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