Floor/Ceiling Texture Offset

Moderator: GZDoom Developers

Post Reply
User avatar
sk8ajoe
Posts: 23
Joined: Fri Nov 10, 2006 8:26 am
Contact:

Floor/Ceiling Texture Offset

Post by sk8ajoe »

:idea: Another suggestion is being able to offset Floor & Ceiling Textures :?:
User avatar
Wills
Posts: 1446
Joined: Mon Jan 10, 2005 7:01 pm
Location: The Well of Wishes

Post by Wills »

I don't think it's possible due to the way the Doom engine works. Sorry.
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

You can already do this.

See here and here.
User avatar
Wills
Posts: 1446
Joined: Mon Jan 10, 2005 7:01 pm
Location: The Well of Wishes

Post by Wills »

But offsetting floor/ceiling textures like you would normal sidedef textures isn't possible, right?
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

Wills wrote:But offsetting floor/ceiling textures like you would normal sidedef textures isn't possible, right?
Yes, if you place the line at the position you'd want the ceiling/floor texture to start drawing from. The line doesn't have to be a wall or anything and could be completely invisible to the player, so it accomplishes the same effect.

I imagine that the reason randy didn't just add X and Y parameters for the floor and ceiling offsets is because there's no more room in the WAD format for additional sector properties.
Last edited by HotWax on Tue Dec 19, 2006 5:53 pm, edited 1 time in total.
User avatar
sk8ajoe
Posts: 23
Joined: Fri Nov 10, 2006 8:26 am
Contact:

Post by sk8ajoe »

Cool! Thx for the info HotWax! :D
User avatar
sk8ajoe
Posts: 23
Joined: Fri Nov 10, 2006 8:26 am
Contact:

Post by sk8ajoe »

How do you use "lineid", or in DoomBuilder it's called "line tag" :?:
User avatar
Wills
Posts: 1446
Joined: Mon Jan 10, 2005 7:01 pm
Location: The Well of Wishes

Post by Wills »

Linedef action 121, Argument 1 is Line ID.
User avatar
sk8ajoe
Posts: 23
Joined: Fri Nov 10, 2006 8:26 am
Contact:

Post by sk8ajoe »

so, how do I do use linedef action 183 if I have to use linedef action 121 :?:
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49252
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Post by Graf Zahl »

You have to set it in an OPEN script with setlinespecial. Blame Raven for this particular stupidity. The 2 bytes for a line id field would have made the IWAD 50-60 kb longer and that was apparently too much for them. :(
User avatar
sk8ajoe
Posts: 23
Joined: Fri Nov 10, 2006 8:26 am
Contact:

Post by sk8ajoe »

allrighty. thx Graf!
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Post by Zippy »

I suppose it's also worth noting that as long as you are using scripting, [wiki]Sector_SetFloorPanning[/wiki] and [wiki]Sector_SetCeilingPanning[/wiki] can also be used to adjust floor and ceiling texture offsets.
User avatar
Kirby
Posts: 2697
Joined: Thu Aug 26, 2004 1:23 pm

Post by Kirby »

Zippy wrote:I suppose it's also worth noting that as long as you are using scripting, [wiki]Sector_SetFloorPanning[/wiki] and [wiki]Sector_SetCeilingPanning[/wiki] can also be used to adjust floor and ceiling texture offsets.
I was just about to mention that.....
User avatar
sk8ajoe
Posts: 23
Joined: Fri Nov 10, 2006 8:26 am
Contact:

Post by sk8ajoe »

do you have to activate "lineID using the hexen activations for a line to have a lineID or does the line, on map open, automatically have this lineID :?:
User avatar
HotWax
Posts: 10002
Joined: Fri Jul 18, 2003 6:18 pm
Location: Idaho Falls, ID

Post by HotWax »

You give the line special #121 in the editor, [wiki]Line_SetIdentification[/wiki], and set the first argument of that special to the chosen id #. If you need more than 255 unique IDs, you can use the 5th argument as a high byte (high * 256 + low = id).

You can then use various ACS commands which work on line id's using the id number you gave the line.

This obviously only works in Hexen map format.

However, it sounds like Zippy's solution is simpler if you're just looking to alter the ceiling/floor offset for a sector.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”