Announcement

Collapse
No announcement yet.

HTC Vive Template

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    HTC Vive Template

    HTC VIVE Template (soon to be general VR template)

    Howdy there!

    We already have a few templates by other community members but I'll give it a go with one I'll leave open so we can kind of turn this into a community template

    GitHub Download:
    https://github.com/CJRobertson/HTCViveTemplate-UE4


    Version 1.0

    Features:


    -Smallest VR Project EVER: So far the total project size is about 6MB, WHAT?!

    -Preset Rendering Settings: Don't have to go into 'Project Settings' and change anything.

    -Trackpad Input Bindings included for non-room scale locomotion

    -VR-Physics World: Go have some fun with picking up and throwing objects!


    General:

    -Added HTC Vive motion controller static meshes for "hands"

    -Included the Camera Refractor and have a temporary VR "HUD" in place

    -Target Hardware: Set to mobile w/ scalable 2D and 3D (this helps you achieve 6Mb project file size)

    -Removed Starter Content to keep project as lean as possible

    Render Settings Changes:


    -Default Postprocessing Settings: All Disabled (enable if you really need them...)

    -Optimization Changes: Early Z-pass set to 'Opaque Meshes Only,' Movables in early Z-Pass enabled, Clear Scene set to 'Do Not Clear,' with Vertex Deformation and GBuffer rendertargets disabled

    -Instant Stereo Rendering: Enabled

    -Framerate Settings: Smooth rate, min 90, max 120, min desired 90 (this one is debatable depending on who you talk to)

    VR-PhysicsWorld:

    -Postprocessing volume preset (no bloom, SSRs, etc.)

    -Basic material that has been instanced

    -Physics Cube Actors to interact with (pickup, throw, etc.)



    The download link is at the top of this post. It is on a public GitHub repo and community involvement would be awesome to see. I plan on making a shooting range and a few other levels so if anyone wants to beat me to those and add them to this project (regardless of it being Vive or Oculus based) then go right ahead

    HTC Vive Installation Guide
    https://support.steampowered.com/kb_...2001-UXCM-4439

    Steam VR Quick Start:
    https://docs.unrealengine.com/latest...art/index.html

    Virtual Reality: Best Practices

    https://docs.unrealengine.com/latest...tup/index.html

    Camera Refactor
    https://docs.unrealengine.com/latest...tor/index.html

    Creating Interactions with Motion Controllers (Live Twitch Stream)

    https://www.youtube.com/watch?v=eRNtgFo6iU0

    Tom Looman-VR Templates
    https://github.com/tomlooman/VRTemplates

    Community Templates
    https://forums.unrealengine.com/show...am-VR-Template

    https://forums.unrealengine.com/show...=Vive+template
    Last edited by BananaKing932; 04-21-2016, 05:50 PM. Reason: Added more hyperlinks.
    VR Virtual Keyboard Marketplace Asset: https://www.unrealengine.com/marketp...rtual-keyboard

    #2
    This is right up my alley since I don't need teleporting functionality at all. Thanks [MENTION=20409]BananaKing932[/MENTION]
    Storyteller - An immersive VR audiobook player

    Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

    Comment


      #3
      great template! Everything works fine except for the HMD tracking, as soon as I play the template in VR the camera wont react to HMD movement, also when I put on the Vive I only see the standard Vive grid-system with Chaperone. SteamVR is installed under Plugins and the vive is working via SteamVR.

      edit: fixed it - the Problem was my secondary monitor. As soon as I unplugged him, the HMD works.
      Last edited by AlexKlwn; 04-22-2016, 07:33 AM.

      Comment


        #4
        "-Optimization Changes: Early Z-pass set to 'Opaque Meshes Only,' Movables in early Z-Pass enabled, Clear Scene set to 'Do Not Clear,' with Vertex Deformation and GBuffer rendertargets disabled"

        Could you elaborate on why these settings are optimal? I'm not questioning them, just want to know a little bit more.

        Comment


          #5
          Awesome! This is really helpful. Thanks a lot.

          Comment


            #6
            Cant get this to load on 4.11.2

            Gets to 45% initialization and hangs there indefinitely.

            Looks great though!

            Comment


              #7
              Originally posted by Springularity View Post
              Cant get this to load on 4.11.2

              Gets to 45% initialization and hangs there indefinitely.

              Looks great though!
              It's because of Instanced Stereo Rendering. It will eventually load, but it's recompiling all the shaders, so that's why it takes a while.

              Edit: Just saw you mentioned you're using 4.11.2 - not sure about that, it may have something wrong with it.
              Storyteller - An immersive VR audiobook player

              Dungeon Survival - WIP First person dungeon crawler with a focus on survival and environmental gameplay ala roguelikes

              Comment


                #8
                Great! I give it a try!

                Comment


                  #9
                  Originally posted by Springularity View Post
                  Cant get this to load on 4.11.2

                  Gets to 45% initialization and hangs there indefinitely.

                  Looks great though!
                  Give it some load times. For me (i7-5820,32GBDDR4,GTX970OC,SSD) around 30-60 Seconds with 4.11.2
                  [MENTION=20409]BananaKing932[/MENTION]: Awesome!

                  Comment


                    #10
                    [MENTION=377774]Spri[/MENTION]ng: It loaded for me eventually, after about 6-8 mins. I ran it and the tracking with head movement was working. Still compiling shaders. Thanks BK!

                    Comment


                      #11
                      I adjusted the movement. Now the movement follows the view of the camera.

                      Click image for larger version

Name:	12rhBcS.png
Views:	1
Size:	145.1 KB
ID:	1105179

                      Comment


                        #12
                        Ah ok, excellent! Will give it another go and leave it

                        Cheers!

                        Edit - Yup, loaded super fast this time, thanks all!
                        Last edited by Springularity; 04-24-2016, 09:50 AM.

                        Comment


                          #13
                          I really appreciate your work. I am having a problem though. My character is hovering a meter or so above the floor. All steam games have the proper floor level so I don't suspect it is my calibration. Any idea what could be wrong? I tried changing your character to put the camera at the bottom. I have also tried lowering the pawn in the actual scene. Nothing works.
                          Spline-Enabled Fence Pack - "Great pack, huge time-saver, top quality and enough variety to really make the assets unique." -Dark Acre Jack
                          Destructible Road Signs - "Seriously awesome. Single blueprint for pretty much all the road signs you'll ever need." -thankstipscom
                          Zipline/Teleporter/JumpPad - "This is a very flexible system for any project, and really simple to implement." -lunyBunny
                          Wooden Storage Pack - "Very good high quality assets and well worth it." -Deathweave
                          Digital Portfolio

                          Comment


                            #14
                            Originally posted by Osok View Post
                            I really appreciate your work. I am having a problem though. My character is hovering a meter or so above the floor. All steam games have the proper floor level so I don't suspect it is my calibration. Any idea what could be wrong? I tried changing your character to put the camera at the bottom. I have also tried lowering the pawn in the actual scene. Nothing works.
                            I resolved this effect by change the following settings in the VR_PlayerCharacter Blueprint: Capsule Half Height and Radius to 5 and 3 (for me). Then i can grab objects from the ground (without hit the ground with the controller).

                            Comment


                              #15
                              Sweet I will check it out. Had been doing some fiddling with another Steam VR template up on here so will compare the differences and see where best suits merging my changes.

                              Comment

                              Working...
                              X