UDMF vertex slopes

Moderator: GZDoom Developers

Post Reply
User avatar
DavidPH
Posts: 382
Joined: Fri Aug 28, 2009 1:46 pm

UDMF vertex slopes

Post by DavidPH »

Adds UDMF properties to vertexes for applying vertex slopes to them directly, instead of via things.

Code: Select all

vertex
{
	zceiling = <float>; // Heights are absolute. Default is no slope.
	zfloor   = <float>; // Note that undefined is not the same as 0.
}
EDIT: Rewrote so that the slope data is in an external struct. An array is created when loading a UDMF map and deleted after reading the slope values. (For non-UDMF maps, the array is NULLed and the length set to 0.)
Attachments
UDMF_VERTEX_slopes.patch.7z
new patch for r3025
(1.69 KiB) Downloaded 40 times
Last edited by DavidPH on Thu Dec 09, 2010 9:44 am, edited 1 time in total.
User avatar
esselfortium
Posts: 3862
Joined: Tue Sep 19, 2006 8:43 pm
Contact:

Re: UDMF vertex slopes

Post by esselfortium »

:wub:
User avatar
Grymmoire
Posts: 589
Joined: Wed Jun 24, 2009 12:30 pm
Graphics Processor: nVidia (Modern GZDoom)
Location: Nowhere, KS

Re: UDMF vertex slopes

Post by Grymmoire »

I like this, I like this a lot.

That's 2 mappers who use vertex slopes and like this. I SEE A TREND! :P
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: UDMF vertex slopes

Post by Xaser »

10/10.

I might actually find myself using vertex slopes now. For some reason I've never felt like littering a map with extra things so I've generally stuck to the "Vaderslope" method instead.
User avatar
NeuralStunner
 
 
Posts: 12326
Joined: Tue Jul 21, 2009 12:04 pm
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Location: capital N, capital S, no space
Contact:

Re: UDMF vertex slopes

Post by NeuralStunner »

This has my vote as well.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: UDMF vertex slopes

Post by Graf Zahl »

The idea is good but the implementation is not. This increases the size of the vertex structure from 8 to 20 bytes but those 12 bytes are never ever used anymore after setup. Before this is added it needs to be changed to store the temporary data in a temporary data structure.
User avatar
DavidPH
Posts: 382
Joined: Fri Aug 28, 2009 1:46 pm

Re: UDMF vertex slopes

Post by DavidPH »

OK. I wasn't sure if it'd be a problem or not. I'll go fix that, then.
User avatar
DavidPH
Posts: 382
Joined: Fri Aug 28, 2009 1:46 pm

Re: UDMF vertex slopes

Post by DavidPH »

New patch is done. I wasn't certain what else to do with the vertexdata array, so I delete it after loading slopes. This didn't cause any problems when I tested, but if there's a better place to do so (if it should be done at all), then feel free to move it (or tell me where to move it to).
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: UDMF vertex slopes

Post by Graf Zahl »

added
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”