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. Voting for the Unity Awards are OPEN! We’re looking to celebrate creators across games, industry, film, and many more categories. Cast your vote now for all categories
    Dismiss Notice
  3. Dismiss Notice

Drawing Error?

Discussion in 'General Graphics' started by matthewsutherlandnz, Mar 11, 2018.

  1. matthewsutherlandnz

    matthewsutherlandnz

    Joined:
    Mar 2, 2018
    Posts:
    2
    Hi there, I have been building a simple game. Two sets of cubes repeatedly scale upwards. After adding a basic GUI I noticed that the cubes are drawing strangely on both sides. I haven't been able to figure out a fix yet. It reminds me of clipping issues when rendering in Maya with clipping planes set incorrectly.

    The red bars are solid simple cubes (3 cubes overlapping) with specular shader, no maps attached. Orthographic camera.

    Any ideas?
     
  2. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,230
    What are you expecting to see?

    My guess is you're seeing z fighting. The solution: Don't overlap the cubes!
     
    theANMATOR2b likes this.
  3. matthewsutherlandnz

    matthewsutherlandnz

    Joined:
    Mar 2, 2018
    Posts:
    2
    Yeah that sounds like the issue to me also. I'm just curious about why it became an issue suddenly. Thanks