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’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Flickering issue on Screen

Discussion in 'Editor & General Support' started by yellowlabrador, May 28, 2006.

  1. yellowlabrador

    yellowlabrador

    Joined:
    Oct 20, 2005
    Posts:
    562
    Hello all,

    Not sure if I can explain this properly.

    When I hit the play button to test my project I get the flickering on screen when I do a rotation of the player.

    I tried reducing all the texture to diffuse, removing any lights/self illum etc. and I still get the same problem. I tested the game with a G5, iMac and MacBook, same problem. Will be testing it on windows but I'm still waiting for it to boot!!!.

    I am attaching the demo for anybody who wants to take a look at it and let me know what it is. I don't think it's the graphics card because I tested the car playground and everything is fine.

    Use arrow keys to move forward /backward and left right arrow keys to rotate.

    Thanks for any help /suggestion or comments.,
    Ray
     
  2. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    Don't know what to tell ya.. it looks just peachy here. Tried it on my 1.25 PB at a few different resolutions/quality setting and no flicker. That's really strange that you tried it on 3 different machines with the same result and I'm not seeing it. Does this happen in Unity too or just as a build?

    [Edit] Just a thought... do mean flickering or possibly a "tearing" of the image? If it's tearing you might want to turn on VBL sync in the quality settings. VBL sync tries to match the framerate of the renderer to the refresh rate of your monitor. If these two aren't synchronized you can sometimes see a horizontal tearing of fast moving/changing images.
     
  3. NCarter

    NCarter

    Joined:
    Sep 3, 2005
    Posts:
    686
    The only thing I can see is extremely visible stepping between mipmap levels. You can see this in a few places:

    • When you slowly approach a wall with a detailed pattern, the apparent resolution of the pattern increases in sudden jumps.
    • The floor has funny zigzag stripes which move with the camera.
    • Some of the walls look magenta when viewed at a steep angle at long range!
    You might be able to fix this by selecting the offending textures and switching their filtering from Bilinear to Trilinear in the inspector. Also, check the mipmap parameters in the Settings dialog for each texture.
     
  4. yellowlabrador

    yellowlabrador

    Joined:
    Oct 20, 2005
    Posts:
    562
    @aNTENNA,

    it happens in Unity game view.

    I'ts horizontal tearing or lines when I rotate very fast.
    I think it's the refresh rate.
    How do you turn on VBL syncing?

    @Neil,

    I'm playing with the trilinear and aniso level, with a little more adjusting, I think I'll be able to fix it if not I'll try to use a different texture.

    Another question I have is,
    What is the best format to use for textures(.jpg, psd,bmp,tiff)?

    Thanks,
    Ray
     
  5. NCarter

    NCarter

    Joined:
    Sep 3, 2005
    Posts:
    686
    Any of the above. I prefer PSD, or TIFF with an embedded PSD, because both of those formats allow me to keep my Photoshop layers in the document.

    In any case, Unity automatically converts the texture to more appropriate formats behind the scenes.
     
  6. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    Seems like it. In Unity 1.2.2 you can't turn on vsync, however you will be able to do that in soon to be released 1.5 (or grab the preview now).

    For source, anything you're most comfortable with (probably that means .psd). Unity will convert to hardware friendly format and possibly compress the textures for you. The final format can be chosen in texture's import settings.
     
  7. antenna-tree

    antenna-tree

    Joined:
    Oct 30, 2005
    Posts:
    5,324
    Sorry for the confusion, jumped the gun there. But yeah, since you have so many perfectly vertical lines in your labrynth scene tearing can appear easily. There's really no workaround besides vsync.
     
  8. TheSheepdog

    TheSheepdog

    Joined:
    Apr 6, 2014
    Posts:
    6
    I'm by no means a pro but my search for an answer brought me here. Look at your camera in your Hierarchy and in the Inspector go to camera and I changed Clipping Planes to 1.0 and it stopped on mine. I know this is an old post but hopefully it will help someone.