Real Head Motion for rf2 rebooted 1.0.3

Hello!
Thank you very much for replying.
I've read it.
What I don't know is how and where to apply the profile to modify the cabin movement data.
 
I'm missing the exe file to configure the plugin.
I have the dll and the xml.
There is no exe file.

You should (normally) edit the game’s head physics to zero, via the game UI and/or json file.

Then the plugin config is in the xml file, as explained in the first post.

That’s it.
 
What this Apps is doing

Biological facts
The feel of equilibrium, acceleration, gravity, and so bumps are not feel by the eye but with the inner ear. Which is made of liquid and crystals in circular tunnels.

When the inner hear feels bumps and head motion, it instinctly moves your eyes to soften/filter/remove those bumps.

2 experiences to demonstrate that.
1) when put somebody on a chair, in complete dark, you film his eyes with an infrared caemras, you turn the chair, is eyes will roll too, even if he see nothing

2) this one you can do it yourself, looks at in front of you, at your screen, now shake your head, the vision will not move.

When there is conflicting information from inner hear and eye, you feel strange, it's difficult to focus on the road, and you can have nausea.

What happens in a car
When you are driving, you are looking the road, and all the bumps are filter/corrected by your inner ear, so the viewing of the track is smooth and it's the car cockpit that moving around you.

What happens in a Sim
Because you are sitting on a standing chair/seat, your head is not moving at all, so the inner ear is not working, the eye don't correct the bumps.
That's make 2 issues :
1) you can't focus on the road, the road is shaking and not smooth, it's difficult to drive
2) you can get nausea because you have conflicting information from eyes and inner ear.

How it should be in a Sim
The camera should stayed focus on the track and not locked to car cockpit,that's what my App is doing by filtering bumps and slopes.


Download
RealHeadMotionRFactor2_1.0.zip to download on my website. File is on bottom, it's a google site, so don't click the file but the down arrow on the right.

Instaltion
64bit

Just unzip archive file, then copy RealHeadMotionRFactor2_x64.dll and RealHeadMotionRFactor2.XML to rFactor2\bin64\plugins

32bit
Just unzip archive file, then copy RealHeadMotionRFactor2.dll and RealHeadMotionRFactor2.XML to rFactor2\bin32\plugins

Edition JSON file
in rFactor 2 player.JSON


Code:
"Car Vibration Mult1":0,
    "Car Vibration Mult1#":"Primary engine vibration multiplier affects position of cameras attached directly to the car",
    "Car Vibration Mult2":0,
    "Car Vibration Mult2#":"Secondary engine vibration multiplier affects orientation of cameras attached directly to the car",
    "Center Mirror Horiz":0,
    "Center Mirror Horiz#":"use Ctrl+Alt+Seat* controls to save by vehicle",
    "Center Mirror Size":1,
    "Center Mirror Vert":0,
    "Cockpit Vibration Freq1":31,
    "Cockpit Vibration Freq1#":"Primary rate of vibration affects eyepoint position (higher framerates allow higher rates)",
    "Cockpit Vibration Freq2":37,
    "Cockpit Vibration Freq2#":"Secondary rate of vibration affects eyepoint orientation",
    "Cockpit Vibration Mult1":0,
    "Cockpit Vibration Mult1#":"Primary aerodynamic vibration multiplier affects eyepoint position (base magnitude is in VEH or cockpit file)",
    "Cockpit Vibration Mult2":0,
    "Cockpit Vibration Mult2#":"Secondary aerodynamic vibration multiplier affects eyepoint orientation (base magnitude is in VEH or cockpit file)",
Put all vibration MultX to 0




Configuration
Just edit RealHeadMotionRFactor2.xml

Code:
<RealHeadMotion><!-- Type =  Inertia / LinearRegression / LockToWorldHorizon / LockToCockpit -->
    <Filter Name="PitchFilter"    Type="Inertia"    Min="0"        Val="0.99"    Glance="0.4"    Offset="-2"    />
    <Filter Name="RollFilter"     Type="Inertia"    Min="10"    Val="0.90"    Glance="0.75"    Offset="0"      />
</RealHeadMotion>

For both head/eye angle Pitch and Roll, that will be filtered, you can choose between 4 types

LockToCockpit : no filtering, the head will follow cockpit
LockToWorldHorizon : the Head angle is lock to world horizon, so if , for example, you set this type for RollFilter, the head will never roll in world coordinate, the head will stay straight
Inertia : Inertia filtering ( default ), Choose a filter Val between 0.0 and 1.0, It's my preferate choice. If you set to 0 it will be like LockToCockpit ( no filtering ) ,if you set to max 1.0 it will be like LockToWorldHorizon ( maximum filtering )
LinearRegression : another filtering, give different result. Val filter can be above 1.0

Min : if car angle is inferior than Min value, then the filter act like a LockToWorldHorizon.
Val : the filter value
Glance: the max angle glance value put same value than player.JSON ( those are default value ).
Offset : a fixed offset

the XML is read everytime you enter the track, so you can edit while in PIT.

Version
1.0.3: - DLL now load settings from same location than DLL file.
1.0.2 : - runtime library linked as static, should not need vc_redist anymore
1.0.1 : - added fixed offset param
1.0 : -rebooted version, recoded from scratch because main PC is on support, I don't have access to my main source code
- add support for 64bit version


What are the values of json file used to make the video?
 
What this Apps is doing

Biological facts
The feel of equilibrium, acceleration, gravity, and so bumps are not feel by the eye but with the inner ear. Which is made of liquid and crystals in circular tunnels.

When the inner hear feels bumps and head motion, it instinctly moves your eyes to soften/filter/remove those bumps.

2 experiences to demonstrate that.
1) when put somebody on a chair, in complete dark, you film his eyes with an infrared caemras, you turn the chair, is eyes will roll too, even if he see nothing

2) this one you can do it yourself, looks at in front of you, at your screen, now shake your head, the vision will not move.

When there is conflicting information from inner hear and eye, you feel strange, it's difficult to focus on the road, and you can have nausea.

What happens in a car
When you are driving, you are looking the road, and all the bumps are filter/corrected by your inner ear, so the viewing of the track is smooth and it's the car cockpit that moving around you.

What happens in a Sim
Because you are sitting on a standing chair/seat, your head is not moving at all, so the inner ear is not working, the eye don't correct the bumps.
That's make 2 issues :
1) you can't focus on the road, the road is shaking and not smooth, it's difficult to drive
2) you can get nausea because you have conflicting information from eyes and inner ear.

How it should be in a Sim
The camera should stayed focus on the track and not locked to car cockpit,that's what my App is doing by filtering bumps and slopes.


Download
RealHeadMotionRFactor2_1.0.zip to download on my website. File is on bottom, it's a google site, so don't click the file but the down arrow on the right.

Instaltion
64bit

Just unzip archive file, then copy RealHeadMotionRFactor2_x64.dll and RealHeadMotionRFactor2.XML to rFactor2\bin64\plugins

32bit
Just unzip archive file, then copy RealHeadMotionRFactor2.dll and RealHeadMotionRFactor2.XML to rFactor2\bin32\plugins

Edition JSON file
in rFactor 2 player.JSON


Code:
"Car Vibration Mult1":0,
    "Car Vibration Mult1#":"Primary engine vibration multiplier affects position of cameras attached directly to the car",
    "Car Vibration Mult2":0,
    "Car Vibration Mult2#":"Secondary engine vibration multiplier affects orientation of cameras attached directly to the car",
    "Center Mirror Horiz":0,
    "Center Mirror Horiz#":"use Ctrl+Alt+Seat* controls to save by vehicle",
    "Center Mirror Size":1,
    "Center Mirror Vert":0,
    "Cockpit Vibration Freq1":31,
    "Cockpit Vibration Freq1#":"Primary rate of vibration affects eyepoint position (higher framerates allow higher rates)",
    "Cockpit Vibration Freq2":37,
    "Cockpit Vibration Freq2#":"Secondary rate of vibration affects eyepoint orientation",
    "Cockpit Vibration Mult1":0,
    "Cockpit Vibration Mult1#":"Primary aerodynamic vibration multiplier affects eyepoint position (base magnitude is in VEH or cockpit file)",
    "Cockpit Vibration Mult2":0,
    "Cockpit Vibration Mult2#":"Secondary aerodynamic vibration multiplier affects eyepoint orientation (base magnitude is in VEH or cockpit file)",
Put all vibration MultX to 0




Configuration
Just edit RealHeadMotionRFactor2.xml

Code:
<RealHeadMotion><!-- Type =  Inertia / LinearRegression / LockToWorldHorizon / LockToCockpit -->
    <Filter Name="PitchFilter"    Type="Inertia"    Min="0"        Val="0.99"    Glance="0.4"    Offset="-2"    />
    <Filter Name="RollFilter"     Type="Inertia"    Min="10"    Val="0.90"    Glance="0.75"    Offset="0"      />
</RealHeadMotion>

For both head/eye angle Pitch and Roll, that will be filtered, you can choose between 4 types

LockToCockpit : no filtering, the head will follow cockpit
LockToWorldHorizon : the Head angle is lock to world horizon, so if , for example, you set this type for RollFilter, the head will never roll in world coordinate, the head will stay straight
Inertia : Inertia filtering ( default ), Choose a filter Val between 0.0 and 1.0, It's my preferate choice. If you set to 0 it will be like LockToCockpit ( no filtering ) ,if you set to max 1.0 it will be like LockToWorldHorizon ( maximum filtering )
LinearRegression : another filtering, give different result. Val filter can be above 1.0

Min : if car angle is inferior than Min value, then the filter act like a LockToWorldHorizon.
Val : the filter value
Glance: the max angle glance value put same value than player.JSON ( those are default value ).
Offset : a fixed offset

the XML is read everytime you enter the track, so you can edit while in PIT.

Version
1.0.3: - DLL now load settings from same location than DLL file.
1.0.2 : - runtime library linked as static, should not need vc_redist anymore
1.0.1 : - added fixed offset param
1.0 : -rebooted version, recoded from scratch because main PC is on support, I don't have access to my main source code
- add support for 64bit version


where the xml go?
 
@Louis In his opening Post he writes

64bit
Just unzip archive file, then copy RealHeadMotionRFactor2_x64.dll and RealHeadMotionRFactor2.XML to rFactor2\bin64\plugins

32bit
Just unzip archive file, then copy RealHeadMotionRFactor2.dll and RealHeadMotionRFactor2.XML to rFactor2\bin32\plugins

Did you do that and it doesn't work?

And maybe the Code that he posted in his opening Post, is the Code he used in the Video?
 
Last edited:
@Louis In his opening Post he writes

64bit
Just unzip archive file, then copy RealHeadMotionRFactor2_x64.dll and RealHeadMotionRFactor2.XML to rFactor2\bin64\plugins

32bit
Just unzip archive file, then copy RealHeadMotionRFactor2.dll and RealHeadMotionRFactor2.XML to rFactor2\bin32\plugins

Did you do that and it doesn't work?

And maybe the Code that he posted in his opening Post, is the Code he used in the Video?
Hi, i did not tried because i wasnt sure where the xml file would go. now im seeing and feeling a bit stupid...
Its kind amazing how i cannot see an entire file name in one sentence.
And i was about to repeat the question again because i didnt saw at first in your response, again.

My bad, thank you. Will try latter.
 
Configuration
Just edit RealHeadMotionRFactor2.xml

Code:
<RealHeadMotion><!-- Type =  Inertia / LinearRegression / LockToWorldHorizon / LockToCockpit -->
    <Filter Name="PitchFilter"    Type="Inertia"    Min="0"        Val="0.99"    Glance="0.4"    Offset="-2"    />
    <Filter Name="RollFilter"     Type="Inertia"    Min="10"    Val="0.90"    Glance="0.75"    Offset="0"      />
</RealHeadMotion>

For both head/eye angle Pitch and Roll, that will be filtered, you can choose between 4 types

LockToCockpit : no filtering, the head will follow cockpit
LockToWorldHorizon : the Head angle is lock to world horizon, so if , for example, you set this type for RollFilter, the head will never roll in world coordinate, the head will stay straight
Inertia : Inertia filtering ( default ), Choose a filter Val between 0.0 and 1.0, It's my preferate choice. If you set to 0 it will be like LockToCockpit ( no filtering ) ,if you set to max 1.0 it will be like LockToWorldHorizon ( maximum filtering )
LinearRegression : another filtering, give different result. Val filter can be above 1.0

Min : if car angle is inferior than Min value, then the filter act like a LockToWorldHorizon.
Val : the filter value
Glance: the max angle glance value put same value than player.JSON ( those are default value ).
Offset : a fixed offset

the XML is read everytime you enter the track, so you can edit while in PIT.

Version
1.0.3: - DLL now load settings from same location than DLL file.
1.0.2 : - runtime library linked as static, should not need vc_redist anymore
1.0.1 : - added fixed offset param
1.0 : -rebooted version, recoded from scratch because main PC is on support, I don't have access to my main source code
- add support for 64bit version


errr... im not understanding
in type="inertia", can i change what is quoted for (/ LinearRegression / LockToWorldHorizon / LockToCockpit) ?
can someone share an edited one so i can start viewing what can i change?
 
Hi, i did not tried because i wasnt sure where the xml file would go. now im seeing and feeling a bit stupid...
Its kind amazing how i cannot see an entire file name in one sentence.
And i was about to repeat the question again because i didnt saw at first in your response, again.

My bad, thank you. Will try latter.
You're not alone, happens to me too. :)

errr... im not understanding
in type="inertia", can i change what is quoted for (/ LinearRegression / LockToWorldHorizon / LockToCockpit) ?
can someone share an edited one so i can start viewing what can i change?

From the Description, yes, you can use 1 of the 4 Options (Inertia / LinearRegression / LockToWorldHorizon / LockToCockpit) ) for the Type= Setting.
 
Just to be more cleaar:
If i have an triple screen setup, i downt need the plugin making the view follow the steering wheel direction, right?
If i have an 3dof motion rig also i wouldnt want to make fake skakes in the screen, right?

In my scenario, i dont have a 3d0f motion rig so i need to simulate the bumps. right?
I dont have triple screen setup but i dont want to make the cockpit view to follow to where im turn into,

I definetly dont want this:

But i want the bumps and leaning the cam view based on the turns but not because the steering wheel (or maybe, i dont know), if i made my self understandble.

edit: maybe the better word is tilting instead of leaning
 
Last edited:
You're not alone, happens to me too. :)



From the Description, yes, you can use 1 of the 4 Options (Inertia / LinearRegression / LockToWorldHorizon / LockToCockpit) ) for the Type= Setting.
Thanks again :)
I will try some settings, if i mess up i can replace the file with the original. I didnt notice any change with the standard.
Cheers.

edit: it is strange, i do want the view to point to the drive line but dont want the view changed with the steering wheel. I dont know if what i want is feasible
 
@Louis I'm not sure, but maybe you mean the Value "Exaggerate Yaw" in the Player.JSON.

It is described with

Visually exaggerates the heading angle of the vehicle by rotating the head (which may improve \"feel\")

Set it to 0 to deactivate it and try out if it's that what you mean.
 
I will try randomly at first. I cant break anything with this plugin just trying settings. Thank you.
You should open a thread about your site, this is nice. Maybe enabling people to upload too if they identify properly (only some people - e.g: not me)
 
I will try randomly at first. I cant break anything with this plugin just trying settings. Thank you.
You should open a thread about your site, this is nice. Maybe enabling people to upload too if they identify properly (only some people - e.g: not me)
That Thread exists since 2015 Sharing Setups.

The Problem is, that there is clear and noticable Interest to download Setups, but not to upload them. :)
 
Well...
Thats too bad for people like me; I'm among those who only download, and I wish more people (who are capable of doing so) would upload.
 
Back
Top