[0.4.0] [Blood] Some voxeled pickups appear blue

Moderator: Raze Developers

Forum rules
Please don't bump threads here if you have a problem - it will often be forgotten about if you do. Instead, make a new thread here.
Post Reply
markanini
Posts: 208
Joined: Sat Jan 18, 2020 6:10 am

[0.4.0] [Blood] Some voxeled pickups appear blue

Post by markanini »

Raze vs Fresh Supply

Some but not all pickups appear with a blue tint.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by Graf Zahl »

This has been reported before, unfortunately I haven't been able to reproduce it myself so currently I have no idea what goes wrong. It surely picks the wrong palette but I cannot say what causes it.
User avatar
Nash
 
 
Posts: 17439
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia
Contact:

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by Nash »

It happens to me too, under palette emulation mode.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by Graf Zahl »

Nash wrote: under palette emulation mode.
oooo-kayyy.
That little tidbit was missing before.
And that makes more sense because the voxels cannot use palette emulation - it needs to be disabled for them. I thought I had it working, but apparently some pieces are missing.
User avatar
sinisterseed
Posts: 1349
Joined: Tue Nov 05, 2019 6:48 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by sinisterseed »

It happens even without palette emulation, 99% of times I ran into this was without it.

Me thinks it's memory corruption/undefined behavior, kinda reminds me of a bug Cheogh had back in the summer on Linux which caused him to occasionally display in brown :v.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by Graf Zahl »

Yeah, it somehow picks the wrong palette on occasion - if I just knew how to reliably trigger it...
User avatar
sinisterseed
Posts: 1349
Joined: Tue Nov 05, 2019 6:48 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia with Vulkan support
Contact:

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by sinisterseed »

Graf Zahl wrote:Yeah, it somehow picks the wrong palette on occasion - if I just knew how to reliably trigger it...
Well there's the issue - it doesn't seem possible to reliably trigger it. Sometimes it's there, sometimes it's not.

The easiest way would be to just keep starting the game and warp to a map with plenty of ammo and voxels around until It Just Happens(TM) E1M7 was the easiest for me. I think it might also help first starting on a map, and then warping to another, just a gut feeling that it breaks when transitioning between levels.
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by _mental_ »

A texture for voxel is converted to 32-bit only once, using the current palette. With non-default palette, e.g. underwater one, the glitch will appear.
A good example is the first map of Cryptic Passage. It has flare boxes in water and on ground near the staring location.
Manuel-K
Posts: 75
Joined: Wed Mar 15, 2017 11:43 am

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by Manuel-K »

I've seen completely black voxels (the flare ammo and the exploding barrels) in e1m2. Is this the same issue?
_mental_
 
 
Posts: 3812
Joined: Sun Aug 07, 2011 4:32 am

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by _mental_ »

It's a related bug. If some voxels are visible when player enters the game for the first time in the current play session, they will appear black.
Global palette contains zero at the moment of texture processing. E1M4 or E1M5 can be loaded to trigger this issue.
User avatar
Dynamo
Posts: 1026
Joined: Sat Jun 07, 2008 5:58 am
Location: Industrial District

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by Dynamo »

This issue also appears to affect Shadow Warrior as some of the key lock voxels in the train level of Last Warrior were completely pitch black. Hopefully fixing it in one game will also fix it in the other...
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by Graf Zahl »

I did a complete rework of the texture generation for voxels. This code was still operating under assumptions that are no longer true in Raze - mainly that the original code flushed all textures on a global palette change. As a result it had no means to keep textures with different global palettes around.

Let's hope this works, but I can confirm that I saw the same voxel both underwater and above water in the same map and both looked correct.
Manuel-K
Posts: 75
Joined: Wed Mar 15, 2017 11:43 am

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by Manuel-K »

The previously black voxels at the start of e1m2 look like they are supposed to.
markanini
Posts: 208
Joined: Sat Jan 18, 2020 6:10 am

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by markanini »

Unfortunately it's still there in 0.4.1
Cryptic passage save file https://www.dropbox.com/s/qi18rhgrz33pf ... dsave?dl=0
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49067
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: [0.4.0] [Blood] Some voxeled pickups appear blue

Post by Graf Zahl »

The fix was after 0.4.1.
Post Reply

Return to “Closed Bugs [Raze]”