Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   PNG Bug (https://forums.graalonline.com/forums/showthread.php?t=63106)

Rick 12-31-2005 10:16 AM

PNG Bug
 
1 Attachment(s)
This is probably another filter problem.

Graal4 doesn't display the attached PNG properly -- it does show up, but it's rendered wrong.

[edit]

Oddly enough, 'setEffectMode(1);' seems to fix it aside from alpha transparency no longer working.

Admins 01-06-2006 04:46 PM

I have checked the problem, the image seems to be handled ok.
I guess the problem is that npcs have effect mode 0 by default (light effect), so if the npc has an alpha value below 1 or is using a png with alpha layer then by default it is displayed like a light effect. You need to do seteffectmode(1) to get a normal alpha effect.
Changing the default behaviour is not simple since most scripts that display light effects just change the colors (alpha) and don't set the effect mode. It's a little bit annoying for pngs with alpha layer though


All times are GMT +2. The time now is 12:12 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.