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

Camera Culling Issue

Discussion in 'General Graphics' started by DaVeF101, Mar 2, 2016.

  1. DaVeF101

    DaVeF101

    Joined:
    Sep 7, 2014
    Posts:
    134
    Can anyone help with this? I have 2 cameras on a player. 1 displaying the scene (excluding the gun) and the other just displaying the gun (for wall clipping).

    The problem | have is when the camera is rotated down, then around on the Y Axis, the player model disappears.

    I've attached a video to demonstrate this..

     
  2. shmomo

    shmomo

    Joined:
    Oct 11, 2011
    Posts:
    127
    near clipping plane?
     
  3. DaVeF101

    DaVeF101

    Joined:
    Sep 7, 2014
    Posts:
    134
    I looked at that, both cameras are set to 0.1. Changing it didn't make a difference to the issue.
     
  4. shmomo

    shmomo

    Joined:
    Oct 11, 2011
    Posts:
    127
    Camera is going inside the player mesh?
     
  5. DaVeF101

    DaVeF101

    Joined:
    Sep 7, 2014
    Posts:
    134
    I've removed the body and head meshes now, well hiding them with a shader, but the issue is still there..

    Video..

     
  6. DaVeF101

    DaVeF101

    Joined:
    Sep 7, 2014
    Posts:
    134
    Anyone?

    This is really bugging me now as I can fix this issue.
     
  7. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    It really looks like a setting issue instead of a bug.
    Can you recreate this error in a simple scene with the lighting & camera control setup you have in the original scene?
    If you can't recreate the error without using elements from the original scene - then it's gotta be something in your original scene.
    If you can recreate this error, by setting up the camera and lighting in a new scene exactly like you have the original scene - maybe you've found a bug. Might want to bug report from the console with a new scene showing the error.
     
  8. DaVeF101

    DaVeF101

    Joined:
    Sep 7, 2014
    Posts:
    134
    Thanks for the reply. Yes, I've actually tried this: A simple scene, 1 light, no light probes or reflection probes, no networking stuff, as basic as it can get, and I still get the error.
     
  9. roka

    roka

    Joined:
    Sep 12, 2010
    Posts:
    584
    Fixe the bounds of your skinned mesh renderer of your weapon object (more bigger) or check "Update when off screen"
     
    theANMATOR2b and DaVeF101 like this.
  10. DaVeF101

    DaVeF101

    Joined:
    Sep 7, 2014
    Posts:
    134
    Hi, thank you very much. Checking 'Update When Off Screen' fixed the issue. You sir are a legend :)
     
    theANMATOR2b likes this.