www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: Birdron on May 13, 2014, 11:10:59 pm

Title: Overlay Hud
Post by: Birdron on May 13, 2014, 11:10:59 pm
Hi,
   I m rendering some images as hud, which is transparent hud. A circle with a whole in it. I m using both overlay and blit to see what is the difference. Jpct removes black pixels to make images transparent. Is there any method that loads transparent png files? Because using black pixels as transparency makes the image edges look very odd unless it is totally pixel drawing.

Thank you.
Title: Re: Overlay Hud
Post by: EgonOlsen on May 13, 2014, 11:16:29 pm
Yes. Just use the Texture-constructor that takes a boolean in addition and set it to true.
Title: Re: Overlay Hud
Post by: Birdron on May 13, 2014, 11:58:06 pm
Thank you.