Announcement

Collapse
No announcement yet.

Mixed Reality Status update

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

    #61
    Can this be done without recompiling the engine an dusing the release from Epic?

    (I mean using VIVE trackers)

    Cheers.

    Comment


      #62
      Not right now. The recompiling adds in the ability to render the quad view from texture (i think). You can use a 3rd controller and trackers, but you won't get the quad view output.

      Comment


        #63
        The 4.16 commits on github mention social screen support (running a different view on the TV) for PSVR. Haven't checked yet to see if it included anything for running a second view on the mirror viewport on Rift/Vive, but seems like it might.

        Comment


          #64
          Originally posted by tweaq View Post
          I'm not sure on that error, but did you run the Setup.bat and then the GenerateProjectFiles.bat? You also may need to install the c++ "stuff" for visual studio.
          Yes, i downloaded the 4.15 and also 4.14 source code, run the setup and projectfiles bat and tried to compile everything in Visual Studio. Without the addon everything works fine.
          Maybe "E:\GitLab\UnrealEngine-4.14\Engine\Plugins\..." is your datapath and its not updating to my path ("E:\Mixed Reality\UE 4-14\UnrealEngine-4.14.3-release\Engine\Plugins\...")?
          Im not sure how to fix this. I also tried to put everything in the same location (E:\GitLab\UnrealEngine-4.14\Engine\Plugins\...).
          The only other thing i did was to download the sourcecode for myself and not with github.

          What you mean with "install the c++ stuff"? Do i need some libaries for that, that i dont need with the normal source code?

          Thanks for your time.
          Last edited by MMS_Tester; 04-18-2017, 02:38 AM.

          Comment


            #65
            As long as you copy the mixed reality files/folders in the correct place (it should overwrite some files) then that part should be good. I had to "install c++ stuff" because i guess my visual studio did install the necessary things to compile the c++ libraries. So I think I had to create a new c++ project in visual studio, then it asked if I wanted to install the c++ stuff

            Comment


              #66
              I haven’t actually tried those demos firsthand yet, though I was super excited when they were released last year. I’m definitely not saying it’ll be a bad experience to try to hold an object that doesn’t exist, just from a cognitive perspective (which is my area) there would be some misalignment in sensory…
              Be cool!

              Comment


                #67
                Originally posted by Juangea View Post
                Can this be done without recompiling the engine an dusing the release from Epic?
                I theory it's possible to use Slate to create a new window and render to it. A freind of mine did this for a different purpose. I'll continue working on this MR-Stuff soon (next week?) and I'll try to get s solution up and running that doesn't require a custom engine version. For those interessted in my material, copy the text here: Google-Drive and just paste it in the ForwardPost-Material and should create all the nodes

                Greetings
                MeleeCampz

                Comment


                  #68
                  I´m really interested, but I would like a bit of an explanation before I try your nodes because I have a deadline near, so I´ll try to wait, but I will need to try to do it in a week or so

                  Cheers and thanks!!!

                  Comment


                    #69
                    [MENTION=624767]tweaq[/MENTION] can you provide your Steam plug-in folder that compiled? I have tried it on 4.14, 4.15 and 4.16 with no luck. I noticed all these builds have been updated within the past four months or sooner. The Mixed Reality plug-in, six months ago. I also, save the original Steam folder and placed it back into the 4.14 build and after doing a Build "clean" I was able to rebuild correctly.
                    Last edited by mebalzer; 04-25-2017, 01:45 PM.

                    Comment


                      #70
                      Originally posted by muchcharles View Post
                      The 4.16 commits on github mention social screen support (running a different view on the TV) for PSVR. Haven't checked yet to see if it included anything for running a second view on the mirror viewport on Rift/Vive, but seems like it might.
                      Any luck with this? I will delve deeper if you know this to be true. I have deadline this Friday for my show "3D in Review" and want to use some mixed reality function and sadly the compiling even in 4.14 did not work for me.

                      Comment


                        #71
                        4.16 preview is here and no mention about Mixed Reality... Zak Parrish was just live in the Unreal Engine Channel and when asked about it said that he "couldn´t tell when its coming..." That´s just said...
                        Last edited by fabito rychter; 04-25-2017, 06:43 PM.

                        Comment


                          #72
                          Originally posted by tweaq View Post
                          As long as you copy the mixed reality files/folders in the correct place (it should overwrite some files) then that part should be good. I had to "install c++ stuff" because i guess my visual studio did install the necessary things to compile the c++ libraries. So I think I had to create a new c++ project in visual studio, then it asked if I wanted to install the c++ stuff
                          I don't know if you read my other posts to this thread, but I cannot get it to compile correctly, a number of C++ errors in the SteamVR plug-in cpp and .h files that are not there with the existing build of 4.14.x from GitHub. I have been creating builds from Unreal for a few years and the problem you mentioned is due to Visual Studio not installing C++ by default, hence when you created a C++ project it gave you option to download the c++ libraries. This would have happened even with a good build. Anyway, what version of Visual Studio are you using and build of 4.14.x are you using? Plus, can you just make the new plug-in (folder) available? I am pretty sure there are no dependencies so the properly compiled plug-in should work in the place of the current SteamVR plug-in.

                          I hope you see this and can help.

                          Thanks!

                          Comment


                            #73
                            manual

                            Originally posted by mebalzer View Post
                            [MENTION=624767]tweaq[/MENTION] can you provide your Steam plug-in folder that compiled? I have tried it on 4.14, 4.15 and 4.16 with no luck. I noticed all these builds have been updated within the past four months or sooner. The Mixed Reality plug-in, six months ago. I also, save the original Steam folder and placed it back into the 4.14 build and after doing a Build "clean" I was able to rebuild correctly.
                            I got it running in 4.15 after i copy all the code for my own (marked in code with //Mixed Reality) into my running engine code. Before this i got running an early implementation from here: https://github.com/haowang1013/UE4-MixeReality
                            Its allmost the same code like this from the post here: https://github.com/richmondx/UE4-MixedReality only that richmondx add some modification to get some forground calculations.

                            You only(!) need to copy the code from SteamVRFunctionLibrary.h (...\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Classes)
                            and SteamVRFunctionLibrary.cpp, SteamVRHMD.h and SteamVRRender.cpp (...\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private)
                            and recompile everything completely new(!).

                            If you got some problems with this line (you will get problems):
                            Code:
                            RHICmdList.Clear(true, FLinearColor::Black, false, 0, false, 0, FIntRect());
                            you have to replace it with this line:
                            Code:
                            RHICmdList.ClearColorTexture(BackBuffer, FLinearColor::Black, FIntRect());
                            After compiling and seting up you scene with the blueprints (like BP_VRCapture2D)(Or first try the downloaded MR Sample), you have to set this:
                            Code:
                            [SteamVR.Settings]
                            WindowMirrorMode=3
                            in the Engine.ini file of your project.


                            Some optional stuff:
                            With the code from tweaq, you put it after "else if (WindowMirrorMode == 3){:" in the SteamVRRender.cpp,
                            Code:
                            RHICmdList.ClearColorTexture(BackBuffer, FLinearColor::Black, FIntRect());
                            			
                            			RendererModule->DrawRectangle(
                            				RHICmdList,
                            				0, ViewportHeight / 2,
                            				ViewportWidth / 2, ViewportHeight / 2,
                            				0.0f, 0.3f,
                            				0.4f, 0.4f,
                            				FIntPoint(ViewportWidth, ViewportHeight),
                            				FIntPoint(1, 1),
                            				*VertexShader,
                            				EDRF_Default);
                            you can also add the view from the vr headmount.
                            Also you need to remove RHICmdList.ClearColorTexture(BackBuffer, FLinearColor::Black, FIntRect()); in a later codeline.

                            And with the blueprint action from MeleeCampz you got some other fancy stuff.

                            cheers
                            Last edited by MMS_Tester; 04-26-2017, 03:00 AM. Reason: modifications and additions

                            Comment


                              #74
                              Here is a list of error codes I received.

                              Severity Code Description Project File Line Suppression State
                              Error Expected SteamVRChaperoneComponent.h to be first header included. UE4 D:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRChaperoneComponent.cpp 1
                              Error Expected SteamVRFunctionLibrary.h to be first header included. UE4 D:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRFunctionLibrary.cpp 1
                              Error Expected SteamVRHMD.h to be first header included. UE4 D:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.cpp 1
                              Error Expected SteamVRSplash.h to be first header included. UE4 D:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRSplash.cpp 1
                              Error (active) identifier "FLayerDesc" is undefined UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 139
                              Error (active) identifier "FLayerDesc" is undefined UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 141
                              Error (active) identifier "FLayerDesc" is undefined UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 142
                              Error (active) incomplete type is not allowed UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 34
                              Error (active) incomplete type is not allowed UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 420
                              Error (active) member function declared with 'override' does not override a base class member UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 139
                              Error (active) member function declared with 'override' does not override a base class member UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 140
                              Error (active) member function declared with 'override' does not override a base class member UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 141
                              Error (active) member function declared with 'override' does not override a base class member UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 142
                              Error (active) member function declared with 'override' does not override a base class member UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 143
                              Error (active) member function declared with 'override' does not override a base class member UE4 d:\GitHub\UnrealEngine-MixedReality\UnrealEngine\Engine\Plugins\Runtime\Steam\SteamVR\Source\SteamVR\Private\SteamVRHMD.h 144
                              Error MSB3073 The command "..\..\Build\BatchFiles\Rebuild.bat UE4Editor Win64 Development -waitmutex" exited with code -1. UE4 C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets 46

                              This was done is Visual Studio 2015 and as mentioned, swapping the original folder back in, builds properly and yes in those .cpp files the headers are in the proper order.

                              Comment


                                #75
                                Originally posted by MeleeCampz View Post
                                I theory it's possible to use Slate to create a new window and render to it. A freind of mine did this for a different purpose. I'll continue working on this MR-Stuff soon (next week?) and I'll try to get s solution up and running that doesn't require a custom engine version. For those interessted in my material, copy the text here: Google-Drive and just paste it in the ForwardPost-Material and should create all the nodes

                                Greetings
                                MeleeCampz
                                Works greatly


                                Do anyone have a idea why i got everything running in the sample project, but after i put everything in my project, the two rendered MR views are both the same?
                                I mean normaly one view (upper left) is green with the "Render CustomDepth Pass = true" marked objects included, but for me i see two times the same view with all actors (normaly only bottom right).

                                Cheers and thanks in advance.

                                Comment

                                Working...
                                X