Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #16  
Old 12-31-2011, 07:36 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by DustyPorViva View Post
The effect is made via drawing an image of a white circle over the black-filled drawingpanel. You can use softer images(excuse the low quality, I was trying a very low resolution):
I also saw that example. So fill the surface black and draw a circle at the x/y of the source to light up.. your brigness fades into darkness.. im asumming you used a gfx for this?

and you apply an alpha of .99 or less and the whiter the color the brighter it is?
Reply With Quote
  #17  
Old 12-31-2011, 07:40 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
Quote:
Originally Posted by scriptless View Post
I also saw that example. So fill the surface black and draw a circle at the x/y of the source to light up.. your brigness fades into darkness.. im asumming you used a gfx for this?

and you apply an alpha of .99 or less and the whiter the color the brighter it is?
1) Creative drawing panel with the size of screenwidth/quality,screenheight/quality
2) fill black
3) draw image for each light source(white circles, with transparency(semi-transparency for softer edges) by via screenx(posx,posy)*quality,screeny(posx,posy)*qual ity
4) render drawing panel at 0,0 and at the scale of quality

I haven't looked at the script in a long time though, so I could be making mistakes... but as for flexibility? You're kind of screwed. Last time I tried this it was either totally opaque, or 99% transparent. Those were the only levels of transparency it would allow.

Honestly, you'd be better off looking at the script yourself, as I'm working from memory here.
Reply With Quote
  #18  
Old 12-31-2011, 07:47 AM
scriptless scriptless is offline
Banned
Join Date: Dec 2008
Location: N-Pulse
Posts: 1,412
scriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to beholdscriptless is a splendid one to behold
Quote:
Originally Posted by DustyPorViva View Post
1) Creative drawing panel with the size of screenwidth/quality,screenheight/quality
2) fill black
3) draw image for each light source(white circles, with transparency(semi-transparency for softer edges) by via screenx(posx,posy)*quality,screeny(posx,posy)*qual ity
4) render drawing panel at 0,0 and at the scale of quality

I haven't looked at the script in a long time though, so I could be making mistakes... but as for flexibility? You're kind of screwed. Last time I tried this it was either totally opaque, or 99% transparent. Those were the only levels of transparency it would allow.

Honestly, you'd be better off looking at the script yourself, as I'm working from memory here.
I will do some searching to see if I can find it I guess. I have idea's that might work.. but im not sure the math on it. What if I did seteffect() with this? I know the blackness would be darker. Not sure the math on that tho..

Or just making the center of the white space "softer" ?



EDIT:
Oh, I see what you mean. I have to make the darkness totally black. Hmm. I would need to play with the script to see what I can come up with.

Might this be what you speak of?
http://forums.graalonline.com/forums...t=DustyPorViva

Last edited by scriptless; 12-31-2011 at 10:49 AM..
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 11:21 PM.


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