Unsolved Definitive listing of animation sources for props (func)?

Discussion in 'Mod Support' started by fufsgfen, Jan 9, 2018.

  1. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,781
    I'm interested mostly from needle animators for gauges, however it would be nice to have a full list in one place, anyone has such list?

    For needles I'm aware of these that work:
    wheelspeed
    rpm
    fuel
    turboBoost
    oiltemp
    oil
    watertemp

    Then some other:
    gear_M
    gear_A
    clutch
    brake
    throttle
    turnsignal
    parkingbrake
     
  2. psy_lo

    psy_lo
    Expand Collapse

    Joined:
    Jul 3, 2015
    Messages:
    223
    clock

    screenshot_00011.png
     
  3. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    There is no absolute list, it's everything in electrics (which varies based on vehicle, mods, etc)
     
  4. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,781
    Does this mean that any variable in values.electrics could be used as an needle animation source?

    For example func turboBoost works, but turboTemp does not.

    Semi uses func gear_M, but none of lua contains such (only one commented out line).

    I would like to get exhaustTemp, but I guess that would need some lua being made that turns electric servo according to that variable, somehow?

    What I can't find is also where is for example that servo or something that makes for example semi's rpm needle to turn according to variable rpm.
     
  5. psy_lo

    psy_lo
    Expand Collapse

    Joined:
    Jul 3, 2015
    Messages:
    223
    I try to
    I try a bit to connect a needle with the brake's pressure, like druck press...same in bmw or nineoneone! but not working now, to be continued!

    Following picture with gauge completely designed from scratch (in 2-3 hours min) with Gimp and Blender
    by the way fully customizable and HD! but druckpress not working yet!
    screenshot_00049.png btb_rsr_gauges_gimp.jpg
     
  6. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Using just "brake" should probably work for that.
     
  7. psy_lo

    psy_lo
    Expand Collapse

    Joined:
    Jul 3, 2015
    Messages:
    223
    Thank you for the tip!

    possibly I already tried ...but I must shortly check that once again!
     
  8. Diamondback

    Diamondback
    Expand Collapse
    Vehicle Systems Lead
    BeamNG Team

    Joined:
    Apr 8, 2014
    Messages:
    1,966
    Basically, yes.
     
  9. psy_lo

    psy_lo
    Expand Collapse

    Joined:
    Jul 3, 2015
    Messages:
    223
    Yes! It is working with "brake", thank you. I did it like this at first attempt, but confused others values like "rotation" "min", "max", "offset" were not right. Remains to calibrate the needle now!

    I would like to know about "offset" value, because I can't found in the wiki an explanation that allows me to fully understand the function... some clarifications are welcome!
     
  10. fufsgfen

    fufsgfen
    Expand Collapse

    Joined:
    Jan 10, 2017
    Messages:
    6,781
    Offset, it is bit difficult to explain in a simple way, but it is how much to add to needle position so that needle is at correct position.

    Say you might have a needle showing 5 when needle should show 10, then you use offset of 5 to correct that error.

    Base rotation is starting point of needle and rotation is how much needle can rotate, but by offset you adjust needle to show correctly.

    I had to adjust y rotation and offset together to get my boost gauge to show correctly. Testing and adjusting, little by little.

    For 270 degrees sweep, min -15 pointing directly down and max 30 pointing directly to right, I got this value set:
    {"x":90, "y":0, "z":180} , {"x":0, "y":-6.10, "z":0} , {"x":0, "y":0, "z":0}, -15, 30, 14.5, 1],

    So I used offset to add 14.5 to what needle was showing, so I get needle to show correctly. I don\t know if that is related to min being -15, I would think that base rotation would be for -15, but maybe base rotation is for 0?
    --- Post updated ---
    I wish that some day they will give you time to make a tutorial of how to get any electrics value to needle rotation, that would be very cool :)
     
  11. psy_lo

    psy_lo
    Expand Collapse

    Joined:
    Jul 3, 2015
    Messages:
    223
    Thanks a lot for your explain. This help me a lot, all needles are ok now, with correct calibration, although I can't say that I exactly understood how, why!!!

    New electric props features can be "easly" added/managed through a bit of Lua script...

    ...that's right, a little wiki howto for electric values would be nice!
     
  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