Hello Guest

Author Topic: Sprite picker popup shows no sprite thumbnails  (Read 7552 times)

Zama Games

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Sprite picker popup shows no sprite thumbnails
« on: July 26, 2013, 03:06:09 pm »
Hi, on one of my projects after some time the sprite picker stopped showing sprite thumbnails. When you select a sprite in the scene, tap on the sprite thumbnail, this popup opens, allowing you to select another sprite for this game object. Atm this popup shows empty rects with checkers-style bg.

The reason might be that I am using a huge sprite collection with 400+ sprites which is also multi-atlas and stores all stuff in 21 textures, 1024x1024. However, even if I select sprites from different sprite collections, but in the same project, the thumbnails still don't show.

This problem slows down my work now significantly, since it was so much easier to find sprites by looking at the pictures, not just reading names..

I am using the 2.0 version, just re-imported 2dToolkit and the problem is still there.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #1 on: July 26, 2013, 03:13:41 pm »
What platform have you selected? Do you have any graphics emulation mode set?

Zama Games

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #2 on: July 26, 2013, 03:19:23 pm »
Target platform was Mac, now I switched to Android and the thumbnails still don't show. I am on a Windows machine.
What is graphic emulation mode? Where does one set it?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #3 on: July 26, 2013, 03:20:31 pm »
Edit > Graphics Emulation

Zama Games

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #4 on: July 26, 2013, 03:24:00 pm »
Ok, found the reason: if the option "Use Direct3D 11" for Standalone builds, the thumbnails aren't shown.
The graphics emulation was OpenGL ES 2.0
I turned off "Use Direct3D 11", and it now shows fine. Strangely enough, this problem happens even if the target is Android.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #5 on: July 26, 2013, 03:25:02 pm »
I'll take a quick look at this. Unity 4.2?

Zama Games

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #6 on: July 26, 2013, 03:27:55 pm »
Yes. Also, just checked, I have DirectX 11 installed. In the window title of Unity, while "Use Direct3D 11" was checked, it showed
"DX11 on DX9 GPU"

Actually, I have Unity 4.15f1. Just checked for 4.2, nope, it says I have the latest Unity version.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #7 on: July 26, 2013, 03:31:02 pm »
Oh. Could be a bug with DX11 running on DX9 hardware? What gfx card are you using?

Zama Games

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #8 on: July 26, 2013, 06:02:48 pm »
It's AMD Radeon HD 7670M

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #9 on: July 26, 2013, 06:14:58 pm »
What does it actually draw on your computer? Nothign at all? Pink boxes? Does it draw pink boxes if you set emulation mode to directx7 (it should)?

Zama Games

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #10 on: July 26, 2013, 07:25:11 pm »
Indeed, with DirectX 7 emulation it draws Pink boxes. But in that case of mine it was just empty, i mean checkerboard white/gray and no sprite over it.

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #11 on: July 26, 2013, 07:27:03 pm »
How bizarre. I've not seen this issue on any config so far. Do you have access to any other computers? If you do, can you please try your project on another install - I'm hoping something got corrupted in your install...

Zama Games

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 13
    • View Profile
Re: Sprite picker popup shows no sprite thumbnails
« Reply #12 on: July 26, 2013, 08:05:26 pm »
I have a MacBook as well, and haven't seen the issue there. Anyway, I'll let you know if I get any other info. May be just some issue with my graphic card or the drivers for it.