Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: DuncanF on March 16, 2006, 02:34:30 am

Title: D3D Vs OpenGL in Freespace
Post by: DuncanF on March 16, 2006, 02:34:30 am
Was wondering what people were using with different video cards and why.  I'm currently running OpenGL on a radeon 9800 pro with the most recent omega drivers, i find it looks better than the D3D, and seems to be more stable with the most recent CVS build.
Title: Re: D3D Vs OpenGL in Freespace
Post by: karajorma on March 16, 2006, 04:38:12 am
I think you'll find that most people who know the SCP well use OpenGL unless a bug forces them to use D3D. I know I certainly do. Haven't even run D3D in nearly 6 months.
Title: Re: D3D Vs OpenGL in Freespace
Post by: Ferret on March 16, 2006, 12:06:05 pm
Yeah after installing the Omega drivers they fixed every problem I had with OpenGL, and now it's a billion times better than using Direct 3D.
Title: Re: D3D Vs OpenGL in Freespace
Post by: taylor on March 16, 2006, 10:34:02 pm
Some of the textures for the hi-poly asteroids in the MediaVPs aren't power-of-2 so the DDS loader barfs on them.  It didn't used to, but now it does since non-power-of-2 DDS textures were crashing for many people.  I resized the textures I use a long time ago, but I don't remember exactly which ones were causing the problem (I think there were only 2 though).

If you use GIMP or Photoshop (or somthing similar) then you should just be able to open those problem files (they should start with ast*) and resize them to the next power-of-2 dimensions and then it should start working.  Or someone could just post the fixed files (I'll do it if I can figure out which ones it was).
Title: Re: D3D Vs OpenGL in Freespace
Post by: neoterran on March 17, 2006, 01:04:06 am
There are problems for some people with freezing with the most recent builds.

My suggestion is to try using an older build, but you may have to use the 3.6.7 media vps.

If you have issues, you can always temporarily use 3.6.7 release and 3.6.7mediavps until the issues with
the most recent builds have been sorted out; I'm not sure anyone is aware just yet but there are several reports of 'freezing' now in the mediavps thread so i'm sure someone will notice sooner or later.

I found out about this whole project last week and since then i've built a folder with the 2 media vp sets, 3.6.7 patched up and the release and 3.6.8, so no matter what I can play.
Title: Re: D3D Vs OpenGL in Freespace
Post by: Flipside on March 17, 2006, 01:10:01 am
I find specular etc looks a lot nicer on OpenGL, but I have a slight speed difference between the two, Direct3D is smoother than OGL. That's on an NVidia 6600.
Title: Re: D3D Vs OpenGL in Freespace
Post by: Ferret on March 17, 2006, 02:49:09 am
For some reason, when I play the Derelect SCP with voices campaign, it sometimes freezes in mission. I have an Athlon 64 3200+ processor and I am using an optimized build from 3/6/06. It froze also when I used a starndard build.
That's funny, I'm recieving the exact same problem with Derelict, with the exact same processor and the exact same build.
The game like completely locks up doesn't it? And doesn't even let you minimise? It's well weird. But I've managed to play through it now at least.
Title: Re: D3D Vs OpenGL in Freespace
Post by: DuncanF on March 17, 2006, 03:09:27 am
Yeah I had lockup problems like that in general until I switched to using OpenGL, I have yet to lock up and i'm using the 3/6/06 build.

Edit: Oh yeah, and knock on wood.
Title: Re: D3D Vs OpenGL in Freespace
Post by: starfox on March 17, 2006, 04:25:59 am
I too have the same problem with Derelict SCP Edition, the game simply and completely locks up, though this happens only sometimes and more usually under heavy firefight. I'm using Athlon XP 3400 +, wonder if it has any relation to "3200 lockup"

Can't remember if this happened during OGL or D3D though...
 :sigh:



Title: Re: D3D Vs OpenGL in Freespace
Post by: bonusbartus on March 17, 2006, 11:32:44 am
must be the same problem, I got it too, ati9800xt, AMD3200+ not64....
Using media vps .8  and tried all the latest builds, setting the -nomusic flag fixed it for me in the standard campaign, derelict keeps hanging....
I already opened a bug-thread in mantis..... a while ago
Title: Re: D3D Vs OpenGL in Freespace
Post by: Flipside on March 17, 2006, 03:36:57 pm
Odd that the -nomusic tag fixed it though, I'm assuming the error occurs in derelict even with the -nomusic tag?
Title: Re: D3D Vs OpenGL in Freespace
Post by: bonusbartus on March 17, 2006, 05:16:13 pm
yep...
but not really fixed, just less lockups...
it's not a memory problem... I've never less than 40mb free....
but still.. I cant finish the last mission from the original campaign and I cant get past a specific mission in derelict due to the lockups
Title: Re: D3D Vs OpenGL in Freespace
Post by: DuncanF on March 17, 2006, 07:51:15 pm
Have you tried switching to OpenGl or if you are using that switching to D3D?
Title: Re: D3D Vs OpenGL in Freespace
Post by: bonusbartus on March 18, 2006, 09:46:11 am
just tried, d3d doesnt run very well here... thats why I always use OpenGl, but... same crash..
Title: Re: D3D Vs OpenGL in Freespace
Post by: CP5670 on March 18, 2006, 09:53:41 am
I have been using OGL exclusively for the last few months. I was previously only using D3D in the old 9/17 build that had working environmental mapping, but the newer FRED versions save in a format that build can't recognize (but have some newer features I need), so I use newer builds only these days, in which OGL works better than D3D in every way.
Title: Re: D3D Vs OpenGL in Freespace
Post by: Flipside on March 18, 2006, 11:41:38 am
Are you using an AC97 internal card or something? It might actually be the sound settings that are causing the crash? It's just a guess, but I know from experience that X3 doesn't like onboard sound cards, and cuases similar freezes.
Title: Re: D3D Vs OpenGL in Freespace
Post by: DuncanF on March 18, 2006, 12:43:59 pm
I personally have a nvidia nforce 2 onboard soundcard, and it has never given me any problems.
Title: Re: D3D Vs OpenGL in Freespace
Post by: neoterran on March 18, 2006, 12:46:23 pm
The sound is not the problem for recent lockups. It's not a crash issue where Freespace 2 crashes, it's just that the machine randomly (sometimes after several successful missions) completely locks up, ala freezes. This only happens for me in recent CVS, i've gotten it to occur as far back as november. But it NEVER happens when i'm using the 3.6.7 release builds. I have no idea what could be causing this issue.
Title: Re: D3D Vs OpenGL in Freespace
Post by: bonusbartus on March 18, 2006, 01:47:45 pm
I found the problem here, removing the .8 delta version mv_effects.vp did the trick.... I'm going to try and find the exact problem...

btw I have a SoundBlaster Live! 5.1 platinum, with latest drivers, never given me any problems
Title: Re: D3D Vs OpenGL in Freespace
Post by: DaBrain on March 19, 2006, 03:49:31 pm
The only advantage D3D has left it Environment Mapping.

ATM I'm really working blindly. I'm adding alpha channels to all textures I work with, but I'm not sure if they'll look right. SoL doesn't work in D3D mode... so I've a problem.

I'd also like to know how Env mapping will look in OpenGL. Will it look different?


I prefer OpenGL atm. It's faster and the shine mapping looks better, but I'd also like to see some more advanced features in the future.
Title: Re: D3D Vs OpenGL in Freespace
Post by: CP5670 on March 19, 2006, 03:58:47 pm
[q]The only advantage D3D has left it Environment Mapping.[/q]

It doesn't even have that anymore, unless you're using FSO versions that are several months old. (in any build after about mid-October, the game crashes instantly when a mission starts with -env on)
Title: Re: D3D Vs OpenGL in Freespace
Post by: DaBrain on March 19, 2006, 05:11:22 pm
Ah, so that's the reason it doesn't work for anymore.  :wtf:
Title: Re: D3D Vs OpenGL in Freespace
Post by: Mehrpack on March 19, 2006, 06:03:23 pm
[q]The only advantage D3D has left it Environment Mapping.[/q]

It doesn't even have that anymore, unless you're using FSO versions that are several months old. (in any build after about mid-October, the game crashes instantly when a mission starts with -env on)

hi,
äh, for me not.
i can use D3D and Env-Mapping without any problems.
and yes i used the lastest builds.

doesnt know why it work for me, if the rest crash, but it works :D.

Mehrpack
Title: Re: D3D Vs OpenGL in Freespace
Post by: Sphynx on March 21, 2006, 07:58:07 am
I've noticed something happening in OGL which doesn't happen in D3D.

In Wing Commander Saga, we have built a model of the Longbow bomber, which is slow and sluggish. There is a slight visual problem that happens when I let up on the control stick and just let the bomber drift into straight flight. If I am facing a capital ship, as the turning speed slows to its last little point, the capital ship seems to sort of "jiggle" back and forth in space a little bit.

I haven't had the time to see if this happens when flying the slow and sluggish bombers in FS2. Has anyone else noticed something like this, and if so, is there a possible solution?
Title: Re: D3D Vs OpenGL in Freespace
Post by: CP5670 on March 21, 2006, 10:02:30 am
[q]The only advantage D3D has left it Environment Mapping.[/q]

It doesn't even have that anymore, unless you're using FSO versions that are several months old. (in any build after about mid-October, the game crashes instantly when a mission starts with -env on)

hi,
äh, for me not.
i can use D3D and Env-Mapping without any problems.
and yes i used the lastest builds.

doesnt know why it work for me, if the rest crash, but it works :D.

Mehrpack

Really? I found that in some November builds, FS2 would work with no mods and crashed only with certain mods installed, but after that it has always just crashed for me no matter what. I think you're the first person I've seen who it actually works for. :D I wonder if it's hardware dependent or something.
Title: Re: D3D Vs OpenGL in Freespace
Post by: taylor on March 21, 2006, 10:21:36 am
the capital ship seems to sort of "jiggle" back and forth in space a little bit.
It's in Mantis already.  Nothing I've tried has fixed it yet though.  It's on my list of bugs to revisit this week before I go on a hiatus, but that's not to say that it won't stay broken for a few more months.
Title: Re: D3D Vs OpenGL in Freespace
Post by: Mehrpack on March 21, 2006, 05:14:40 pm
Really? I found that in some November builds, FS2 would work with no mods and crashed only with certain mods installed, but after that it has always just crashed for me no matter what. I think you're the first person I've seen who it actually works for. :D I wonder if it's hardware dependent or something.

hi,
really, really.
i have it read very often that environment mapping not work with newer builds for the most people.
doesnt know why, i only know its work for me.

maybe thats will help: i have win2k as operation system, a nvidia card and an athlon64 cpu.
installed are the lastest dx9c build (february) and the driver is 81.98, but with my older driver, was 7x.xx, it had work, too.
and i had use the alpha-maps for environment mapping.

Mehrpack
Title: Re: D3D Vs OpenGL in Freespace
Post by: Sphynx on March 22, 2006, 05:46:19 am
@ talyor,

Thanks for the response!