Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
space123321's avatar
space123321
Explorer
13 years ago

FPS Control support

Good morning - I am wondering if anyone can lend a hand on getting this up an running. I have downloaded the FPS Control files from the unity asset store and ran the finished scene. I have been trying numerous ways to get the OR camera attached to the player without any success.

I am able to get the warping correct however the controls are all off. I have been using the follow orientation option however again the player controls are not correct. The other issue that results is that I end up with the dual warped rift view (I see my hands seperate in the left and right views) however I also have a third pair of hands on my screen as if it is also running in regular 2d mode.

Any advise on help with this process would be greatly appreciated. I have no issues importing a separate camera or player controller into the scene, this is dealing with attaching the camera to the prefab player.

Thanks in advance!!

5 Replies

Replies have been turned off for this discussion
  • Gerald's avatar
    Gerald
    Expert Protege
    You could just piggy-back it to the normal camera and remove the "camera" component on it.

    Otherwise please add screenshots and describe the problems you have in more detail, it would be a bit too much fishing in the dark for me otherwise. ;)
  • Thanks for the response. In terms of the screen shot - see below for an example.

    I am basically replacing the main camera with the ORcamera and then adding the 'Aim at' that was originally attached to the main camera.

    The controls do not work until I set the follow orientation to player, and then I can use WASD as normal and can freely look around and down at my hands, however mouse movement will move around the 'non warp third set of hands' in all axis however the warped view hands only move along the horizon?

    Again I am totally new to this and I am just trying to get a better understanding of what is happening lol!!!

    Thanks again for any help you can provide. The FPS Control files are present in the Unity store if you want to play around with them. There is actually a cool level that you can run (not pictured here). Please also note that I have note touched anything else with this test, therefore the skybox, etcwill not be correct.
  • Oh man that third pair of hands is driving me crazy lol!!! Can't figure this out!?!?
  • Gerald's avatar
    Gerald
    Expert Protege
    I don't have time to play with the FPS control, but try not to delete the old cam but keep it (added benefit - you can easily switch from Oculus mode to normal mode and back).
    Then set the "camera" component to "inactive" and make the Oculus camera follow the old camera, not the entire FPS controller. This should help with some issues.

    Than the hand - I can only guess, but it might look for all components named "camera" and ad itself to them. I am myself a newbie to Unity - only guessing.

    Try to select those hands in the editor window and see if there is a script on them. Likely you will have to edit it.
    Or they might be used in a different script ... this means looking at every script and component in your FPS controller. The problem with using assets instead of doing them yourself is that you need to reverse engineer them - for a beginner this might be tough.
    There is the official FPS controller, that one is at least documented and there are tons of people using it, so chances are better you find infos with problems.
  • Thanks - your direction actually helped to remove the third set of hands! Here is a working demo... again this is the FPS Controler demo that is on Unity. There is still a scripting issue with the gun that will only allow it to shoot along the horizon therefore there is still work to be figured out here. Still nice to walk around a new environment.

    My xbox controller is also not working with this - using WASD and my mouse. E is to open the doors and pickup the gun.

    Basically open the door on your right, and then the door on the left. Pickup the gun and then the idea would be to shoot the lock at the end of the hallway. This is where the issue comes in as at the moment, you can't point the gun at the lock!!!

    http://www.filedropper.com/shellshocktest_1