Animated Spring texture

Discussion in 'Content Creation' started by Snooplion, Jun 23, 2025 at 3:18 AM.

  1. Snooplion

    Snooplion
    Expand Collapse

    Joined:
    Mar 22, 2015
    Messages:
    6
    I've used a html texture to control the opacity of the spring wire so it does not look distorted as a flexbody. BeamNG seemingly does not like animated alpha clipping. I'm stuck with alpha blend "add". White is the only color that keeps it opaque where it needs to be. I've tried the other alpha blend modes but they don't look right.

    I'd appreciate if someone helped me find a workaround.

    One idea was to make a Shader override to allow html textures to use an alpha channel

    How it works: Lua gets the distance between ["sp","sp2"]. The distance modulates the scale of a rectangle in svg.
    --- Post updated ---
    It turns out I just needed to use alpha clipping and ensure the svg has an alpha channel.
    --- Post updated ---
    I figured It out. I just needed to use alpha clipping and ensure the svg has an alpha channel
     

    Attached Files:

    • springtest.gif
    • springtest2.gif
    • material_setup.png
    • springworking.gif
    #1 Snooplion, Jun 23, 2025 at 5:55 AM
    Last edited: Jun 23, 2025 at 3:41 AM
  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