Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-31-2005, 10:16 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
PNG Bug

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.
Attached Images
 
Reply With Quote
  #2  
Old 01-06-2006, 04:46 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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