1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

AMS1 working in VR

Discussion in 'Automobilista - General Discussion' started by mr_belowski, Nov 29, 2020.

  1. mr_belowski

    mr_belowski Active Member

    Joined:
    Jun 19, 2016
    Messages:
    166
    Likes Received:
    195
    Post with beta version here: AMS1 working in VR

    Hi folks,

    I know VR support for AMS1 has been discussed before, but a couple of the guys on the Crew Chief team have done some magic. Their plugin intercepts the render calls to apply VR tranforms then renders the resulting image to a Dx11 surface. The plugin then moves the camera position to get the other eye and repeats the process before sending the result to SteamVR.

    All this means that AMS1 can run in VR with full head tracking and stereo 3D so it's completely indistiguishable from a native VR implementation. And because AMS1 uses a forward renderer with few modern post-processing tricks and proper multi-sample AA, the result is a very crisp and clean VR image.

    Anyway, it's work in progress but we're planning to release something very soon. The Stadium Trucks are particularly great in VR



    and the Marcas touring cars rock too

     
    Last edited: Dec 10, 2020
    • Winner Winner x 23
    • Like Like x 5
    • Friendly Friendly x 1
    • Optimistic Optimistic x 1
  2. DaVeX

    DaVeX AMSUnofficial Staff Reiza Backer

    Joined:
    Mar 8, 2016
    Messages:
    1,703
    Likes Received:
    827
    that rocks!!!
    As far as I remember Reiza tried to implement VR but they didn't find a way (or someone able to do that). Would be great if you guys can get in touch with @Renato Simioni and maybe release a community patch or whatever to add this to AMS (maybe on config tool tagged as experimental).
    Please keep us updated!
     
    Last edited: Nov 29, 2020
    • Agree Agree x 1
  3. Marius H

    Marius H Well-Known Member Reiza Backer

    Joined:
    Mar 24, 2016
    Messages:
    3,334
    Likes Received:
    1,376
    Holy ..... thats awesome.
     
  4. Terje Helle

    Terje Helle Member Reiza Backer

    Joined:
    Jun 30, 2019
    Messages:
    38
    Likes Received:
    7
    This is AWESOME!!! I’m exited and can’t wait to try it out in VR!!!
     
  5. DaVeX

    DaVeX AMSUnofficial Staff Reiza Backer

    Joined:
    Mar 8, 2016
    Messages:
    1,703
    Likes Received:
    827
    Let me tag @Domagoj Lovric too on this, not only Renato, maybe they can help with the game's source part.

    @mr_belowski there is a forum thread or external link to follow the project?
    It's me or mirrors are working too?
    Can you post a vid featuring another car like Marcas or Mini...in order to check how mirrors behave?
     
    Last edited: Nov 29, 2020
  6. mr_belowski

    mr_belowski Active Member

    Joined:
    Jun 19, 2016
    Messages:
    166
    Likes Received:
    195
    mirrors work as they're just part of the rendered surface. They're not positionally tracked or stereoscopic, just normal 2D mirrors. There's no link to the source or project status, this is currently at the internal tinkering phase.

    I'll do a quick n dirty video of some other cars shortly
     
    • Like Like x 2
  7. mr_belowski

    mr_belowski Active Member

    Joined:
    Jun 19, 2016
    Messages:
    166
    Likes Received:
    195
    here's how it looks in the Marcas cars (which work will in VR because you can actually see out of them, unlike the flat screen version):



    I left the frame timing widget open by accident, while this test was perfectly smooth in the headset, I don't think the frame timing shown there necessarily reflects the actual frame times when doing these render-to-Dx11-surface software gymnastics
     
  8. mr_belowski

    mr_belowski Active Member

    Joined:
    Jun 19, 2016
    Messages:
    166
    Likes Received:
    195
    on a related note, does anyone know how to lock the player's view point to the inside of the car, so the head is 'attached' to the back of the driver's seat? No matter what settings I change and edits I make, there's always a 'lock to horizon' effect where the driver's viewpoint pitches slightly to keep the horizon in view when going up or down a steep hill. For VR we really don't want this
     
  9. Heppsan

    Heppsan Member Reiza Backer

    Joined:
    Aug 20, 2016
    Messages:
    33
    Likes Received:
    6
    This is awesome!! Sadly I can't get my Heusinkveld Ultimates to map in AMS1.. .:(
     
  10. DaVeX

    DaVeX AMSUnofficial Staff Reiza Backer

    Joined:
    Mar 8, 2016
    Messages:
    1,703
    Likes Received:
    827
    I can ask to a couple of friends which are working on AMS mods if they know about it.
    As side note, AMS works flawlessly with EdTracker, TrackIR and such and the point of view is always working as should be when attached to player model head, no idea if worth a look or I am correct but I thinked was worth mentioning that.

    You can also join our discord to get in touch with them, link on signature.
     
    Last edited: Nov 30, 2020
  11. DaVeX

    DaVeX AMSUnofficial Staff Reiza Backer

    Joined:
    Mar 8, 2016
    Messages:
    1,703
    Likes Received:
    827
    About looking out of the car model you noticed on Marcas...was occurring when moving your head on the sides?
    To be more precise when using tracker devices I allow only pitch, roll, yaw and disable forward/back and left/right.

    I do this for 2 reasons:
    - I found forward/back and left/right disturbing while driving
    - if both are active but not properly set (curves) you move too much and if you move left/right you will exit the car model or even worse see through it with forward/back on.

    Here a vid as example how it works for me:


    Ideally curves should be set in order to avoid fastest and bigger movements and be as in the real life limited by driver position and neck (or as you said the driver head should be attached to seat) lol

    Hope makes sense :p
     
    Last edited: Nov 30, 2020
  12. DaVeX

    DaVeX AMSUnofficial Staff Reiza Backer

    Joined:
    Mar 8, 2016
    Messages:
    1,703
    Likes Received:
    827
    How many devices connected?
    Feel free to DM me and maybe I can help you...
     
    Last edited: Nov 30, 2020
    • Friendly Friendly x 1
  13. DaVeX

    DaVeX AMSUnofficial Staff Reiza Backer

    Joined:
    Mar 8, 2016
    Messages:
    1,703
    Likes Received:
    827
    More I look at this...

    ...more I think your issue could be more related to "center view" than "lock to horizon"...

    I don't know if placebo or not but looks like visual snaps to center...like the game recognize VR movements as joystick/pad movements (once there is no imput it goes back to center view, in this case looks like the game reads VR movements as small fast joystick/pad imputs) than TrackIR/FreeTrack ones...

    Also the vid looks less smooth than previous one, can the hud be the cause?
     
    Last edited: Nov 30, 2020
  14. Ernie

    Ernie Active Member Reiza Backer

    Joined:
    Mar 8, 2016
    Messages:
    241
    Likes Received:
    122
    .... And 5 days ago i uninstalled AMS1, because i don't drive without VR anymore.:rolleyes:;)
     
    • Agree Agree x 1
    • Funny Funny x 1
  15. Neawoulf

    Neawoulf Advanced Casual Racer Reiza Backer

    Joined:
    Mar 29, 2019
    Messages:
    88
    Likes Received:
    77
    This sounds awesome! As much as i like AMS 2, but AMS 1 still feels overall a lot more polished.
     
  16. Fabian Biehne

    Fabian Biehne Well-Known Member Reiza Backer

    Joined:
    Apr 25, 2016
    Messages:
    295
    Likes Received:
    258
    Really exciting news, looking forward for more information. :)
     
  17. Salvatore Sirignano

    Salvatore Sirignano Active Member Reiza Backer

    Joined:
    Sep 14, 2017
    Messages:
    146
    Likes Received:
    65
    Really great news, if/when this gets released I will rebuy a VR headset for sure! :eek: It would be great to see official support given to it, but with AMS not officially supporting modding I would be surprised if that were the case...
     
  18. mr_belowski

    mr_belowski Active Member

    Joined:
    Jun 19, 2016
    Messages:
    166
    Likes Received:
    195
    Here's our AMS 1 VR implementation. First up, I have to be clear that all the credit for this goes to Sparten and The Iron Wolf who've done all the work on this, I'm just a fascinated spectator here.

    http://crewchief.isnais.de/AMS_VR_beta.zip

    Installation instructions are in the readme file in the .zip.

    This is a work-in-progress and there are a couple of small issues with it but we think it's pretty solid. However, it's worth mentioning that when you're developing and testing something like this you get a bit immune to small problems with head-tracking and eye-convergence. So we'd like to hear your experiences, even if they're hard to put into words (VR can be like that - a general feeling of something being 'off' but it's difficult to know what's actually wrong).

    Performance is pretty good but it's obviously a lot more demanding than pancake-mode. You'll have to experiement a little here - I recommend using 4xMSAA from the config app then adjusting settings to get a decent frame rate.
     
    • Winner Winner x 19
    • Like Like x 1
  19. Marius H

    Marius H Well-Known Member Reiza Backer

    Joined:
    Mar 24, 2016
    Messages:
    3,334
    Likes Received:
    1,376
    at Reiza-HQ:
    [​IMG]
     
  20. Neawoulf

    Neawoulf Advanced Casual Racer Reiza Backer

    Joined:
    Mar 29, 2019
    Messages:
    88
    Likes Received:
    77
    Can't wait to properly test this later. I just read the readme file, but is there any way to recenter the VR headset ingame? And if yes: Can we assign that function to another key on the keyboard or maybe a button on the wheel?

    *edit* Found it! Seems like it's 5 on the numpad, but haven't tested it yet.
     

Share This Page