Texture problem

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
LilWhiteMouse
Posts: 2270
Joined: Tue Jul 15, 2003 7:00 pm
Location: Maine, US
Contact:

Texture problem

Post by LilWhiteMouse »

I'm not sure where I'm going wrong. I'm using SetLineTexture(), Line_SetTextureOffset(), as well as textures defined in the TEXTURES lump, but I can't see anything wrong with my formatting. When all the above come into play, the texture on the front side of the lines appear just fine, but not the back side. I've stripped everything down to provide an example wad. I need a fresh pair of eyes to see where my mistake is.
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Re: Texture problem

Post by Zippy »

The textures don't appear on the back because they don't exist in the wad. In this example at least...

You're applying ROBARMxL to the back, but there are no corresponding graphics in the wad file. It only has ROBARMxR.
User avatar
LilWhiteMouse
Posts: 2270
Joined: Tue Jul 15, 2003 7:00 pm
Location: Maine, US
Contact:

Re: Texture problem

Post by LilWhiteMouse »

They're defined in the TEXTURES lump, using flipped ROBARMxR patches.
User avatar
Zippy
Posts: 3302
Joined: Wed Mar 23, 2005 5:31 pm
Location: New Jersey

Re: Texture problem

Post by Zippy »

Then the X offset is probably off from the flipping.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Texture problem

Post by Gez »

First issue I found was that the patches are between TX_ markers, not P_ markers. However, fixing that doesn't solve the problem.
Second issue I found was that the patch dimensions were incorrectly given: the ROBARM* graphics are 128x64; but your TEXTURES lump says 256x64. Fixing this solves the problem in ZDoom. In GZDoom, however, something weird happens. I'm going to report that as a possible GZDoom bug.
Zippy wrote:Then the X offset is probably off from the flipping.
Nah.
User avatar
LilWhiteMouse
Posts: 2270
Joined: Tue Jul 15, 2003 7:00 pm
Location: Maine, US
Contact:

Re: Texture problem

Post by LilWhiteMouse »

Gez wrote:the ROBARM* graphics are 128x64; but your TEXTURES lump says 256x64
Thanks, it's always the obvious things I miss.
Gez
 
 
Posts: 17938
Joined: Fri Jul 06, 2007 3:22 pm

Re: Texture problem

Post by Gez »

Here's the GZDoom bug thread in case you're interested.
http://forum.drdteam.org/viewtopic.php?t=4988

Edit: Bug fixed now.
Locked

Return to “Editing (Archive)”