Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: Lynx on August 05, 2003, 06:40:39 pm

Title: OpenGL issue
Post by: Lynx on August 05, 2003, 06:40:39 pm
Sorry to bug you, but there's a strange OpenGL error? on my system. whenever I choose in the launcher to run Freespace in OpenGL at 1024x768 it still runs at 640x480, no matter what I do, and the Pc doesn't spit an error code out. And glowmaps only function in OpenGL, but not in D3D5 or D3D8.

On a sidenote: FS2 runs quite slow on my PC no matter which .exe I use, which shouldn't be since I have a ninja 2ghz pc.What could it be?

BTW i'm using FSopen 3.5

Plz help!:(
Title: OpenGL issue
Post by: SadisticSid on August 05, 2003, 06:52:53 pm
I also have an OpenGL issue, which is best explained by images:

(http://jeff.re4lity.net/images/glcompare.jpg)

Under OpenGL

(http://jeff.re4lity.net/images/d3dcompare.jpg)

Under D3D

Yes, I'm running Inferno with Phreak's EXE but the problem also occurs using the latest SCP build running unmodded FS2 as well. Both display modes perform equally well but the OGL one seems not to smooth textures at all - it looks like things are rendered in software like one could get in FS1.

Sid.
Title: OpenGL issue
Post by: Flipside on August 05, 2003, 07:10:23 pm
Well, the 640 x 480 thing is caused by the registry, though I'm not certain how, but it happened to me before, so I deleted the DirectX entries and re-ran the launcher. I got it more through luck than judgement though, so I'd best see if someone can explain to you exactly what to do :D

Flipside
Title: OpenGL issue
Post by: Bobboau on August 05, 2003, 07:33:00 pm
I have to manualy edit the registry to get it to work
Title: OpenGL issue
Post by: phreak on August 05, 2003, 07:41:48 pm
there should be spaces between the numbers and the X

eg: 1024 x 768

sid: i think the odd textures in ogl has to do with bitmap sections
Title: OpenGL issue
Post by: Lynx on August 05, 2003, 07:50:37 pm
VideocardFs2open:  OpenGL - Primary Display Driver(1024 x 768)

It still doesn't work. :confused:
Title: OpenGL issue
Post by: Flipside on August 05, 2003, 07:56:25 pm
Is that the latest launcher in your siggy Phreak?

Flipside :D
Title: OpenGL issue
Post by: phreak on August 05, 2003, 08:02:28 pm
yea
Title: OpenGL issue
Post by: Bobboau on August 05, 2003, 08:05:30 pm
actualy I think it's caused by the texture filtering

were you set the anisotropic filtering, you should set it to triliniar biliniar if available (and anisotropic isn't)
Title: OpenGL issue
Post by: Lynx on August 05, 2003, 08:18:25 pm
Well, I'll be damned. Phreaks build actually worked.:)

Now we still have to figure out why it is so slow. My configuration is AMD Athlon 2400, Geforce 4mx 460, 256 Mb Ram. GF4Mx is not the best around, but Fs2 should run without problems, but  when  more ships are in the view the FPS goes down to about 22-18. It's like playing on  an old AMD K6.
Anybody has an idea what causes that?
Title: OpenGL issue
Post by: Bobboau on August 05, 2003, 08:37:49 pm
are you running the debug build maybe?
Title: OpenGL issue
Post by: phreak on August 05, 2003, 09:05:50 pm
no.

try defragmenting. i want to look at one part in the code tho
Title: OpenGL issue
Post by: Fry_Day on August 05, 2003, 09:06:03 pm
The error is obviously since the magnification filter is set to GL_NEAREST instead of GL_LINEAR. Should be a simple line-changing.
Phreak, how about doing glTexParameteri(GL_TEXTURE_2D,GENERATE_MIPMAP_SGIS,GL_TRUE) and glTexParameteri(GL_MIN_FILTER,GL_LINEAR_MIPMAP_NEAREST)?
Virtually every card supports auto-generating mip-maps, and larger ships tend to look terrible due to texture aliasing when using plain bilinear filtering. Rendering speed should improve, too.
Title: OpenGL issue
Post by: phreak on August 05, 2003, 09:09:04 pm
i tried auto mipmap generation and it crashed.
it seems not to like 1555 textures, or maybe i was doing something wrong
Title: OpenGL issue
Post by: phreak on August 05, 2003, 09:46:22 pm
its working, but the textures are all distorted. let me post a screenshot

(http://www.swooh.com/peon/phreak/fuctdanaus.jpg)
Title: OpenGL issue
Post by: SadisticSid on August 06, 2003, 05:49:53 am
Quote
Originally posted by Lynx
Well, I'll be damned. Phreaks build actually worked.:)

Now we still have to figure out why it is so slow. My configuration is AMD Athlon 2400, Geforce 4mx 460, 256 Mb Ram. GF4Mx is not the best around, but Fs2 should run without problems, but  when  more ships are in the view the FPS goes down to about 22-18. It's like playing on  an old AMD K6.
Anybody has an idea what causes that?


I have the same problem... everything (even loading times) seems to be about 50% slower than vanilla FS2 but this occurs in all modes (even D3D5 in the official build). Luckily it's still playable and things do look a fair bit better in OGL despite the texture problem.

Sid.
Title: OpenGL issue
Post by: Flipside on August 06, 2003, 11:03:20 am
Ok, I think I got this problem too a while back, you might have the old version of the launcher, it's something to do with D3DFast 0 or the like in the registry. Try reloading from Phreaks siggy with the launcher he updated a few days ago  :)

Flipside :D