Doom monster
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Vertical Lighting sequences
 
Author
All times are GMT. The time now is 16:13. Post New Thread    Post A Reply
HXCpr0n
Mini-Member


Posts: 56
Registered: 08-10


Hello folks.

I've been trying to figure out how to do vertical light sequences like you see in many of the realm667 wads. I know how to do ordinary light sequences for sectors and transfer brightness levels, but I'm not sure how to actually do them within a sector and transfer them vertically. I'm guessing you'd need to have your brightness in a dummy sector and you just move the dummy sector's floor and ceiling (I gave it a height of 8) up with a script and make it restart. I've tried it but it didn't seem to work for me. Is there an alternate way of doing this?

could somebody possibly point me to a function on the zdoomwiki or explain how it's done? Thanks.

Old Post 12-24-11 23:17 #
HXCpr0n is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Pottus
Junior Member


Posts: 165
Registered: 07-09


I did something like this similar recently but maybe this will give you some ideas.

1'st Method Sector Effect 1 (Light Phased)

http://download1874.mediafire.com/w...k/lighttest.wad

I've have not used this method myself the test is just a small part from another wad (CEMP) that was relevant to your problem but it is very effective if you want to avoid using scripts.

2'nd Method Scripts

Creates a vertical light sequence that starts at the bottom and moves up. The reference sector tags are all transfer brightness control sectors, essentially you are creating an animated frame sequence with a start frame and end frame the initial frame is configured on the map by setting all light values of the transfer brightness control sectors to the state of the end frame. I'll probably end up making the whole idea more flexible and faster to get working by using array's and loops sometime.

script 4 open
{
Light_RaiseByValue(72, 48);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_RaiseByValue(73, 48);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_RaiseByValue(74, 48);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_RaiseByValue(75, 48);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_RaiseByValue(76, 48);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_RaiseByValue(77, 48);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_RaiseByValue(78, 48);
Delay(10);
Restart;
}

Last edited by Pottus on 12-25-11 at 04:55

Old Post 12-25-11 04:08 #
Pottus is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
HXCpr0n
Mini-Member


Posts: 56
Registered: 08-10



Pottus said:
I did something like this similar recently but maybe this will give you some ideas.

1'st Method Sector Effect 1 (Light Phased)

http://download1874.mediafire.com/w...k/lighttest.wad

I've have not used this method myself the test is just a small part from another wad (CEMP) that was relevant to your problem but it is very effective if you want to avoid using scripts.

2'nd Method Scripts

Creates a vertical light sequence that starts at the bottom and moves up. The reference sector tags are all transfer brightness control sectors, essentially you are creating an animated frame sequence with a start frame and end frame the initial frame is configured on the map by setting all light values of the transfer brightness control sectors to the state of the end frame. I'll probably end up making the whole idea more flexible and faster to get working by using array's and loops sometime.

script 4 open
{
Light_RaiseByValue(72, 48);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_RaiseByValue(73, 48);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_RaiseByValue(74, 48);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_RaiseByValue(75, 48);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_RaiseByValue(76, 48);
Light_LowerByValue(77, 8);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_RaiseByValue(77, 48);
Light_LowerByValue(78, 8);
Delay(10);

Light_LowerByValue(72, 8);
Light_LowerByValue(73, 8);
Light_LowerByValue(74, 8);
Light_LowerByValue(75, 8);
Light_LowerByValue(76, 8);
Light_LowerByValue(77, 8);
Light_RaiseByValue(78, 48);
Delay(10);
Restart;
}



Thanks Pottus, this seems to make more sense to me. However I still can't get the desired effect with that script, it just seems like makes the whole sector flash up and slowly fade rather than the an actual sequence. I used the proper dummy sectors with the transfer brightness action.

I'm just going to try method 1 and see how that works.

Old Post 12-26-11 02:07 #
HXCpr0n is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Pottus
Junior Member


Posts: 165
Registered: 07-09


The second method is just an example of creating a sequence of frames, your really only limited by creativity here the actual sequence I have posted may or may not be what you want if it's not then you would have to script your own sequence it's just a reference example to get some ideas from.

Old Post 12-26-11 08:27 #
Pottus is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 16:13. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Vertical Lighting sequences

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory