www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: entis on January 24, 2008, 02:22:26 pm

Title: How transparency could be made better while using sw renderer?
Post by: entis on January 24, 2008, 02:22:26 pm
Hi,

I have a question... While using a software renderer (Open GL mode) I have a problem with making black regions of the object transparent completely... I mean that the black regions MOSTLY disappear but not at all there are still some black color around my figure (a few black pixels are still there)  ??? (may be it's due to using anti-aliasing in textures) ... It looks bad.. I would like to know if it is possible to make it look better while using software renderer (Open GL mode) only?

Please see the picture below (the curve should be light grey with no black color)..

(http://img112.imageshack.us/img112/5065/badviewfj8.th.jpg) (http://img112.imageshack.us/my.php?image=badviewfj8.jpg)

Thanks in advance.
Title: Re: How transparency could be made better while using sw renderer?
Post by: EgonOlsen on January 24, 2008, 02:42:38 pm
Try to avoid jpg-format for transparent images, because it usually introduces artifacts at the borders of colors. Save your file as png or gif (from scratch...simply converting the jpg doesn't cut it, because the artifacts are already there) and see if that helps.
And don't use edge antialising when creating the textures.
Title: Re: How transparency could be made better while using sw renderer?
Post by: entis on January 24, 2008, 04:29:21 pm
Thanks... PNG file without antialiasing looks much better :)