Black pixels in videos when using palette emulation

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.
User avatar
Nash
 
 
Posts: 17319
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Black pixels in videos when using palette emulation

Post by Nash »

The cutscenes in Blood have black pixels when using palette emulation. Easy to spot in the startup Monolith movie clip.
User avatar
wildweasel
Moderator Team Lead
Posts: 21498
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10, 21H1
Graphics Processor: nVidia with Vulkan support

Re: Black pixels in videos when using palette emulation

Post by wildweasel »

Should the Blood cutscenes be subject to palette emulation to begin with? IIRC they're not in the same video format that the other Build games' videos are in, so I'm not sure that the palette isn't constantly changing anyway.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 48320
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Black pixels in videos when using palette emulation

Post by Graf Zahl »

The palette is constantly changing, and yes, for the videos this should be handled differently, the goal here is to unify the movie players into a global utility that allows playing all formats, and hopefully later also the Theora-encoded videos from Fresh Supply.
As a stopgap measure they need to disable the palette emulation. The glitch is caused by the palette emulation treating color 255 as transparent, but for the movies that isn't the case.
User avatar
Kinsie
Posts: 7333
Joined: Fri Oct 22, 2004 9:22 am
Graphics Processor: nVidia with Vulkan support
Location: MAP33

Re: Black pixels in videos when using palette emulation

Post by Kinsie »

Graf Zahl wrote:and hopefully later also the Theora-encoded videos from Fresh Supply.
In case this helps: Fresh Supply uses libogg, libvorbis, libtheora and TheoraPlay, which is small and under the zlib license.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 48320
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Black pixels in videos when using palette emulation

Post by Graf Zahl »

That will definitely help. Of course first I'll have to consolidate the movie playing code so that all games can use all formats. Right now Duke and RR only can play ANM and VPX - the VPX player cannot even do sound -, Shadow Warrior can only play ANM and Blood can only play SMK, it'd be much better if they could all just "play a video."

Return to “Closed Bugs [Raze]”