Still having trouble with sloped 3-D floors

Advanced OpenGL source port fork from ZDoom, picking up where ZDoomGL left off.
[Home] [Download] [Git builds (Win)] [Git builds (Mac)] [Wiki] [Repo] [Bugs&Suggestions]

Moderator: Graf Zahl

User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

XDelusion wrote:Ok I corrected my little mistake and the 3D sloped floors worked fine.
And there was much rejoicing. ;)
XDelusion wrote:Oh ya, one more thing, is it possible to make 3D sloped that go from east to west and not just north to south?
Of course it is. Just make sure you align your sectors properly. See the attached.
Attachments
slope2.zip
More example slopes
(3.96 KiB) Downloaded 179 times
User avatar
Syfo-Dyas
Posts: 182
Joined: Sun Oct 09, 2005 21:54
Location: Ohio
Contact:

Post by Syfo-Dyas »

I think I did, but that could have just been another crack induced "delusion". ;)

Will take home, try, etc. You know the routine. Thankx.
User avatar
Phobus
Posts: 227
Joined: Sat Sep 03, 2005 11:48
Location: Orpington, Kent, England
Contact:

Post by Phobus »

Remeber, it has to be in line with the actual slope. It sounds like your controls are to the left or right of the main sector, not to the top or bottom.
User avatar
DoomGuy
Posts: 47
Joined: Tue Apr 25, 2006 4:02

Slope 3-D floors East and West

Post by DoomGuy »

You can slope floors any direction you wish. Just make sure the control sectors 'long' side is parallel to the sector in the map. That works for me.... Sometimes you have to make sure that the control sector is exactly the same size and shape as the sector is to appear. So don't use a little triangle shape to get a long rectanglar sloped floor.

If the problem you were refering to was the red, green and blue colors under/over 3-D floors, then yes, I did figure it out. It was tagging them with a tag from a sector where I set up colors. Don't know how it happened but......
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Slope 3-D floors East and West

Post by Enjay »

DoomGuy wrote:Sometimes you have to make sure that the control sector is exactly the same size and shape as the sector is to appear.
That should never be the case. Size and shape of the control sector should have no impact on a 3D floor's size and shape in the play sector. Even alignment only becomes important when trying to ensure slopes are created how you want them.

In fact, it isn't even essential to have your control sector "long side" the same length and alignment as the play sector. It's just much easier to do it that way. Otherwise you would have to start extrapolating where the extreme ends of the game sector was in relation to the heights of the slope-to sector.
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Re: Slope 3-D floors East and West

Post by NeoHippo »

Enjay wrote:
DoomGuy wrote:Sometimes you have to make sure that the control sector is exactly the same size and shape as the sector is to appear.
...Size and shape of the control sector should have no impact on a 3D floor's size and shape in the play sector....
If it is just a flat 3D floor, then that is true, however, in the case of a sloped 3D floor it certainly does matter.
The length of the control sector will determine the amount of sloping. And to align a sloped 3D floor to two
different floor heights, the length of the control sector must match the length of the actual floor.
TAtL, tU, aE
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: Slope 3-D floors East and West

Post by Enjay »

NeoHippo wrote:however, in the case of a sloped 3D floor it certainly does matter.
The length of the control sector will determine the amount of sloping. And to align a sloped 3D floor to two
different floor heights, the length of the control sector must match the length of the actual floor.
No, as I said, that just makes it a lot easier to do. It is perfectly possible to make a control sector for a sloped floor of a different length to the play sector and have it turn out as you want. All you have to do is wrap your head around exactly how the slope will be with reference to the heights of the control and slope-to sector and the length of the play sector. It's nothing like as easy as doing it in the way you suggest, and I certainly don't normally do it myself, but there are times when it can be useful to do it (eg limited space) and I have done so. If you are familiar with splitting normal sectors and applying slopes to them, then the principle is basically the same.

So, to be clear, all I am saying is the method outlined already in this thread (and illustrated by my examples) is the way to go (ie aligned sectors of the same length for teh win ;) ). It's easiest and in 99.999% of cases it would be foolish to do otherwise. However, it is incorrect to say that it needs to be done that way. :)
User avatar
DoomGuy
Posts: 47
Joined: Tue Apr 25, 2006 4:02

sloped 3-D floor clarification thank you

Post by DoomGuy »

Thanks for the clarification on sloped 3-D floor control sector size and shape. I was trying to show the easiest way that I know and what works for me. I am sure there are many ways to do things (check out the kama-sutra lol ) but some of us are looking for the simplest way. One that works 'almost' all the time. That's why I said,
That it works for me.... and Sometimes you have to make sure ......
When some of you who are well versed in scripting and modding, have a way of doing something a better way, and you explain and put up a demo wad, then we all learn. Thank goodness there are experts in this stuff! We'd be lost without you!
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Post by Enjay »

Well, size and shape are not important but, yes, alignment and length of "long side" are if you want to do things the easy way.

Like I said, I was just trying to point out that size and shape are not particularly important and that even alignment etc are not essential. That's not to say I don't use the easy method nearly all the time - of course I do. ;)

But just to prove the point, have a look at the attached. One very small control sector and one wider than the game area. Neither particularly closely aligned (other than making sure the slope lines are in the correct direction) but both working as intended. :D Like I said, it takes a little more to work out slopes like these (check the control sector heights to see that the full length of the slope has to be considered) but it does work and can be useful.
Attachments
slope3.zip
Non-standard control sectors.
(2.71 KiB) Downloaded 167 times
Locked

Return to “GZDoom”