Sloped 3d floor planes
Posted: Thu Feb 02, 2012 18:37
I'm in the process of writing a program that converts Quake maps into GZDoom 3d floor structures. Among other things, the program will place all the control sectors on a grid at the side of the playable area. The program should accept sloped 3d floors, and therefore the corresponding control sectors will be triangles having vertex zfloor and zceiling values belonging to the 3d floor planes.
Here's what I'd like to be sure about: if a 3d floor is too steep, its planes' Z coordinates might mathematically go beyond the 16-bit limit by the time they reach the control sector's XY coordinates [the program won't place them optimally to be at the same elevation]. Do they actually wrap around in GZDoom? If they do, then it means that the zfloor and zceiling values of the controller sector can stay within the 16-bit limit too, and fit with the planes, which will wrap back around nicely until they meet with the 3d floor map sector(s), and render them where they're expected to be.
Here's what I'd like to be sure about: if a 3d floor is too steep, its planes' Z coordinates might mathematically go beyond the 16-bit limit by the time they reach the control sector's XY coordinates [the program won't place them optimally to be at the same elevation]. Do they actually wrap around in GZDoom? If they do, then it means that the zfloor and zceiling values of the controller sector can stay within the 16-bit limit too, and fit with the planes, which will wrap back around nicely until they meet with the 3d floor map sector(s), and render them where they're expected to be.