New 3d floor specials

Moderator: Graf Zahl

Locked
Dethernal
Posts: 31
Joined: Thu Jan 22, 2009 20:48

New 3d floor specials

Post by Dethernal »

Now there are only sector_set3dfoor in GZDoom. I think, that these specials may be useful :
sector_set3dfloorHERE(model id, floorangle, ceilingangle, int flags, int lineid)
sector_set3dfloorHERESolid(model id, floorangle, ceilingangle, int flags, int lineid)
sector_set3dfloorHEREUDMF(model id, floorangle, ceilingangle, int type, int flags)

This specials create 3d floor in line-front sector. angle in degrees (+89..-89, -89 is 128 + angle = 217), but for UDMF there may be fixed point value, if angle >=255. (256 is 0,004 degrees). points of 3d floor on line with this special has Z coordinates as in model sector. another points of sector has Z coordinates as model Z + sin(angle)*dstanceFromLine/C. C is 64.0 (maybe). Floor and ceilind texture for 3в floor taken from model sector.
Sector may be has many lines with this specials, earth create own 3d sloped sector :)
Image
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: New 3d floor specials

Post by Graf Zahl »

Can't be done. The model sector's planes are needed but these constructs just don't have them.
Dethernal
Posts: 31
Joined: Thu Jan 22, 2009 20:48

Re: New 3d floor specials

Post by Dethernal »

first parameter is model sector id. may be name of specials is inaccurate, sorry. This special may solve situation, where map has many sloped 3в floors (maybe not grid-aligned) with model sectors fo far from it. This specials do a task more local.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: New 3d floor specials

Post by Graf Zahl »

As I said, the model sector needs to have the slope as its floor or ceiling. This is required to do any calculations on the 3D floor, not to mention moving it. What you want here is a slope that physically does not exist anywhere in the map. This is not how 3D floors work so it can't be done.
Dethernal
Posts: 31
Joined: Thu Jan 22, 2009 20:48

Re: New 3d floor specials

Post by Dethernal »

This specials may create slope in model sector like Sector tilt things (9502/9503), but taking into account the parameters of the sector of destination (change his height automatic while level loading)
Locked

Return to “Closed Feature Suggestions”