Solved Interior Camera Base Rotation

Discussion in 'Mod Support' started by Solarpower07, Sep 3, 2023.

  1. Solarpower07

    Solarpower07
    Expand Collapse

    Joined:
    Mar 12, 2018
    Messages:
    498
    Hello. This has bothered me for a while with all of my mods, so right now it is not specifically for any certain mod. The problem: there appears to not be any way to set a base rotation for interior cameras. When you have selected an interior camera, of course, you can rotate it. This rotation persists. However, when the user initially spawns the car or reloads it (ctrl +r, not just resetting it), the rotation of the camera is always forward. I am wondering if there is any way to set a starting rotation for a camera, that way, on initial spawn or reload, the camera starts off facing in that specific direction.

    There are a multitude of cases that I want to be able to use interior cameras for (my NASCAR mods) that require a base rotation:

    - Rear bumper camera (facing back)
    - Cockpit camera (placed on the dashboard, facing the driver)
    - Side camera (placed on the dashboard, facing out of the right side window)
    - Inside camera (placed on the right side of the dashboard, facing front and slightly left)


    Please let me know if this is currently possible, and if it is, how to do it! If not, I hope this feature can be added in a future update.
     
  2. gscare10

    gscare10
    Expand Collapse

    Joined:
    May 19, 2020
    Messages:
    40
    the relative camera will work. It starts out on the hood of most cars and then you can move it around with WASD. it seemed to stay wherever I left it after a reset but you have to move it to each spot individually though. it stays fixed to the vehicle though so I think it would probably do what your looking to accomplish
     
  3. Solarpower07

    Solarpower07
    Expand Collapse

    Joined:
    Mar 12, 2018
    Messages:
    498
    I don't just mean for my session, I mean built into a mod. Meaning anyone who loads up the mod will have the specific interior camera start at the defined rotation.
     
  4. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,415
  5. Solarpower07

    Solarpower07
    Expand Collapse

    Joined:
    Mar 12, 2018
    Messages:
    498
    Thank you, I will try that!

    Also, is that documentation section new? I swear I couldn't find it this morning.
    --- Post updated ---
    This is weird. It changes something, but when I try to switch to that camera, it throws this error and the camera does not work:
     
  6. Agent_Y

    Agent_Y
    Expand Collapse
    Jbeam/QA support
    BeamNG Team

    Joined:
    Jul 10, 2020
    Messages:
    10,415
    You must have messed up the syntax, most likely you forgot a colon somewhere which is a common mistake with these cameras. This section of documentation is at least 2 years old by now, recently it was updated it seems, but the info about camera refnodes has been there the whole time.
     
  7. Solarpower07

    Solarpower07
    Expand Collapse

    Joined:
    Mar 12, 2018
    Messages:
    498
    This is weird. It changes something, but when I try to switch to that camera, it throws this error and the camera does not work:
    This is what I have in terms of syntax:

    --- Post updated ---
    Ah. Now I see. The "IdRef", "IdBack", and "IdUp" need to have colons after them because they point to nodes. I see what you were saying.

    Now that I have fixed it, it works properly! Thank you!
     
  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