Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Clipping/Sorting order on rendering issues....

Discussion in 'AR/VR (XR) Discussion' started by lmbarns, Feb 4, 2016.

  1. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    I made a new project, imported the gearvr utilities sdk pack and got the demos up and running on the gear.

    Now I'm trying to import other content into the project and use it, and the meshes are disappearing or rendering behind other meshes regardless of what layer/shader I put on them. Tried both standard, unlit texture, mobile unlit.

    If I add a skybox it renders over everything in the scene.

    In Project settings >> Editor I have Serialization set to Force Text. On the player build settings I have no compression on the meshes. Everything else is as it came with a new project set for gearVR..

    To rule out my models I downloaded stuff off the asset store and it all has the same mesh clipping/rendering issues.

    Any ideas what could cause this???? Even if I make a new camera, not the OVR rig, just a basic unity camera, it has the same issue.....

    (Video of the issue)


    EDIT:: Attached an image of just a plain Unity Camera in a new scene, no VR stuff, notice the editor view has the canyon occluding the wooden scaffolding as it goes behind it out of view, while in the camera's "Game view" it is showing the wood through the canyon mesh....
     

    Attached Files:

    Last edited: Feb 4, 2016
  2. scottb9239

    scottb9239

    Joined:
    Jan 5, 2013
    Posts:
    107
    You're not alone, have had this issue since around 5.3.1. Very odd. The entire game view's sorting is completely messed up, getting other rooms drawing on top of the room I'm in. :s
     
  3. lmbarns

    lmbarns

    Joined:
    Jul 14, 2011
    Posts:
    1,628
    I ended up file>>new project, imported my game content in, then imported VR package and it worked.

    First time I imported VR package and made builds to verify it was working, then imported game content (existing android game) and it had the sorting issue on all models, even brand new ones downloaded off the asset store.