Floor slope thing at edge of sector

Report bugs you found in any Vavoom version

Floor slope thing at edge of sector

Postby spiderman » 30 Sep 2007 04:27

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.

Image . . . . Image

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
Last edited by spiderman on 01 Oct 2007 05:18, edited 3 times in total.
User avatar
spiderman
 
Posts: 86
Joined: 13 Jul 2007 04:04

Postby Crimson Wizard » 30 Sep 2007 12:35

I don't really see a point of placing a slope thing at the edge of a sector :? I am not sure it is supposed to work anyway.
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby spiderman » 30 Sep 2007 22:07

Crimson Wizard wrote:I don't really see a point of placing a slope thing at the edge of a sector :?


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.
User avatar
spiderman
 
Posts: 86
Joined: 13 Jul 2007 04:04

Postby Crimson Wizard » 01 Oct 2007 08:52

Hmm, that's interesting, I've never knew it could be done so.
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia

Postby Firebrand » 02 Oct 2007 13:40

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.
User avatar
Firebrand
 
Posts: 1000
Joined: 11 Feb 2004 08:12
Location: Mexico

Postby spiderman » 02 Oct 2007 18:30

Firebrand wrote: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.

Firebrand wrote: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).

Firebrand wrote: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 :P
User avatar
spiderman
 
Posts: 86
Joined: 13 Jul 2007 04:04

Postby spiderman » 03 Oct 2007 01:50

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 :P

edit - previously undocumented slope things added to wiki.
User avatar
spiderman
 
Posts: 86
Joined: 13 Jul 2007 04:04

Postby Crimson Wizard » 03 Oct 2007 08:36

spiderman wrote: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 ;)
Crimson Wizard
 
Posts: 881
Joined: 09 Nov 2005 14:21
Location: St. Petersburg, Russia


Return to Bug reports

Who is online

Users browsing this forum: No registered users and 0 guests

cron