Welcome Guest ( Log In | Register )

[ Big| Medium| Small] -



Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2  Next
trebor777
  Fri Nov 16, 2007 7:26 pm
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
Dynamic Lights & Shadows
Version: 1.5

Introduction

Based on the Rataime's Shadow script, I've rewrote it, using a clearer code in my opinion, and adding new features to make it a bit more realistics.

Features
Basically the same as Rataime's Shadow script. But!
  • Shadows overlay, the system know when to display the shadow or not
  • Possibility to control the source: turn the light on/off, change its direction, make it move
  • Height of objects is handled, no more 1 event per tile for the shadow of a pillar
  • Auto-Screen tint according to the number of lights off
videos
http://rmxp.trebor777.net/rmxp/dynamic_lights_and_shadows.avi
10Mb, H.264, Tell me if you can't read it.
http://rmxp.trebor777.net/rmxp/Dynamic%20Light%20and%20Shadow.wmv - 6.7Mb
Demo

Link

Script

script


Instructions
Everything is explained in the comments.

FAQ

Why is it so long when i'm starting to play, or going to another map?
- That's because of the time needed to draw the lights. I'm sorry about that...I need a real fast method to draw lines... So don't abuse of lights lol
and it's not to annoying as it's only a loading time, instead of slow down during gameplay.

I might make a Loading screen for that! XD

Compatibility

Require The SDK, whatever the version.

Credits and Thanks

Rataime's for his script, Learned a lot^^.
MACL stuff,but I only use one method, so I didn't make it required.

Author's Notes
I'm thinking of doing an easier version for the light settings. Remind me if I forgot!




Terms and Conditions

Use it as you want!

_________________
Scripter for Moonlight Requiem

Image


Last edited by trebor777 on Sat Nov 17, 2007 12:25 am, edited 1 time in total.

Top Top
 Profile  
 

Makasu
  Fri Nov 16, 2007 7:48 pm
Peri did my avatar! <3
User avatar
Member

Location: Artist Gallow, Texas
Not bad. The video is very impressive. I see a little metal gear action going on eh? Or maybe splinter cell. I don't know. But I'm very interested to see your other work. I gotta try this out and see how it actually works. But great job from what I've seen!

_________________
COLOR ME PINK!
Because all the cool kids are doing it.

Dead on Arrival is the name of my project. Topic thread coming sooner or later. Game is now in the early stages of development. Tech demo soon to be released...

Me on deviantart.com
My talents


Top Top
 Profile  
 

trebor777
  Fri Nov 16, 2007 7:51 pm
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
Hum yeah the video is made from a project request from a customer, named Badmonur.
That's why I need to do a proper Demo for this script!^^

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

Makasu
  Fri Nov 16, 2007 7:59 pm
Peri did my avatar! <3
User avatar
Member

Location: Artist Gallow, Texas
But will this work with the sdk 1.5? Because I'm using Caldron's ABS and yeah I don't know how to switch it up from 1.5 to 2.3.

edit: well it works but for some odd reason the screen flashes like crazy. I mean its nice and easy to use but is there a way to keep it from flickering like that? Just curious if so I will be using this for sure.

_________________
COLOR ME PINK!
Because all the cool kids are doing it.

Dead on Arrival is the name of my project. Topic thread coming sooner or later. Game is now in the early stages of development. Tech demo soon to be released...

Me on deviantart.com
My talents


Top Top
 Profile  
 

trebor777
  Fri Nov 16, 2007 8:04 pm
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
arf, I was wrong lol actually

It should work with all versions of the SDK lol
I thought that the aliased methods I used, were only in the v2.xx

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

Makasu
  Fri Nov 16, 2007 8:09 pm
Peri did my avatar! <3
User avatar
Member

Location: Artist Gallow, Texas
Well thats good to know but is there any way to fix the flickering problem I'm encountering?

_________________
COLOR ME PINK!
Because all the cool kids are doing it.

Dead on Arrival is the name of my project. Topic thread coming sooner or later. Game is now in the early stages of development. Tech demo soon to be released...

Me on deviantart.com
My talents


Top Top
 Profile  
 

trebor777
  Fri Nov 16, 2007 8:10 pm
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
Flickering? what do you mean?

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

Makasu
  Fri Nov 16, 2007 8:16 pm
Peri did my avatar! <3
User avatar
Member

Location: Artist Gallow, Texas
Well I can't really explain it but if you get the Evergore demo in Caldrons ABS and insert your script in there you'll see the screen flicker. Its really odd because it doesn't happen in Mr.Mo's ABS but it does in that one so I don't know whats the deal there.

_________________
COLOR ME PINK!
Because all the cool kids are doing it.

Dead on Arrival is the name of my project. Topic thread coming sooner or later. Game is now in the early stages of development. Tech demo soon to be released...

Me on deviantart.com
My talents


Top Top
 Profile  
 

trebor777
  Fri Nov 16, 2007 8:36 pm
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
I must say it looks fine on my computer...
I just tested the caldaron's Evergore demo, and no problem.

But it poped up a bug lol, when i tried without any light lol, it crash I need to fix that lol.
EDIT, fixed! Script updated.

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

Lockheart
  Fri Nov 16, 2007 8:53 pm
User avatar
Member

Location: Ontario, Canada
Seems like a really good lighting script, but I have one question, is it possible to set it so that the hero is the one casting the light? I mean, for example the hero has a lantern or flashlight on them is this possible with the current script or could it even be done?


Top Top
 Profile  
 

arev
  Fri Nov 16, 2007 8:58 pm
The Replicator Block
User avatar
Sponsor

Location: Poland
Very nice effects, but it seems to lag pretty much ;)

_________________
http://rmdump.blogspot.com/ - Look for high quality RMXP resources here.


Top Top
 Profile  
 

trebor777
  Fri Nov 16, 2007 8:58 pm
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
oh, lol, I didn't think to that one, lol even if it's a quite obvious thing.
Hum, nope, there is no way for the moment to make the game_player as a source.

But It's a usefull feature to include in the next version!
And, hum, I think... it could be done quite easily.

About the video, lol it's seems laggy because of the capture software... it does the same thing on other video i created... when moving the mouse for example, it dropped the frame rate, and if it's just recording it remove only like 5 or 6 fps.
else the script only creates long loading time between maps.

it would be perfect to create the same kind of effects of your static lighting script...( like having a gradient light "halo" thing)

XD I must that I never had so much replies so quickly after posting a script XD

May I remind you of the wonderful "Edit" button? ;p - arevulopapo

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

saikyo765
  Fri Nov 16, 2007 9:13 pm
User avatar
Member
I can't get the video to play for me for some reason =[
I can only hear the sound.

_________________
Image

^Visit the official FotL Forums for exclusive released content^


Top Top
 Profile  
 

trebor777
  Fri Nov 16, 2007 9:38 pm
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
try this one:
http://rmxp.trebor777.net/rmxp/Dynamic%20Light%20and%20Shadow.wmv


EDIT: Big News!
I just found a nice solution to the "slow loading times" problem...
Basically, it only draw the bitmap one time, so it doesn't have to create it each time.
Instead a png file is created if not found. If found, the file is loaded. So loading times only happen the first time you load the map.

Moreover, it means, that, if the game creator is nice, he will play his game one time to create all the lights file, and then create the game archive. Like this, the players won't be affected by this problem.

_________________
Scripter for Moonlight Requiem

Image


Last edited by trebor777 on Fri Nov 16, 2007 11:01 pm, edited 1 time in total.

Top Top
 Profile  
 

kyonides
  Fri Nov 16, 2007 11:00 pm
Member
mmm...
Did you know that the light created by this script follows me all the time?


Top Top
 Profile  
 

trebor777
  Fri Nov 16, 2007 11:02 pm
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
O_o??
is your event is supposed to follow the player?? Check Please...

Big News!
I just found a nice solution to the "slow loading times" problem...
Basically, it only draw the bitmap one time, so it doesn't have to create it each time.
Instead a png file is created if not found. If found, the file is loaded. So loading times only happen the first time you load the map.

Moreover, it means, that, if the game creator is nice, he will play his game one time to create all the lights file, and then create the game archive. Like this, the players won't be affected by this problem.

EDIT: Solution Done, I've also included a small loading bar,
The script on the first page will be updated soon.

_________________
Scripter for Moonlight Requiem

Image


Last edited by trebor777 on Fri Nov 16, 2007 11:28 pm, edited 1 time in total.

Top Top
 Profile  
 

Mr.Mo
  Sat Nov 17, 2007 12:22 am
Member
You finally finished it :D Good job man.

_________________
Image
Image
Image

Support Express Game Maker!


Top Top
 Profile  
 

trebor777
  Sat Nov 17, 2007 12:23 am
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
Yeap! ^^
Thx!

Hey here comes the demo!
Check the first post!

I removed on purpose the generated light files. So you can test it.

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

kyonides
  Sat Nov 17, 2007 12:24 am
Member
No trebor777, the event does not even move at all, only the light effect follows the character anywhere...


Top Top
 Profile  
 

trebor777
  Sat Nov 17, 2007 12:29 am
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
O_o??
hum, explain me everything you did,
script used etc;.;
a demo (would be easier)

Have you tried with the updated script I just posted with the Demo?

_________________
Scripter for Moonlight Requiem

Image


Last edited by trebor777 on Sat Nov 17, 2007 12:36 am, edited 1 time in total.

Top Top
 Profile  
 

kyonides
  Sat Nov 17, 2007 12:58 am
Member
Well I copied the example included in the script and pasted it as a comment. I used both version 1.0 and 1.5...
maybe a screenshot could help me to explain what happened today.

http://img206.imageshack.us/img206/790/light01fh2.png
http://img411.imageshack.us/img411/7895/light02sr5.png
http://img267.imageshack.us/img267/8594/light03dy8.png


Top Top
 Profile  
 

trebor777
  Sat Nov 17, 2007 1:03 am
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
Seriously I don't know what's wrong... as you did configure your event as it should be.

Is the demo working fine with you?

Are you using other scripts?

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

DeM0nFiRe
  Sat Nov 17, 2007 1:21 am
Member
You, sir, are a vile fiend. :p
I started working on this a while ago but I had to put it down for a while for my current projects. Although I have to admit I was only doing the Dynamic Shadows to go with a DNS. You went for the lighting too which I have not started, but I have been planning becuase I'll need it for a future project.

Nice work with this script! To be honest with you, I thought I was the only one who ever wanted Dynamic Lighting and Shadows in RMXP ^^ I was wrong!

_________________
_          )         &          ^    ( ^%       +     +  *   + ^ $      )    %
+ * % %$( ( % ( *
) ಠ_ಠ ^ % (
) # $ ) ) #
^ $ & % $ ( # @*
# ) * % ) $


Top Top
 Profile  
 

trebor777
  Sat Nov 17, 2007 1:23 am
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
h?h? thanks and sorry.
That's the same with a script for Stealth based gameplay... can't find a script for that...
So I'm working on it...

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

kyonides
  Sat Nov 17, 2007 1:27 am
Member
It seems it is incompatible with a version of Near Fantastica's Anti-Lag script... Only when I removed it, the light did not move at all.
But now that I know this, I noticed that the light is not correctly placed on the map, I mean, it does not look like it comes from the light source but from the grass...
http://img128.imageshack.us/img128/7642/light04np0.png


Top Top
 Profile  
 

trebor777
  Sat Nov 17, 2007 1:31 am
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
Yeah that's because you need to read the instructions lol.. ^^
no, it's because that the represented light is what you can see on the floor not where it exactly comes from.

If you don't like it, just use set the height argument to 0;( look at the instruction for that)

But I should try to improve that, it does look right if the light angle is really large and facing to one side like in my demo; but not in your case.

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

saikyo765
  Sat Nov 17, 2007 1:33 am
User avatar
Member
say looks nice.
In the video, are those lockers with the shadow charsets?
or am i able to make shadows from the chipset?

_________________
Image

^Visit the official FotL Forums for exclusive released content^


Top Top
 Profile  
 

kyonides
  Sat Nov 17, 2007 1:34 am
Member
Thanks for the advice...
Is there a way I could use this script and the anti-lag script in the same project?
Well I know that the angle was wrong, I just tried to make sure I did not enter a wrong (event) comment, he, he.


Last edited by kyonides on Sat Nov 17, 2007 1:43 am, edited 1 time in total.

Top Top
 Profile  
 

trebor777
  Sat Nov 17, 2007 1:36 am
Ruby Lover!
User avatar
Member

Location: University of Teesside, UK | Royan, France
hum use the other antilag script which is better than near one,
made by fl0tz.... something

(Can't people have simple username?)

_________________
Scripter for Moonlight Requiem

Image


Top Top
 Profile  
 

kyonides
  Sat Nov 17, 2007 3:03 am
Member
Well it seems that the only anti lag script that does not make the lights move is f0tz!baerchen's... But there was actually a lag I never experienced while not using any anti lag script...


Top Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 38 posts ]  Go to page 1, 2  Next


Who is online

Users browsing this forum: No users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Hosted By: