Author Topic: Sprites display  (Read 4955 times)

elizeusz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Sprites display
« on: August 01, 2012, 01:24:08 PM »
Hi :) I am from Poland and my english is not very good anyway i need to ask question . I am using NGUI to do backround in my game and this is working vry well for me but.. if i open my project after exit unity my spritse gone i see only rectangles but no textures. Can somebody explain to me what i wrong ? This happe not all the time and i do not know why i use atlas maker and i have atlas which is png file and i can open it in PSE but i unity shader material is completly black... i used compresing.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprites display
« Reply #1 on: August 01, 2012, 04:06:16 PM »
Hit Ctrl+S. It forces Unity to update the screen.

Sometimes Unity doesn't send out an Update event after destroying things.

elizeusz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: Sprites display
« Reply #2 on: August 02, 2012, 12:30:02 AM »
Thank You for answer. Anyway that is notworking for me. But i played with compression i was using DXT5 before and averything was working fine but now my atlas must be set to trucolor or automatic 16 for display sprites not sure why... maybe this is something in the unity engine ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprites display
« Reply #3 on: August 02, 2012, 08:47:22 AM »
Maybe. DXT5 is also not available on certain platforms -- iOS for example.

elizeusz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: Sprites display
« Reply #4 on: September 14, 2012, 03:31:47 AM »
Hi Aren. I made game and it works in many mobiles phones. My friend has samsung galaxy S and when he try to play all my sprites ( which i use to backrounds ) are black.. Maybe You know what this can be ? ( he try to reinstal couple of version of android ) Interesting is that i am using in this procejct couple of atlases one is for menu and one for backrounds in game. And one for menu is normally visiible but those which are in game ( backround are completly black)

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Sprites display
« Reply #5 on: September 14, 2012, 03:48:49 AM »
Alpha clipping doesn't work on certain Android devices is my experience. So if you use that, it might be the reason. Not all doird phones support dxt5, some have powerVR graphics chips like the iOS devices, and will just not run it then.


elizeusz

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Re: Sprites display
« Reply #6 on: September 14, 2012, 04:00:57 AM »
Thanks for Your help :) my atlases are in png files then what is your sugestion for compresing them in unity ? what do You use for your projects ?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Sprites display
« Reply #7 on: September 23, 2012, 12:45:59 PM »
GUI is true color, because on iOS any compression method is shit. ;)