Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 06-26-2011, 07:48 PM
Hoyt1134 Hoyt1134 is offline
Registered User
Join Date: Jul 2004
Posts: 18
Hoyt1134 is on a distinguished road
This is something I have been looking for in Graal for a long time, even going so far as developing tile-based lighting to make up for it. Within the last couple of days though, I have had some luck in creating a system just like what you are looking for. I'll post an update in a day or 2 when I work out some of the larger bugs plaguing it. The major problem I've had is the inability to rotate the light images, but everything else looks good. I was able to do additive colored lights without any weird artifacts where they overlap, which would allow for things like a red light overlapping a blue light to produce purple, but a red light crossing a white light remains white, since white already contains red light. It looks just like the image you posted on the right side except there is no white glow around it, it just transitions from transparent to black.

It also allows you to vary the background color, just like how seteffect works, being able to go to basically pitch black for night-time sneaking games and lighten up to transparent for day time. I just started GS2 like 2 days ago so whatever code I post will probably be really hacky, but I'm sure someone else will be able to make something nice out of it. I'll post a couple screenshots later on tonight if I'm able. Not sure if there are posting restrictions on classic accounts.
Reply With Quote
 


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 04:40 PM.


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