How does the 3D floor flag 3 work?

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

Locked
User avatar
justin023
Posts: 165
Joined: Wed Sep 21, 2005 10:51
Location: Illinois
Contact:

How does the 3D floor flag 3 work?

Post by justin023 »

I am trying to make a switch with a 3D floor but I can't figure this thing out.
User avatar
Shinjanji
Posts: 198
Joined: Sun Nov 06, 2005 16:45
Location: Pennsylvania, USA

Post by Shinjanji »

According to the documentation, a flag of 3 would disable the lighting given by the 3D floor, and restrict the (now disabled) lighting to the space occupied by the 3D floor.

/me goes to make a quick test map

Well, the only problem I can see is that the 3D floor's line texture won't change. You might need to hack a solution in with using the upper/lower sidedef texture. (Flags 16 and 32, respectively) If you do that, then it will work. Problem is, you'll probably need to utilize another 3D floor over top of or below the switch, to make up for the lack of a usable upper/lower texture.

(And I just checked, using upper/lower texture flags DOES make the switch image toggle properly)

I'm not sure if I should file the lack of texture change as a bug or a feature suggestion. I suppose I'll file it as a bug.
User avatar
justin023
Posts: 165
Joined: Wed Sep 21, 2005 10:51
Location: Illinois
Contact:

Post by justin023 »

No that is flag 2. This is the description of flag 3. I didn't think of using the 16/32 flag though.
Graf Zahl wrote:No. It uses all 5 arguments. The last one serves as the high byte of the tag. This hasn't been documented though.

But since I see the need to assign a line ID to such a linedef there's another suggestion:

I am adding another flag bit to the second arg that defines the behavior of the fifth arg:

If bit 3 (value 8) is not set the fifth arg is the high byte of the tag, otherwise it defines a line ID.
User avatar
Shinjanji
Posts: 198
Joined: Sun Nov 06, 2005 16:45
Location: Pennsylvania, USA

Post by Shinjanji »

My bad. Gotta love undocumented features :P
User avatar
justin023
Posts: 165
Joined: Wed Sep 21, 2005 10:51
Location: Illinois
Contact:

Post by justin023 »

User avatar
Shinjanji
Posts: 198
Joined: Sun Nov 06, 2005 16:45
Location: Pennsylvania, USA

Post by Shinjanji »

Hmm. Graf mentions the second argument (Which is Type, not Flags), and bit 3 (which he says is the value 8 ) I've tried setting the Type to 4, 5, 8, and 9, but I get nothing. As for Flags, I've tried setting that to a similar range of values, but with still no results.
User avatar
justin023
Posts: 165
Joined: Wed Sep 21, 2005 10:51
Location: Illinois
Contact:

Post by justin023 »

I just got it to work with the 16 flag but i'm still wondering about this.
User avatar
Shinjanji
Posts: 198
Joined: Sun Nov 06, 2005 16:45
Location: Pennsylvania, USA

Post by Shinjanji »

justin023 wrote:I just got it to work with the 16 flag but i'm still wondering about this.
Very much the same.
User avatar
BetaSword
Posts: 132
Joined: Thu Sep 01, 2005 0:01

Post by BetaSword »

Last I heard, he hadn't added it in yet. So it'll probably show up in the next version.
NecroMage
Posts: 58
Joined: Sun Sep 11, 2005 20:31
Location: nj
Contact:

Post by NecroMage »

I could dig up the quote but he said that he forgot to do it so just wait for a little bit.
Locked

Return to “GZDoom”