Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Bad Transparency in delphix

  1. #11
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25

    Bad Transparency in delphix

    Quote Originally Posted by seiferalmasy
    Yes DrawAdd get rid of the black, displays colour of blur depending on which colour is in background but I can live with that I suppose
    Do you know why it does that?

    When you ADD an image to a surface it draws it differently then a simple draw function. It literally adds it to the existing color on the surface.

    So whats the value of Black? 0, right? R=0,G=0,B=0 is your black color.

    So lets say that you have an all red screen for simplicity. (any color or even a complex image will do) If you draw an all black image via ADD you'll not see it.

    R = 255 + 0 = 0
    G = 0 + 0 = 0
    B = 0 + 0 = 0

    See whats happening?

    You've used a glow effect so anything that is darkened it will have some transparency as if it's alpha channel were less then 255 it's self.

    Good stuff you know if you want to get into doing some neat effects later on.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  2. #12

    Bad Transparency in delphix

    Thanks all for explanations and all. I believe I still ha probs with png even in earlier relases though. Anyone got a version that they fee works properly?. Image sent to your inbox ijcro

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •