NeckFx LUA script - VR-Stabilize

NeckFx LUA script - VR-Stabilize 0.4

Login or Register an account to download this content
UPDATE------------------

There's a new script available from @gurkesaft - which more closely represents Head Physics. It's great and has a few different settings you can tweak for driver preference. There is no lock to horizon vs car. You always move with the car and head physics are applied to stabilize the track/view.


---------------------------------
If like me you loved RHM but found it performing increasingly more poorly as CSP evolved, then you were likely excited when NeckFX came along... but alas, nothing I tried seemed to work for VR. Lock to Horizon get's us most of the way there, but I always feel a bit odd on elevation changes and banking.

So, with the aid of chatGPT, I made a NeckFX LUA script focused on VR, trying to replicate what I had with RealHeadMotion. It could likely be improved, but for now it does exactly what I've been looking for.

The script aims to mix lock to horizon and lock to car while removing sudden bumps. No G-Force influence or any of that nonsense.

There are minimal configuration options. There is a settings.ini file that doesn't appear to do anything, so just adjust the config at the top of the cockpit.lua script to your liking.

Roll and Pitch calculations get really small - down to 6 decimals. I found diminishing returns after about 4 decimal places.

Installation:
1. Download and Unzip to Assetto Corsa
(assettocorsa\extension\lua\cockpit-camera\vr-stabilize)
2. Navigate in Content Manager to CM>Settings>Custom Shader Patch>NeckFX
3. Enable and select the script.

Screenshot 2023-12-10 003345.png


My settings:
ROLL_LOCK = 0.8, -- Higher gives more car lock; lower for more horizon lock;
PITCH_LOCK = 0.9, -- Higher gives more car lock; lower for more horizon lock;
HEAD_LAG = 0.75, -- Max change per frame, lower to follow car pitch/roll more slowly. Also can effect bump and camera response if very low;
BUMP_MULTIPLIER = 0.025 -- Lower value to filter bumps, slowing camera response. Very low values will be look like lock to horizon;

Settings guide:
All settings are multipliers of each other - so you'll need to adjust to your liking. 0 roll or pitch lock will lock that axis to horizon, the more you increase car lock the more bumps are introduced. The head lag and bump multiplier work together to slow down the camera's movements during pitch and roll events - too much and it smooths the camera movements so much it may as well be lock to horizon.

As of writing, I'm running latest CSP preview 0.2.1preview2 (not sure if that makes a difference)

Make sure you are on the most recent Content Manager which exposes the script settings options.

DEMO!!

Latest updates

  1. Use AC Head Physics

    There's a new script available from @gurkesaft - which more closely represents Head Physics...
  2. DON'T use...

    EDIT: I messed something up on this version. Does not work correctly. Adjusted so that glance...
  3. Adding settings.ini and slider adjustment

    Adding settings.ini for easier tweaking to your own tastes. Renamed a couple values and added...

Latest reviews

Premium
Until today, I have found AC to be unplayable in VR on my motion rig and anything but a smooth track. The horizon jumped with every bump. With Horizon lock on it was better but not right. This little add on changed everything and now AC now works brilliantly in VR. A 5 minute fix after months of frustration. Thank you. I sent you some cash to pay for 2 weeks of good coffee:)
Just what I was looking for to save my sanity on bumpy tracks.
Excellent attempt!
Excellent stuff Jordash, many thanks for helping to unlock the enigma that is NeckFX for VR. Is the Nov 29 version still the one to download?
One request: could you please release an update with the various g-force submenus visible to give us the option to add some subtle head movement for cornering, braking and acceleration? These can add a lot of immersion in VR. I also mentioned this in the discussion. Many thanks.
so glad i finally found this
you did amazing and i can get rid of rhm now
there should be a popular youtuber talking about this
thanks so much!
Awesome, would you consider a few more settings that introduced slight tugging of the view in the direction of g-forces for hard accelerations and decelerations?
You absolutely rule. I have wanted this for years.
As a VR user RealHeadMotion was a game changer for me. Just tried this and it worked just like RHM without needing to run another app. Good job.
Excellent. Works perfectly with the out of the box config!
This is brilliant!! thank you so much Mate!!!!. Used VR for years , I just started fiddling around with neck fx because I read you could use lock to horizon more than just an on or off switch.
I was looking in discord for any clues when I stumbled across your little gem. For me it was exactly what I was looking for, individual controls that enable me to tailor my own settings to what I like. keep up the great work.
Best neckfx script IMO. Proper head movement without exaggerated effects.

I know this is for VR but support for look around function for non VR users would be great too. Thanks.
J
Jordash
I've posted an update to fix look around. not perfect compared to default, but should work well enough.
hello, this is fantastic thank you.
However, I cannot adjust the 4 values of the script setting to my taste even though everything is checked like your screenshot for update 0.4. nothing appeared ! What do you think I failed to do? Thanks for your help
J
Jordash
If you mean that you can't see the script settings in CSP/CM? If so, you need to update to the latest Content Manager version. available from github - or if you set the 'use untested version' option in setting > content manager > general > Testing access
CM v0.8.2594.39678
https://github.com/gro-ove/actools/releases
Premium
Top notch for triple screens as well!
Great stuff - works exactly as stated and is a great improvement in VR over using lock to horizon. I've found that I needed to lower the Lag and Bump multipliers a little bit for comfort, though I suspect I might be able to raise them to be a little more responsive once I get used to it.
This is a gamechanger for me, using the reverb g2. It finally feels natural how the car moves.
Thanks for the efforts.
Thanks for taking the time and creating this app. It has really helped! I ended up using W. Fox's settings from the comment section and they were spot on too! Thank you to the both of you!!!!
This is exactly what I was looking for. It's a gamechanger.
Works perfectly for non-VR aswell! Thanks again!
ROLL_LOCK = 0.5
PITCH_LOCK = 0.99
HEAD_LAG = 0.5
BUMP_MULTIPLIER = 0.08
amazing! thanks for sharing!

Latest News

Author
Jordash
Downloads
1,573
File size
3 KB
Views
10,249
First release
Last update
User rating
5.00 star(s) 18 ratings

More mods from Jordash

What's needed for simracing in 2024?

  • More games, period

  • Better graphics/visuals

  • Advanced physics and handling

  • More cars and tracks

  • AI improvements

  • AI engineering

  • Cross-platform play

  • New game Modes

  • Other, post your idea


Results are only viewable after voting.
Back
Top