Texture problem
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.
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.
- LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
- Contact:
Texture problem
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.
Re: Texture problem
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.
You're applying ROBARMxL to the back, but there are no corresponding graphics in the wad file. It only has ROBARMxR.
- LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
- Contact:
Re: Texture problem
They're defined in the TEXTURES lump, using flipped ROBARMxR patches.
Re: Texture problem
Then the X offset is probably off from the flipping.
Re: Texture problem
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.
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.
Nah.Zippy wrote:Then the X offset is probably off from the flipping.
- LilWhiteMouse
- Posts: 2270
- Joined: Tue Jul 15, 2003 7:00 pm
- Location: Maine, US
- Contact:
Re: Texture problem
Thanks, it's always the obvious things I miss.Gez wrote:the ROBARM* graphics are 128x64; but your TEXTURES lump says 256x64
Re: Texture problem
Here's the GZDoom bug thread in case you're interested.
http://forum.drdteam.org/viewtopic.php?t=4988
Edit: Bug fixed now.
http://forum.drdteam.org/viewtopic.php?t=4988
Edit: Bug fixed now.