Hello Guest

Author Topic: Problems with transparency  (Read 3849 times)

ShabihK

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Problems with transparency
« on: July 04, 2014, 10:45:49 am »
Hi! I'm using 2D toolkit for the animations that I make in Spine. When I want to reduce the opacity of and sprite it becomes darker that in the original animation. I think that maybe is fault of the shader and I must to use another (tk2d/BlendVertexColor). Do you have any suggestion?

This is the original animation:
https://drive.google.com/file/d/0B84ZVCD9WGl7a2JmS2hFWTdTemc/edit?usp=sharing

And this is how it look in Unity:
https://drive.google.com/file/d/0B84ZVCD9WGl7QTFTeXViSHUyWFU/edit?usp=sharing

thank you
« Last Edit: July 04, 2014, 10:49:59 am by ShabihK »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Problems with transparency
« Reply #1 on: July 04, 2014, 11:33:15 am »
tk2dBlendVertexColor simply outputs what it reads in. If you change the opacity of the sprite, more of the background will show through? Isn;t that whats happening?

ShabihK

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Problems with transparency
« Reply #2 on: July 04, 2014, 12:07:39 pm »
The Background is the one that you can see in both images. The second image I took it from Unity and it's darker that the same frame in the animator tool and I wonder why.

ShabihK

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: Problems with transparency
« Reply #3 on: July 04, 2014, 03:27:18 pm »
Ok I solved adding a new material with another shader (Spine/Skeleton) in some textures and checking pre-multiply. Thank you