is there a way to tell if an engine supports texture shader?

Discuss programming in the QuakeC language.
Post Reply
necros
Posts: 77
Joined: Thu Dec 16, 2004 10:32 pm

is there a way to tell if an engine supports texture shader?

Post by necros »

i suppose i'm just missing something obvious. :P

basically, i want to detect if the engine running a progs.dat has support for the q3 style shaders (via .shader files).
i think only DP can do this anyway, so a way to detect if the engine is specifically darkplaces would work too.

is this possible? i looked through the extensions but i saw nothing concerning shaders. or did i miss it?
leileilol
Posts: 2783
Joined: Fri Oct 15, 2004 3:23 am

Re: is there a way to tell if an engine supports texture sha

Post by leileilol »

there's no qc extension for q3 .shader support, besides I can only think of five engines that support Q3 shader syntaxes

Darkplaces (2 stages only iirc)
FTEQW
eQuake (p0x mac-only engine, i don't remember if it really is q3 syntaxes or its own script knockoff)
qER (late 2000 version, did it ever release? Anyway it had a conspicuously early q3 shader code in January 2000.......... hmm......)
The suspiciously GPL-violating q1 engine that ships with CIA Operative Solo Missions, supports Q3 shader syntaxes........
i should not be here
necros
Posts: 77
Joined: Thu Dec 16, 2004 10:32 pm

Re: is there a way to tell if an engine supports texture sha

Post by necros »

ok, well, thanks for confirming that. :)
what i've been doing so far is just testing for DP_ENT_TRAILEFFECTNUM which, afaik, only DP supports. of course, if anyone adds that in, but not external textures, it'll cause problems. :\
Spike
Posts: 2914
Joined: Fri Nov 05, 2004 3:12 am
Location: UK
Contact:

Re: is there a way to tell if an engine supports texture sha

Post by Spike »

noone else advertises DP_ENT_TRAILEFFECTNUM because its basically flawed for public servers, even if they do support the builtins...
so feel free to check FTE_GFX_QUAKE3SHADERS too.
necros
Posts: 77
Joined: Thu Dec 16, 2004 10:32 pm

Re: is there a way to tell if an engine supports texture sha

Post by necros »

thanks for letting me know about FTE_GFX_QUAKE3SHADERS. didn't know about that. :)
Post Reply