Back to the Vavoom Forum Archives


Forum

Floor slope thing at edge of sector

Sun, 30 Sep 2007 04:27:08

spiderman

Sometimes, no slope is drawn when floor and ceiling slope things (1500/1501) are placed at the edge of sector. I think this is because they are really in the neighboring sector. Regardless, the same slopes will work in zdoom and not in vavoom. [img:2veudp3h]http://ufo.freepgs.com/junk/path2214.png[/img:2veudp3h] . . . . [img:2veudp3h]http://ufo.freepgs.com/junk/Screenshot.jpg[/img:2veudp3h] The slope to the north (TID 1) does not render, the other does. edit: it looks like zdoom screws this up too sometimes... but maybe we can fix it anyway? ;p edit2: picasa doesn't work for hosting images =p
Sun, 30 Sep 2007 12:35:52

Crimson Wizard

I don't really see a point of placing a slope thing at the edge of a sector <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> I am not sure it is supposed to work anyway.
Sun, 30 Sep 2007 22:07:15

spiderman

[quote="Crimson Wizard":1m9xzvmc]I don't really see a point of placing a slope thing at the edge of a sector <!-- s:? --><img src="{SMILIES_PATH}/icon_confused.gif" alt=":?" title="Confused" /><!-- s:? --> Let's say you have a big room with the floor at zero, and a raised inner sector with the floor at 64. To make a ramp, put another sector next to the raised sector with the floor at 0. Put a slope thing with z height of 64 at the edge shared with the raised sector. Now you can resize your ramp sector and it will still slope evenly from the floor to the platform without having to change your slope thing's coordinates. You can get almost the same effect by for example placing the slope thing in the middle of the ramp sector and giving it a z height of 32, but if you want to resizer the sector, the slope thing will have to be moved.
Mon, 01 Oct 2007 08:52:44

Crimson Wizard

Hmm, that's interesting, I've never knew it could be done so.
Tue, 02 Oct 2007 13:40:31

Firebrand

Have you tried moving the slope thing that is near the edge a bit? The problem could be it's between both sectors and the engine can't determine which sector it belongs to, but I'm unsure of this. Slope things calculate their angle based on their Origin in the map, but in your case, it can't be done because it's exactly over the line that marks the edge, that's why I suggest you to try to move your slope thing a bit.
Tue, 02 Oct 2007 18:30:42

spiderman

[quote="Firebrand":3cq7p556]Have you tried moving the slope thing that is near the edge a bit? Yes, and this works, of course... however to keep the same slope, z height must be modified as well. [quote="Firebrand":3cq7p556]The problem could be it's between both sectors and the engine can't determine which sector it belongs to, but I'm unsure of this. Yes, or rather the engine has determined that it is in the neighboring sector (or no sector if on a one sided line). [quote="Firebrand":3cq7p556]Slope things calculate their angle based on their Origin in the map, but in your case, it can't be done because it's exactly over the line that marks the edge, that's why I suggest you to try to move your slope thing a bit. I'm not placing the slope thing on the special line (the line having arg1), I'm placing it over the line on the opposite side of the sector. If the engine decides the slope thing is in the sector with the special line, all is well, otherwise no slope is built. Here's a possible fix - instead of looping over all slope things and using PointInSector to see what sector they should affect, we could loop over all slope line specials and then find nearest matching slope thing. This would generate the same slopes, but would not require the slope thing to be inside the sector at all (which seems unnecessary as they already reference each other by Arg1 and TID). [edit] Crap, this won't work unless the lines actually have a line special. Maybe they should have a special to go with that Arg? I dunno. If this isn't a bug report, maybe it's a feature request <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P -->
Wed, 03 Oct 2007 01:50:57

spiderman

Well, I think I posted this bug prematurely. What I am looking for has been done with slope things 9500 and 9501. I'd recommend these types of slopes to mappers rather than 1500 and 1501, as they can be placed on the edge of (or even outside of) the sector. I'll probably update the wiki with these thing types soon. Janis, feel free to close the bug - sorry about that <!-- s:P --><img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz" /><!-- s:P --> edit - previously undocumented slope things added to wiki.
Wed, 03 Oct 2007 08:36:02

Crimson Wizard

[quote="spiderman":2qa0c4id]Well, I think I posted this bug prematurely. What I am looking for has been done with slope things 9500 and 9501. I'd recommend these types of slopes to mappers rather than 1500 and 1501, as they can be placed on the edge of (or even outside of) the sector. Yeah, and not only that, they make it times easier to create complex slopes, even semi-realistic terrain <!-- s;) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";)" title="Wink" /><!-- s;) -->

Back to the Vavoom Forum Archives