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 01-03-2008, 08:21 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
New image mode

I'm not sure how possible this is as I'm no programmer... but I propose a new image mode.
Right now, if you seteffect, there's basically nothing you can do to get pass it. Showing a light effect BARELY does anything to show a 'hole' in seteffect, and if you seteffect(0,0,0,1)(pure blackness, no alpha), it wouldn't make a difference at all.

The idea is to add a setimgmode that subtracts from setefffect. This mode would work much like the transparency mode, but it would make 'holes' in seteffect. Because as of now... it's near impossible to do any interesting dark/light effect kind of things.

Here's an attachment of a mock-up of what I mean.
Attached Thumbnails
Click image for larger version

Name:	imgmode.jpg
Views:	217
Size:	46.0 KB
ID:	43670  
Reply With Quote
  #2  
Old 01-03-2008, 08:56 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
That would seriously be awesome to implent for quests or caves.

I support this!
__________________
Reply With Quote
  #3  
Old 01-03-2008, 09:04 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Where do I sign?
Reply With Quote
  #4  
Old 01-03-2008, 09:32 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Crow View Post
Where do I sign?
petition? xD
__________________
Reply With Quote
  #5  
Old 01-03-2008, 11:37 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
seteffect is currently just a polygon being drawn over the screen, I don't know how such an image mode would be done.
__________________
Reply With Quote
  #6  
Old 01-03-2008, 11:43 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Me either, but I'm just hoping he finds it worthy enough to figure something out. I think it'd be a huge benefit for servers, especially those that are quest-based.
Reply With Quote
  #7  
Old 01-04-2008, 01:38 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
I'm sure did this before....

You have to use showpoly() to draw a poly over the screen, set the mode on that, then set the mode on the light effect.
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #8  
Old 01-04-2008, 02:35 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
What I'm asking is not able to be replicated, as far as I know. I mean... I could make a cheap script with poly's and such... but it won't have by far the amount of flexibility this will.
Reply With Quote
  #9  
Old 01-04-2008, 02:49 AM
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
The problem is the complexity of such kind of effect. Light effects can be done by a simple graphic operation, but for a "negative hole" effect you need a mask (basicly a texture of the size of the screen) which is not supported by video hardware. The only way to achieve such effect is to manually generate a mask, e.g. by creating a polygon and cut out parts which should not be hidden, or by dividing the screen into a grid and display different light effects on each grid depending on how much light falls onto that spot.
Reply With Quote
  #10  
Old 01-04-2008, 03:04 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
So is there no hope for this addition... or something to just wait for and hope?
Reply With Quote
  #11  
Old 01-04-2008, 04:42 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
I know this will make me sound stupid, but ...

When redraw() is called, or however it works, it goes through each pixel, correct?

If you could make an area that it doesn't set it, even an array of certain pixels (for example, at 300, 400 don't show the effect) then just have it not draw there.

Would not something like this work, and then just have a function to get all the pixels in a circle or box?
__________________
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 07:31 PM.


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