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 > Lighting on things different than on walls
 
Author
All times are GMT. The time now is 07:14. Post New Thread    Post A Reply
40oz
Forum Spammer


Posts: 6902
Registered: 08-07


I played a deathmatch wad a long time ago that I can't remember the name of, but it featured two rooms on opposite sides of the level, one where it was pitch dark but when you walked in it, items and the HUD weapons were illuminated, and on the other side, the room was well lit, but all the items in it were dark silhouettes.

How do you do that?

Old Post 04-05-13 05:38 #
40oz is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Ribbiks
Senior Member


Posts: 1316
Registered: 02-11


like this?

Old Post 04-05-13 06:17 #
Ribbiks is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
40oz
Forum Spammer


Posts: 6902
Registered: 08-07


mmmmm I dont know. I don't think having the things point of origin on an extremely small dark sector was the trick, because iirc the players and monsters running around in there were darkened too.

I don't remember the name of the wad, I was just hoping it was an editing trick people knew.

I'd like to preserve the lighting of a map I made, even though it's a little too dark for deathmatch, so I was hoping I could brighten up things without brightening the map.

Old Post 04-05-13 23:52 #
40oz is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Mechadon
Senior Member


Posts: 2217
Registered: 12-06


Hmm, well if it is Boom compat (or similar) you can use light transfers to achieve what your describing, I think. You''ll have to do a lot of little trim sectors to get it to work just right though, since the light transfers will only work on ceilings and floors. So, for example, you can set a room to have a light level of 0, use a floor and ceiling light transfer of 255, and that should give the same effect. You'll have to trim off walls and stuff and light them manually (use a really tiny sector). That should work for both the light and dark effects; the rooms will look one way, but the sprite will light up according to the sector's light level.

Old Post 04-05-13 23:58 #
Mechadon is online now Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Memfis
Forum Spammer


Posts: 5718
Registered: 04-07



Mechadon said:
the light transfers will only work on ceilings and floors

Well, in MBF there was a bug with the action 261 "Ceiling brightness to this brightness": it affected things too. This bug was also present in prboom-plus -complevel 9 but entryway fixed it about 2 months ago. So I guess you're too late 40oz. :p

Old Post 04-06-13 00:07 #
Memfis is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
40oz
Forum Spammer


Posts: 6902
Registered: 08-07


figged it out. It was self referencing sectors. Make a dummy sector inside a sector, change the lighting of the dummy sector, select all the lines of the dummy sector, change the sidedefs sector index to be the same as the surrounding sector, things in that sector have the lighting chosen for the dummy sector, floor and ceiling inherit the light of the surrounding sector.

Old Post 04-06-13 03:53 #
40oz is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 6382
Registered: 12-00


Most ports should have a transfer floor/ceiling light special which, in this case, should have the same effect as the self referencing sector technique.

Old Post 04-06-13 10:43 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
wesleyjohnson
Senior Member


Posts: 1032
Registered: 04-09


That self-ref solution has got me confused. If all the linedefs of the dummy sector are changed to the surrounding sector, that seems to mean that the new sector has no presence in that area at all.
Why would any things be in the dummy sector.

Does not a thing become in a sector (or sub-sector) when it crosses a linedef and considers the sidedef sector number as the sector it
is now within. When that linedef refers to a odd sector (self-ref?)
then interesting things may be rendered (depending on the port).

Last edited by wesleyjohnson on 04-09-13 at 01:03

Old Post 04-09-13 00:52 #
wesleyjohnson is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Memfis
Forum Spammer


Posts: 5718
Registered: 04-07


I just watched the new uv-max demo for Requiem map29 and noticed this in the starting area:
http://thumb1.wuala.com/previewImage/kuchitsu/Doom_SCREEN/REQUIEM.WAD/doom1621.jpg
And I don't see any self-referencing sectors in the editor. What the hell?

Old Post 04-09-13 01:09 #
Memfis is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
wesleyjohnson
Senior Member


Posts: 1032
Registered: 04-09


Run REQUIEM.WAD through zennode and the effect disappears.

Zennode refuses to update some levels of REQUIEM because it detects tricks being used. It does update map29. Playing the zennode copy shows things lit as in a normal dark room.

If you walk over by the lift, get close to the corner, and look
around the corner, the things in front of the lit sector will disappear.
Using DoomLegacy and PrBoom.

Last edited by wesleyjohnson on 04-11-13 at 00:30

Old Post 04-11-13 00:24 #
wesleyjohnson is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
wesleyjohnson
Senior Member


Posts: 1032
Registered: 04-09


Looking at the code does not clear things up.
After every move, the thing is unlinked from previous sectors, and then the sector it is within is discovered and the thing is linked into that sector and into the blockmap.
If it was that simple, then these effects would not occur.
The code does not appear to use the blockmap to discover which sector the thing is within, but somehow it must be involved.

Where it gets thing lightings effects from a mangled blockmap, I have not discovered. It seems to be an effect of which sector the thing is linked into.

Old Post 04-17-13 00:36 #
wesleyjohnson is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Quasar
Moderator


Posts: 6088
Registered: 08-00


It's probably an open sector, such as a floating 2S line that was accidentally left attached to an orphan sector for which it's the only line.

In the presence of open sectors, ordinary BSP mathematical assumptions no longer fully apply. You can appear to be inside a certain subsector but actually be inside another one altogether. In this case the orphan sector's subsector isn't rendered in any fashion, but, a thing standing "in" it will still adopt its light level.

Old Post 04-17-13 00:45 #
Quasar is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
wesleyjohnson
Senior Member


Posts: 1032
Registered: 04-09


Those floating 2s odd sector lines (open sector, self-referencing, odd sector reference) would be suspect, but could not find one in the Requiem map in question. How many different names exist for these things ??

Do zennode and bsp respond differently to such open sectors ??
Would running Requiem through zennode change such open sector effects ??
Has anyone heard of a blockmap editor for making blockmap effects ??

Old Post 04-17-13 01:00 #
wesleyjohnson is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Mordeth
Administrator


Posts: 1993
Registered: 05-00


It's what we called shadowcasting.

Old Post 04-17-13 22:20 #
Mordeth is offline Profile || Blog || PM || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
wesleyjohnson
Senior Member


Posts: 1032
Registered: 04-09


That is interesting, but that map area does not have a sector within a sector. It only has two adjacent sectors, bordered with void, two lifts and a door. Will have to go look for missing upper textures on the linedef dividing the two sectors.

From an examination of the code have found the following.
When a thing is moved the new location is updated with a call to
R_PointInSubsector, which searches the node list to find the sector that the thing is within. This node list is obtained from the level lump. The nodebuilder creates this node list, which explains why running zennode would remove the effect.

There are some references in the zennode docs about nodebuilder effects,
and marking some sectors and linedefs to preserve special effects, but this one is not among the ones listed.

As a port developer I find these special effects worrisome, as they depend upon accidents of the vanilla source. I have doubts about them working in many modern ports. I have not been trying to preserve these effects in DoomLegacy.
I suspect that many ports, even using OpenGL, still trust the node list enough to get such a lighting effect.
The shadowcasting I suspect will not work with OpenGL.
A modified node list will be defeated by ports that build their own.

Last edited by wesleyjohnson on 04-18-13 at 01:26

Old Post 04-18-13 01:16 #
wesleyjohnson is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 07:14. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Lighting on things different than on walls

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.