1. Trouble with the game?
    Try the troubleshooter!

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

    Dismiss Notice

How to make the external camera stop "moving around"?

Discussion in 'General Discussion' started by MuzzleVelocity, Mar 22, 2016.

  1. MuzzleVelocity

    MuzzleVelocity
    Expand Collapse

    Joined:
    Mar 3, 2016
    Messages:
    46
    The external camera doesn't stay put, by design i suppose. Especially annoying when you reverse.

    In pickup_frame.jbeam for instance, i see where the initial position and fov of cameraExternal are defined. Is there a parameter I can add to lock its position?

    THe internal cameras work exactly how I want, and i can go into the pickup_body.jbeam and adjust the positions to put one of them exactly where i want, but, i can't change them again with out quiting the game, editting the file and reloading.

    There is an "Adjustable Camera" mod that seemed to do everything I wanted, but it only works during FreeRoam, not scenarios :-(
     
  2. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,696
    No easy way at the moment.
    There is currently some work going in the camera system though:
    http://www.beamng.com/threads/light-camera-action.22700/

    The hacky way is to go in the BeamNG.Drive directory/lua/ge/extensions/camera.lua.
    Open this with a text editor, go to line 319 and change relaxation to 0 (or what you like).
     
    #2 Nadeox1, Mar 22, 2016
    Last edited: Mar 22, 2016
    • Like Like x 1
  3. MuzzleVelocity

    MuzzleVelocity
    Expand Collapse

    Joined:
    Mar 3, 2016
    Messages:
    46
    That should work, but i can't find any file named camera.lua in that directory. I will keep looking
     
  4. BallisticDK

    BallisticDK
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    144
    But didn't tdev just port the camera to lua?, shouldn't the version of BeamNG we have use the old Torque 3D camera then?, and that's why we don't have that file?
     
  5. Nadeox1

    Nadeox1
    Expand Collapse
    Spinning Cube
    BeamNG Team

    Joined:
    Aug 5, 2012
    Messages:
    14,696
    ... Woops, wrong version of the game :p

    BeamNG.Drive/lua/vehicle/main.lua (line 188)

     
  6. BallisticDK

    BallisticDK
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    144
    Thank you.
    The camera goes nuts if camRelaxation is set to "0", but setting it to "50" makes the auto rotation, and the yaw, less controlling, which is nice.
    @MuzzleVelocity
    Setting it to, "1" will make the camera follow the car perfectly but will make the auto rotate extremely aggressive.
     
  7. mruk63

    mruk63
    Expand Collapse

    Joined:
    Aug 3, 2013
    Messages:
    1
    I can't find that in the file do you know where it is now?
     
    • Like Like x 1
  8. MuzzleVelocity

    MuzzleVelocity
    Expand Collapse

    Joined:
    Mar 3, 2016
    Messages:
    46
    not sure, but its a moot point now. the new "relative" camera mode does exactly what i had been trying to achieve. you position it relative to the vehicle, and stays exactly there.
     
    • Like Like x 1
  9. BallisticDK

    BallisticDK
    Expand Collapse

    Joined:
    Aug 4, 2013
    Messages:
    144
    The very first post in this thread from Nadeox1 should have the current file path. unless they changed it since then but i doubt it.
     
  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