Saturday, March 19, 2005

Transparent PNG

Yesterday I spend all my day trying to solve the strange problem . The .png file that I created in paint shop pro didn't want to use alpha channel. First of all I thought that I did something wrong with texture generation or rendering options, then I though that it was all the DevIl false, but at the end I came up with the idea that I needed a true image with alpha channel, so I googled for it in the image section. From hundreds different png I selected only one that looked like it was using alpha. To my suprise it was forum post, and the guy that started it had the same problem as me ! ( I spend all day trying to find a solution on different forums and googling for it, but I found it only when looking for a picture).

The problem is in the Paint shop pro, savingr routines, they don't save alpha channel information. But there is a option, that I didn't notice : Export->PNG. It did automaticly change my png, and added transparent parts instantly. So it is working now.

But the time wasn't spend without a reason. I managed to get all the blending options and took screenshot of them. They produce really cool results some times. Here are few of them :

GL_DST_COLOR -GL_DST_COLOR
Image Hosted by imagehosting.us

GL_DST_COLOR-GL_SRC_COLOR
Image Hosted by imagehosting.us

GL_ONE_MINUS_DST_COLOR -GL_DST_COLOR
Image Hosted by imagehosting.us

GL_ONE_MINUS_SRC_COLOR -GL_ONE_MINUS_SRC_COLOR
Image Hosted by imagehosting.us

GL_ONE_MINUS_SRC_COLOR -GL_ONE
Image Hosted by imagehosting.us

GL_ZERO-GL_ONE_MINUS_SRC_COLOR
Image Hosted by imagehosting.us

0 Comments:

Post a Comment

Links to this post:

Create a Link

<< Home