Anyways, I have a way to get my Rage AGP card to work with TA Spring. It's kindah tricky in my case (I'm telling XFree it's a ATI 8500 Radeon, and so on). Either way, the important part is that with a litle modification we can get shitty old cards to run spring. What's the trick you ask? grep for this:
1) glCompressedTexImage2DARB(...)
2) GL_COMPRESSED_RGBA_S3TC_DXT1_EXT
3) GL_LINEAR_MIPMAP_NEAREST
for any lines with 1 or 2, just comment them out (There's a for loop in /Rendering/Map/SmfReadMap.cpp so uncomment that loop, and likewise for other parts of the code)
for lines with 3, it's usually in something like this, from SmfReadMap.cpp:
Code: Select all
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR);
Code: Select all
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
I'mah go party now, because I am god (or at least his #1 man... after jesus, and the 12 deciples, and the holy ghost, and priests and nunes, and good people, and ... well shudap).make it work on old crappy video cards your friend gave you that he got from his brother in law when it stopped working cause the fan was busted and you attached the fan from an old p2 300 Mhz processor you found in the garbage to make work (thanks sinbad)
When I come back, I'll start adding some code to RtsSettings, and grep though changing code to something like this:
Code: Select all
if (configHandler.GetInt("UseMipmap", 1))
{
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR_MIPMAP_LINEAR);
} else {
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
}
Code: Select all
configHandler.GetInt("UseCompressTex", 1)
Ohh almost forgot, uncomment this line in /rednder/gl/myGl.cpp
Code: Select all
void LoadExtensions()
{
glewInit();
if(!GLEW_ARB_multitexture || !GLEW_ARB_texture_env_combine){
handleerror(0,"Needed extension GL_ARB_texture_env_combine not found","Update drivers",0);
// exit(0); Who needs a crash when you can play? :P
}
if(!GLEW_ARB_texture_compression){
handleerror(0,"Needed extension GL_ARB_texture_compression not found","Update drivers",0);
// exit(0); Who needs a crash when you can play? :P
}