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

Texture/material draw distance problem with v large objects

Discussion in 'Editor & General Support' started by paulrahme, Apr 25, 2012.

  1. paulrahme

    paulrahme

    Joined:
    Apr 25, 2012
    Posts:
    17
    Hello

    I'm working on a 3D graphing application, with 10,000+ objects plotted on (large) panels, bars, etc.

    When the camera gets too far away from panels, they suddenly disappear, or at least the texture/material does.

    In the attached screenshot, the panel is at (0, 0, 0), size 1000x1000. I've managed to stop the camera at (-132, 500, -941) which is where the texture disappears.
    Clipping Planes are 0.1 and 4000.
    Material uses a 1024x1024 texture on a Diffuse shader.
    Texture Filter Mode is Bilinear, Aniso Level 1, Max Size 1024, Format Compressed.

    I have tried fiddling with all of these values, as well as changing the texture to Advanced and turning off Generate Mip Maps, but nothing stops it disappearing at this camera distance.

    Does anybody have any ideas or suggestions?

    Thanks in advance
    -Paul
     

    Attached Files:

  2. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    Is the sand texture underneath the map another plane? This looks like a Z-fighting issue. Try increasing the size of the camera's near clip plane.
     
  3. Zethariel1

    Zethariel1

    Joined:
    Mar 21, 2012
    Posts:
    439
    If the terrain beneath the panel is also at (0,0,0), they may overlap and thus cause this blending together -- try raising the panel slighty higher if what I said is true.
     
  4. paulrahme

    paulrahme

    Joined:
    Apr 25, 2012
    Posts:
    17
    Ah yes, that's it! I was so busy looking at the complex bits, I ignored the obvious.

    The sand texture is a huge textured panel, with position updating once-per-frame to keep it directly below the camera. Pausing at that point shows that it's at a height of 0.

    Thanks for the quick replies :)