TEXTURES + SetLineTexture/Line_SetTextureOff = glitch

Bugs that have been resolved.

Moderator: Graf Zahl

Locked
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

TEXTURES + SetLineTexture/Line_SetTextureOff = glitch

Post by Gez »

A spin-off from this thread.
Image

The back of the robot arm shows correctly in ZDoom (in the attached version, not in the version from the original thread); but is garbled in GZDoom, as if the TEXTURES-made texture is not cleared from the sidedef before the next is drawn, and there are these odd blue lines; however the unmirrored version animates without a hitch.
Attachments
testmap.zip
(9.59 KiB) Downloaded 56 times
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: TEXTURES + SetLineTexture/Line_SetTextureOff = glitch

Post by Graf Zahl »

Looks fine for me.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: TEXTURES + SetLineTexture/Line_SetTextureOff = glitch

Post by Graf Zahl »

However, there's an error in the script. It uses an uninitialized variable. Apparently that can make OpenGL draw garbage.
User avatar
Enjay
Developer
Developer
Posts: 4748
Joined: Tue Aug 30, 2005 23:19
Location: Scotland
Contact:

Re: TEXTURES + SetLineTexture/Line_SetTextureOff = glitch

Post by Enjay »

Interesting. I get a different effect. The problem side of the line shows a double copy of the arm as it animates.

Image
User avatar
Gez
Developer
Developer
Posts: 1399
Joined: Mon Oct 22, 2007 16:47

Re: TEXTURES + SetLineTexture/Line_SetTextureOff = glitch

Post by Gez »

I've changed the script so that all variables are initialized to 0, recompiled it, and I still get garbage...
User avatar
NeoHippo
Posts: 408
Joined: Tue Sep 13, 2005 0:47
Location: British Columbia Canada

Re: TEXTURES + SetLineTexture/Line_SetTextureOff = glitch

Post by NeoHippo »

I'm still running r742.
Viewing it from the right side, it animates correctly.
However, viewing it from the left side I see what Enjay described, it animates correctly plus a constant image of the extended arm.

Let me expand on this:
With r746 I see the same kind of hash which Gez described from the left side. From the right side its ok.
User avatar
Graf Zahl
GZDoom Developer
GZDoom Developer
Posts: 7148
Joined: Wed Jul 20, 2005 9:48
Location: Germany
Contact:

Re: TEXTURES + SetLineTexture/Line_SetTextureOff = glitch

Post by Graf Zahl »

fixed. This was caused by a careless definition of the mirrored versions that ended up referencing the scaled composite textures and not the original patches and ran into some code that did not clear the texture buffer.
Locked

Return to “Closed Bugs”