1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.35 Bug Reporting thread
    Solutions and more information may already be available.

gifs as textures?

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by crashmaster, Apr 24, 2016.

  1. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    Is it possible to make a gif work in beamng as a texture? im testing it right now but the gif acts as an image and nothing else. is there a way to make something like that work?
    The thing is im trying to make a tv prop for beamng, planning to add like 10-20 gifs together to make a "tv" ish effect.
    would something like that be possible?
     
  2. mumboking

    mumboking
    Expand Collapse

    Joined:
    Jun 11, 2015
    Messages:
    1,400
    You can do it the same way the ETK's navigation screen works. It's actually an HTML page displayed as a texture.
    I recall someone made a video play on it, so gifs should be doable too.
     
  3. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    Oh, html? ok then. do you know how to do it? i think ill need a bit of help for this one. ill look into the html but tbh ive got no clue how html works.
     
  4. mumboking

    mumboking
    Expand Collapse

    Joined:
    Jun 11, 2015
    Messages:
    1,400
    From the ETK's materials.cs
    Code:
    singleton Material(etk800_screen)
    {
        mapTo = "etk800_screen";
        diffuseMap[0] = "@etk800_screen";
        specularMap[0] = "vehicles/common/null.dds";
        diffuseColor[0] = "1 1 1 1";
        specularPower[0] = "32";
        useAnisotropic[0] = "1";
        castShadows = "1";
        translucent = "0";
        translucentBlendOp = "None";
        alphaTest = "0";
        alphaRef = "0";
        emissive[0] = "1";
        //cubemap = "global_cubemap_metalblurred";
        materialTag0 = "beamng"; materialTag1 = "vehicle";
    };
    Take a look at etk800.zip\lua\screens.lua to see how this texture gets created.
    Maybe someone else can help by simplifying it down to only the basics needed to display a gif.
     
    #4 mumboking, Apr 24, 2016
    Last edited: Apr 24, 2016
  5. crashmaster

    crashmaster
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    1,820
    yup, still dont know how to do this. i dont know coding. like at all. basically, jbeam is as far as my knowledge goes. i get the materials.cs, but lua and html, no clue. ill look around tho, might figure it out somehow anyways.
     
  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