VOGONS


First post, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t

In Driver by GT Interactive, I noticed the 8-bit palettized textures option is grayed out with dgVoodoo2 even (GeForce 4TI card).

A demo of how the setting works is here:
https://www.youtube.com/watch?v=fHUquneKSak

The textures can be seen in use at Night in the Los Angeles map in San Francisco area (there are cheats available to make the map unlocking instant)

previously known as Discrete_BOB_058

Reply 1 of 7, by Dege

User metadata
Rank l33t
Rank
l33t

Actually it's a problem on the game side. The code checks against a bad pixel format descriptor for detecting 8 bit textures.
I guess an old D3D Voodoo driver described it in a wrong way (only with flag DDPF_PALETTEINDEXED8) but the real, expected format includes rgb too (DDPF_PALETTEINDEXED8 | DDPF_RGB).

You can easily patch the game for that: both in Config.exe and Game.exe, search for byte pattern 0F 85 DA 00 00 00 and change it to 0F 85 DF 00 00 00 (DA -> DF).

Reply 2 of 7, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t
Dege wrote on 2024-03-16, 11:05:

Actually it's a problem on the game side. The code checks against a bad pixel format descriptor for detecting 8 bit textures.
I guess an old D3D Voodoo driver described it in a wrong way (only with flag DDPF_PALETTEINDEXED8) but the real, expected format includes rgb too (DDPF_PALETTEINDEXED8 | DDPF_RGB).

You can easily patch the game for that: both in Config.exe and Game.exe, search for byte pattern 0F 85 DA 00 00 00 and change it to 0F 85 DF 00 00 00 (DA -> DF).

Okay that works.

I noticed another small issue as well. In the Config program, I get a dgVoodoo2 Wrapper, 3Dfx Glide and "GPU name" entry. With the "GPU name" entry, the wheels in game go missing, but dgVoodoo2 features like the paletted textures work. Why a pseudo-working dgVoodoo with the "GPU name" setting?

previously known as Discrete_BOB_058

Reply 4 of 7, by SparkTR

User metadata
Rank Newbie
Rank
Newbie
Dege wrote on 2024-03-16, 11:05:

Actually it's a problem on the game side. The code checks against a bad pixel format descriptor for detecting 8 bit textures.
I guess an old D3D Voodoo driver described it in a wrong way (only with flag DDPF_PALETTEINDEXED8) but the real, expected format includes rgb too (DDPF_PALETTEINDEXED8 | DDPF_RGB).

You can easily patch the game for that: both in Config.exe and Game.exe, search for byte pattern 0F 85 DA 00 00 00 and change it to 0F 85 DF 00 00 00 (DA -> DF).

Editing the game.exe crashes the game for me. Is there a particular instance of 0F 85 DA 00 00 00 I need to edit? There seem to be 3 of them in game.exe.

Editing the instance at 20E4C seems to have worked.

Last edited by SparkTR on 2024-03-17, 06:41. Edited 1 time in total.

Reply 5 of 7, by BEEN_Nath_58

User metadata
Rank l33t
Rank
l33t
SparkTR wrote on 2024-03-17, 06:23:
Dege wrote on 2024-03-16, 11:05:

Actually it's a problem on the game side. The code checks against a bad pixel format descriptor for detecting 8 bit textures.
I guess an old D3D Voodoo driver described it in a wrong way (only with flag DDPF_PALETTEINDEXED8) but the real, expected format includes rgb too (DDPF_PALETTEINDEXED8 | DDPF_RGB).

You can easily patch the game for that: both in Config.exe and Game.exe, search for byte pattern 0F 85 DA 00 00 00 and change it to 0F 85 DF 00 00 00 (DA -> DF).

Editing the game.exe crashes the game for me. Is there a particular instance of 0F 85 DA 00 00 00 I need to edit? There seem to be 3 of them in game.exe.

I did the first instance

previously known as Discrete_BOB_058

Reply 6 of 7, by SparkTR

User metadata
Rank Newbie
Rank
Newbie
BEEN_Nath_58 wrote on 2024-03-17, 06:35:
SparkTR wrote on 2024-03-17, 06:23:
Dege wrote on 2024-03-16, 11:05:

Actually it's a problem on the game side. The code checks against a bad pixel format descriptor for detecting 8 bit textures.
I guess an old D3D Voodoo driver described it in a wrong way (only with flag DDPF_PALETTEINDEXED8) but the real, expected format includes rgb too (DDPF_PALETTEINDEXED8 | DDPF_RGB).

You can easily patch the game for that: both in Config.exe and Game.exe, search for byte pattern 0F 85 DA 00 00 00 and change it to 0F 85 DF 00 00 00 (DA -> DF).

Editing the game.exe crashes the game for me. Is there a particular instance of 0F 85 DA 00 00 00 I need to edit? There seem to be 3 of them in game.exe.

I did the first instance

Thanks, that one works for me.

Amazing! Seeing these effects for the first time is great, I can't imagine many people have played with them before, with 8bit texture being unsupported in ~2001. This is real preservation.

Reply 7 of 7, by Joseph_Joestar

User metadata
Rank l33t
Rank
l33t
SparkTR wrote on 2024-03-17, 06:41:

Amazing! Seeing these effects for the first time is great, I can't imagine many people have played with them before, with 8bit texture being unsupported in ~2001. This is real preservation.

Every 3DFX card (starting from the original Voodoo Graphics) did support 8-bit paletted textures, so the feature was definitively available before 2001.

There were some contemporary cards from other manufacturers which supported this as well, like the ATi Rage Pro/XL, S3 Savage 4, Trident Blade 3D and so on. It's just Nvidia that lagged behind, only adding paletted texture support with their GeForce cards.

PC#1: Pentium MMX 166 / Soyo SY-5BT / S3 Trio64V+ / Voodoo1 / YMF719 / AWE64 Gold / SC-155
PC#2: AthlonXP 2100+ / ECS K7VTA3 / Voodoo3 / Audigy2 / Vortex2
PC#3: Athlon64 3400+ / Asus K8V-MX / 5900XT / Audigy2
PC#4: i5-3570K / MSI Z77A-G43 / GTX 970 / X-Fi