Analogue look left/right/up/down auto center solution.

Make your game even better
User avatar
BenganJ
Moderator
Posts: 9919
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: Analogue look left/right/up/down auto center solution 1.37 & 1.38

Post by BenganJ » September 4th, 2020, 1:52 am

@danilozxf

Do you have a webcam? If you watch the video I posted, up in the left corner you can
see my headmovement and what I use to register the movement. I use an Aruco pattern
printed on white paper, then mounted on a cardboard and fixed on a regular cap. The
webcamera I use is a cheap one, Sony PS#Eye, and I already had it, so that solution
didn't cost me much at all to construct!

You can read about that solution and about many, many other ways of getting headtracking
here: viewtopic.php?p=799#p799
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
danilozxf
PPM
Posts: 44
Joined: July 29th, 2020, 12:19 am

Re: Analogue look left/right/up/down auto center solution 1.37 & 1.38

Post by danilozxf » September 7th, 2020, 2:44 am

Hi @BenganJ

I don't have a webcam, but I found a solution, a plugin that does exactly what I wanted.

I playing with xbox one controller

Watch the video below

System: Windows 10
Processor: Ryzen 5 3600
Memory: 16GB
Graphics: Gigabyte RTX 2070 3 Fans
https://www.youtube.com/channel/UCu7qwY ... 0uw/videos
User avatar
BenganJ
Moderator
Posts: 9919
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: Analogue look left/right/up/down auto center solution 1.37 & 1.38

Post by BenganJ » September 7th, 2020, 3:19 am

@danilozxf

Yes, that's the main movement you need and is called a 1 DOF one. The one I use is a 6 DOF, i.e.
I can rotate horizontally (yaw), rotate vertically (pitch), rotate left/right (roll), translate sideways,
translate forward/backward and translate up/down. The game doesn't allow rotate left/right, so
I can only use 5 of 6 though! Can you provide a link to that plugin? Others might be interested too!
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
danilozxf
PPM
Posts: 44
Joined: July 29th, 2020, 12:19 am

Re: Analogue look left/right/up/down auto center solution 1.37 & 1.38

Post by danilozxf » September 7th, 2020, 6:25 am

Of course @BenganJ

Follow the original link of the author and his credits

https://github.com/Hary309/Smooth-Inter ... to-install

You can edit the speed in the configuration file that is generated in the plugins folder that must be created
System: Windows 10
Processor: Ryzen 5 3600
Memory: 16GB
Graphics: Gigabyte RTX 2070 3 Fans
https://www.youtube.com/channel/UCu7qwY ... 0uw/videos
User avatar
JHTrucker
Expert
Posts: 1329
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Analogue look left/right/up/down auto center solution 1.37 & 1.38

Post by JHTrucker » September 7th, 2020, 3:28 pm

@BenganJ
The game does support 6 DOF, it's just that scs prevent us from using it by default... just like window blocking... except "roll" is easy to enable.

Look at my "walk around" post and scroll to tweaking section at the bottom:
viewtopic.php?p=27506#p27506

Controls.sii
If you're a Trackir user and didn't know you can have "roll" in cab for all 6DOF, then do this:
config_lines[53]: "constant c_ht_roll 0.000000" <-- Set to "1.0" for roll & "0.0" when you don't like it.
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR edits: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
User avatar
BenganJ
Moderator
Posts: 9919
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: Analogue look left/right/up/down auto center solution 1.37 & 1.38

Post by BenganJ » September 7th, 2020, 3:31 pm

@JHTrucker

Damn you, here I have thought all the years I've used headtracking that 'roll'
isn't at all implemented by SCS. Now you tell me! Well, thanks anyway, Master
of CONTROLS.SII! :good2: :victory:
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
JHTrucker
Expert
Posts: 1329
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Analogue look left/right/up/down auto center solution 1.37 & 1.38

Post by JHTrucker » September 7th, 2020, 3:42 pm

@BenganJ

If you compare pitch with roll:

config_lines[252]: "mix headtrpitch `sel(trackiron, trackirpitch, 0) + sel(hmdon, hmdpitch, 0) + sel(eyeposon, eyepospitch, 0)`"

config_lines[253]: "mix headtrroll `sel(trackiron & c_ht_roll, trackirroll, 0) + sel(hmdon, hmdroll, 0) + sel(eyeposon, eyeposroll, 0)`"

You can see that scs added "& c_ht_roll" to the roll line to prevent it working when c_ht_roll is at default "0".

But now that Tobii Eye is in game... they add a tick box to the Tobii Eye menu so Tobii Eye users can "roll" but still they leave Trackir users in the dark.
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR edits: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
User avatar
BenganJ
Moderator
Posts: 9919
Joined: December 15th, 2018, 11:54 am
Location: Gothenburg, Sweden

Re: Analogue look left/right/up/down auto center solution 1.37 & 1.38

Post by BenganJ » September 7th, 2020, 3:46 pm

@JHTrucker

Yes, I saw that when I promptly changed c_ht_roll to 1.0000! I must
admit, I haven't looked very much in the controls.sii file earlier, only
to edit the headtracking side and forward/backward movements, if
you remember that. You have really opened my eyes a lot more on
that file.
---------------------------------------------------------------------------------------------------------------------------------------------
System: Windows 8.1
Processor: Intel Core i7-4790@
Memory: 16GB
Graphics: ASUS GeForce GTX1660Ti
Image
User avatar
JHTrucker
Expert
Posts: 1329
Joined: February 7th, 2020, 3:19 pm
Location: UK

Re: Analogue look left/right/up/down auto center solution 1.37 & 1.38

Post by JHTrucker » September 7th, 2020, 6:35 pm

@danilozxf
I've added your preferred method as a link to your post in my first post in case others would like that also.
multimon_config.sii files: viewtopic.php?p=17658#p17658
controls.sii edits: viewtopic.php?p=24744#p24744
TrackIR edits: viewtopic.php?p=46613#p46613
Extra Cameras: viewtopic.php?p=46034#p46034
Post Reply