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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Issue with showing the entire model in play mode, Game /AR view (both Unity and Built version)

Discussion in 'AR' started by miladhsh90, Aug 10, 2022.

  1. miladhsh90

    miladhsh90

    Joined:
    Aug 3, 2022
    Posts:
    4
    Hi,

    I am building a simple AR prototype to visualize a building which is somehow big!
    As you can see in the screenshot, it just renders part of the model close to the camera in unity or camera of my tablet. Even when I change the clipping plane (Far) nothing happens! The model is not very huge as I remember I tried a bigger model before with ARCore! but with AR Foundation I have this issue!
    I highly appreciate if anybody help me solving this issue!

    The screenshot is attached to the link https://ufile.io/p79vw9ps as I couldn't directly upload it here.
    Thanks
     
    Last edited: Aug 10, 2022
  2. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    4,455
    1. Please use free sites which don't tell people to buy premium if you upload stuff externally

    2. I don't see anything really. Does it show up properly in the scene view? If so, could you screenshot that?
     
  3. miladhsh90

    miladhsh90

    Joined:
    Aug 3, 2022
    Posts:
    4
    Thank you for your reply.
    Actually it works in the scene view but has this issue in the Game and also built environment in AR. It only shows part of the model where it is close to the pivot (world origin). As you see in the screenshot, I am moving the model and it just shows part of it in the game view.

    https://ibb.co/TWwt7rq
    https://ibb.co/bd58NLc
     
  4. miladhsh90

    miladhsh90

    Joined:
    Aug 3, 2022
    Posts:
    4
    Just an update:
    I tried to change the Depth from -1 to 0 and kind of fixes it in the game view but having skybox. which doesn't work in AR because it doesn't show the environment. Even when I change the flag from Skybox to Depth only (and don't clear), it doubles the model as you see in the screenshots:

    https://ibb.co/Bs5Q3p2
    https://ibb.co/Wg56C6c
     
  5. miladhsh90

    miladhsh90

    Joined:
    Aug 3, 2022
    Posts:
    4
    Ok, I found the issue. Actually there are two cameras and the one that controls AR had issue with far clipping (which I didn't know there are two) and just solved it. Thanks