It may not be possible, so if people get mad at me, I will understand
[Feature Request]Sloped textures
[Feature Request]Sloped textures
I was wondering if it is possible to put in a line special where it would slope the texture according to 4 arguments, which are the starting ceiling/floor height and the ending ceiling/floor height. I think this would help add to the realism of certain levels and make it easier for people like me to do something like that.
It may not be possible, so if people get mad at me, I will understand
It may not be possible, so if people get mad at me, I will understand
I think what he means is to make it so that instead of having the walls of sloped hallways look kinda weird like they do now, like the floor and ceiling were just added in, make it so that one could actually have the texture slope with the floor. A similar effect is seen in Megaman Legends for the PS1 inside the ruins. Kinda makes the hallways more attached.
As I see it, basically all that's needed is a special that aligns the texture to either the ceiling slope or floor slope. The original proposal of a special that takes arguments for starting and ending ceiling and floor-heights is a little far-fetched, as it would allow stretching of the texture and probably wouldn't be as useful; it's also needlessly complex. A line special that you can pretty much slap on a line to make it slope down with its sector's floor slope is more than sufficient and would be dead simple to use.
The implementation of this shouldn't be TOO hard, unless there's some rendering optimization that gets in the way. Basically the vertical offset of the texture needs to be adjusted for each column rendered, such that the end result is a gradual incline that follows the floor's (or ceiling's) slope. Writing a function to stretch the texture arbitrarily would be a tad more difficult.
The implementation of this shouldn't be TOO hard, unless there's some rendering optimization that gets in the way. Basically the vertical offset of the texture needs to be adjusted for each column rendered, such that the end result is a gradual incline that follows the floor's (or ceiling's) slope. Writing a function to stretch the texture arbitrarily would be a tad more difficult.

