Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Bad Transparency in delphix

  1. #1

    Bad Transparency in delphix

    This follows on from what I said in the past. The transparency of images is pretty awful in delphix. If the image has even the slightest amount of blur and isn't a sharp image there will be HUGE amount of colour still present.

    Even if you do use sharp images there is a 1 pixel outline atleast still present.

    Surely there is a way around this?

    Secondly, can someone tell me the process behind eliminating the transparent colour? I mean, if you select black to be removed, surely the programming is simple to remove all pixels which conform to that colour within a set tolerance?



    <<clearly this is useless, black is still there completely. and same with any other colour i use

    Png also have a problem with delphix, if they have transparent alpha channels. It seems to paint a background based on another jpeg/image i have in dximagelist. Bizarre, otherwise just garbles. This is apity because with PNG properly implemented I am sure we could have true transparent images in delphix.

  2. #2

    Bad Transparency in delphix

    Which version are you using? I was under the impression that with ijcro's latest undelphix version, it is possible to have such effects. Although I admit, I have not used it for a long while so I could be wrong there.

  3. #3

    Bad Transparency in delphix

    Latest verson

  4. #4

    Bad Transparency in delphix

    Indeed ijcro did great job to keep undelphix alive

    seiferalmasy: I am pretty sure that you cannot setup level of tolerance which will remove the chosen color. The other thing which comes from my experience - use only BMP files for images with transparency. Any other file type might not work (didn't work for me). I don't know maybe ijcro did something with this.

    Recently i switched form undelphix to the Asphyre and i must say its features are amazing. Check it out You can have full PNG possibilities with many levels of transparency on one image. You can change in real time the colors of your image. Very help full if you have for example a set of units designed in red color and you want it in 10 more colors for different players. Not to mention you have hundreds of FPS on average machine

    Regards,

    Wodzu

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

    Bad Transparency in delphix

    Look for a function that draws your sprite, but ADDs the image instead of simply drawing and checking for a specific color to cancel out.

    You'll get that with any library or graphics API.

    ADDing an image means that you are adding the image that is not black. This is how things like particle engines and fireballs and explosions are done.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  6. #6

    Bad Transparency in delphix

    Sorry, I have to see original drawing picture. Please you send me it to my E-mail and after them I can write any advice...

    Are some problems with selected transparent color in low colored images but all images (primary used DIB or BMP) converted into texture (DXT) are 24 or 32 bit (32 bit when alphachannel attached).

    Regards
    Ijcro.

  7. #7

    Bad Transparency in delphix

    I will send original picture

    I also send png too...

    i use pngimage pack for delphi, but seems to have problems drawing in delphix. Obviously this is simply a bonus if you can ever get this to work.

    Thanks for all comments I will try to add draw too

  8. #8

    Bad Transparency in delphix

    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

  9. #9

    Bad Transparency in delphix

    OK. Please send it directly (when up to 1 MB) to my E-mail, thank you
    Ijcro.

  10. #10

    Bad Transparency in delphix

    For your information, I have this from Lifepower who did the experimentation and found the problem, the latest pngimage release is flawed and strips or sometimes normalizes the alpha channel. The author is aware of this, but wasn't exactly... cooperative with Lifepower in admitting that it needed to be fixed (it was an apparent security fix, that broke it). Roll back to a prior version and it will work fine.

Page 1 of 2 12 LastLast

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
  •