Search Unity

Texture drawing error on Windows

Discussion in 'Immediate Mode GUI (IMGUI)' started by JohnyZuper, Mar 13, 2008.

  1. JohnyZuper

    JohnyZuper

    Joined:
    Jan 7, 2008
    Posts:
    174
    Textures rendered through the GUI system appear corrupted on Windows while they look fine on OSX. Please see the attached picture.

    This happens with GUI.DrawTexture as well as with GUIText. Any idea what causes this and how to fix it?

    Compression of the images doesn't make a difference. It may have something to do with alpha transparency. Some pictures look better if I don't fade them in and out (and use Graphics.DrawTexture instead, without a Material). But that doesn't apply to the GUIText, which is not faded at all. I'm using the Transparent/VertexLit shader for the GUIText because the letters have multiple colours. And Pixel Correct is turned off.
     

    Attached Files:

  2. Alpha-Loup

    Alpha-Loup

    Joined:
    Jun 23, 2006
    Posts:
    797
    I cant help you with your problem, but i just wanted to inform you, that "tot" means "dead" in german... just in case you want to publish in germany ;)
     
  3. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    The best would be to make just a minimal project (with texture and a scene that shows the issue) and report a bug with that (Help -> Report problem menu). And let us know on what PC this does not work (graphics card, OS version).
     
  4. AngryAnt

    AngryAnt

    Keyboard Operator

    Joined:
    Oct 25, 2005
    Posts:
    3,045
    Aras:

    Quick thought. Why not make a bug reporter for windows? This would make sure you're getting all the information that you need about the system where a problem occurs without pulling the developer through a lengthy process of gathering information.
     
  5. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    There is a bug reporter on Windows, installed with the web player. But that one does not support attaching files (we had to keep it small; as web player size is important...). When we'll have Windows editor I assure you that we'll have full bug reporter there as well.
     
  6. JohnyZuper

    JohnyZuper

    Joined:
    Jan 7, 2008
    Posts:
    174
    We have encountered this same error recently on a MacBook Pro, while it hadn't occured on our iMac or our MacBook.

    I plan on making a small sample application.
     
  7. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    I'm seeing similar Problems here on my MacBook Pro, and while I'm still working on isolating a small reproducable case, I'm pretty sure, the problem is related to RenderTetxures. When I create a scene with no RenderTextures (as counted by Unity's stats screen), then I never get these errors.
     
  8. jonas-echterhoff

    jonas-echterhoff

    Unity Technologies

    Joined:
    Aug 18, 2005
    Posts:
    1,666
    Ok, just sent in a bug report with a minimal project. Actually, it seems that a single GUI.DrawTexture call, and a camera with a Glow Effect attached are enough to trigger the problem here.