Hello Guest

Author Topic: tile alpha  (Read 5384 times)

nuvorm

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
tile alpha
« on: January 24, 2013, 09:58:19 am »
This might be covered many times before.

How would i go about removing the black background for these tiles?
See my screenshot for the situation.

the spritecollection itself appears to be fine with the alpha.

http://www.nuvorm.nl/screenShotPm.jpg

Wouter

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tile alpha
« Reply #1 on: January 24, 2013, 10:05:33 am »
If you create a normal sprite from this tile, does it look correct? The tilemap uses the same code, so it is a bit weird.

nuvorm

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: tile alpha
« Reply #2 on: January 24, 2013, 10:35:07 am »
not looking correct at all.
there is something strange happening

i created a sprite from the spritesheet and it is not transparent. also it looks like it displays a double tile?
See the screenshot below:


http://www.nuvorm.nl/screenShotPmSprite.jpg

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: tile alpha
« Reply #3 on: January 24, 2013, 11:36:54 am »
What is the shader applied to this material? Also, is premultiplied ticked on the sprite collection?
Did something change to the source asset after importing?

If you can't work this out, export the sprite collection + source tilemap, and send it to support @ unikronsoftware.com if possible. Should be fairly straightforward to work it out by looking at it.

nuvorm

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 6
    • View Profile
Re: tile alpha
« Reply #4 on: January 24, 2013, 11:38:29 am »
regenerating the tilesheet and the tilemap and the tilemapdata solved the problem..
This might not be too efficient if you already had a level drawn.

premultiply was / is not ticked.
i did change the shader but set it back to tk2d/blendVertexColor.

the tilesheet png was changed from no alpha (solid) to an alpha's png. after that i was left with the black rects around some tiles.
« Last Edit: January 24, 2013, 11:43:13 am by nuvorm »