Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-28-2005, 07:12 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
setimgcolors, seteffect

Why does seteffect need to remove alpha from everything under the gui? Why can't it be that the negative alpha caused by seteffect be cancelled out by the positive alpha in setimgcolors? Instead of having a blurry light, there would then be a light that actually makes things more visible, which would be the purpose of most lanterns and lights. It would really improve scripts. For instance, one could make a nearly pitch black basement or dungeon and let the characters have flashlights or lanterns.
Reply With Quote
  #2  
Old 02-28-2005, 10:14 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
I agree with this.

Right now you can't make good lights because they just appear over the darkness, but don't really help.

Drawaslight doesn't really cancel out the seteffect, which you would want for a lantern.
__________________

Reply With Quote
  #3  
Old 03-05-2005, 02:06 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
I am surprised that we seem to be the only ones who really care...
Reply With Quote
  #4  
Old 03-05-2005, 09:11 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by jake13jake
Why does seteffect need to remove alpha from everything under the gui?
Well, because that's how it's coded. My understanding is that the lights are immediately applied to the screen, meaning that they destroy some of the information below. To facilitate your suggestion, there'd need to be some kind of secondary buffer that accumulates all the different light modifiers before they're applied to the level, and that would:
  1. Require quite a hefty rewrite of some systems.
  2. Force a fairly dramatic increase in memory usage.
__________________
Reply With Quote
  #5  
Old 03-07-2005, 09:30 AM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Kaimetsu
Well, because that's how it's coded. My understanding is that the lights are immediately applied to the screen, meaning that they destroy some of the information below. To facilitate your suggestion, there'd need to be some kind of secondary buffer that accumulates all the different light modifiers before they're applied to the level, and that would:
  1. Require quite a hefty rewrite of some systems.
  2. Force a fairly dramatic increase in memory usage.
so what you're saying is??
lights modify drawing board x,y
lights modify drawing board x,y
lights modify drawing board x,y
lights modify drawing board x,y

vs

check lights x,y
check lights x,y
check lights x,y
check lights x,y
lights modify drawing board x,y
lights modify drawing board x,y
lights modify drawing board x,y
lights modify drawing board x,y
???

I don't think destroying data is exactly the best way to go about anything, I would much rather search for more efficient ways of applying data. It works how it works. The only way to fix this up would probably be to make it so there was no coloration loss.
Reply With Quote
  #6  
Old 03-07-2005, 12:33 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by jake13jake
so what you're saying is??
lights modify drawing board x,y
[x4]
vs
check lights x,y
[x4]
lights modify drawing board x,y
[x4]
No, I don't think so.

Quote:
I don't think destroying data is exactly the best way to go about anything, I would much rather search for more efficient ways of applying data
Can you present a feasible method?
__________________
Reply With Quote
  #7  
Old 03-07-2005, 12:51 PM
Evil_Trunks Evil_Trunks is offline
Evil
Evil_Trunks's Avatar
Join Date: Dec 2004
Posts: 391
Evil_Trunks is on a distinguished road
this is sort of what Massokre means, if you don't get what he is saying

it is removing the darkness from the area around the player in this created image

edit: I meant you in the general sense, not specifically referring to your post, Kaimetsu
Attached Thumbnails
Click image for larger version

Name:	darkness.jpg
Views:	135
Size:	9.0 KB
ID:	31314  
__________________


Last edited by Evil_Trunks; 03-07-2005 at 02:07 PM..
Reply With Quote
  #8  
Old 03-07-2005, 01:36 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by Evil_Trunks
this is sort of what Massokre means, if you don't get what he is saying
I think my first reply proved that I "get what he is saying".
__________________
Reply With Quote
  #9  
Old 03-09-2005, 02:59 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Kaimetsu
No, I don't think so.
Can you present a feasible method?
Sortof like how gmaps are expected to load quickly....

The most I can do with my programming is draw maps out of text and have the player (the character "@") run through it collecting or fighting NPCs. This is mostly because I don't know what to do to draw graphics. I am not so good at programming (self proclaims a "beginner").

How much memory would re-reading the section of tiles/images that a light is on take?

My normal thinking would say make another thing and add up all the alpha. This would probably take a lot more memory.

Last edited by jake13jake; 03-09-2005 at 03:18 PM..
Reply With Quote
  #10  
Old 03-09-2005, 05:14 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by jake13jake
Sortof like how gmaps are expected to load quickly....
Huh?

Quote:
How much memory would re-reading the section of tiles/images that a light is on take?
You want to re-render the entire level every time a light is drawn?

Quote:
My normal thinking would say make another thing and add up all the alpha
A much better solution. But you don't get props, since I already suggested it in my original post
__________________
Reply With Quote
  #11  
Old 03-09-2005, 10:52 PM
jake13jake jake13jake is offline
Former Classic Staff
jake13jake's Avatar
Join Date: Dec 2002
Location: Northwest Vermont
Posts: 1,452
jake13jake will become famous soon enough
Quote:
Originally Posted by Kaimetsu
Huh?

You want to re-render the entire level every time a light is drawn?

A much better solution. But you don't get props, since I already suggested it in my original post
You don't have to rerender the entire level every time a light is drawn, just the affected part.

You're much better solution would be the obvious one. We're trying to think of a not-so-obvious one.
Reply With Quote
  #12  
Old 03-09-2005, 11:09 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally Posted by jake13jake
You don't have to rerender the entire level every time a light is drawn, just the affected part
Considering all the other things that might be drawn on the level - NPCs, projectiles, [i]other/i] lights - that could get pretty intensive, no?

Bottom line: You'd need a whole extra buffer at the very least, which costs a hefty sum of memory. Aside from that, Stefan would also need to rewrite many of the core systems. I agree that the result would be nice, but I also think there are more important things.
__________________
Reply With Quote
  #13  
Old 03-11-2005, 11:30 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 guess it would require some kind of alpha map, which prevents the daynight effect from darkening some areas. Will be interesting to find a solution for that.
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:04 AM.


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