Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: vyper on December 18, 2002, 02:48:22 pm

Title: OpenGL
Post by: vyper on December 18, 2002, 02:48:22 pm
What happened? Why is the thread un-stickified? I just wanna know the progress.
Title: OpenGL
Post by: phreak on December 18, 2002, 04:07:31 pm
inqui unsticked it

its basically done for now... just need a launcher so we can do registry stuff (which is ready)
Title: OpenGL
Post by: Inquisitor on December 19, 2002, 09:03:30 am
Yeah, what phreak said :)
Title: OpenGL
Post by: EdrickV on December 21, 2002, 09:34:53 pm
Quote
Originally posted by PhReAk
inqui unsticked it

its basically done for now... just need a launcher so we can do registry stuff (which is ready)


What registry info would be needed for OpenGL mode? In other words, what would the registry code look for?
Title: OpenGL
Post by: phreak on December 21, 2002, 10:51:55 pm
look for "OpenGL -" in the video card string.
Title: OpenGL
Post by: EdrickV on December 22, 2002, 12:36:58 am
Quote
Originally posted by PhReAk
look for "OpenGL -" in the video card string.


Does that mean it will not check for resolution info as Glide and D3D do? The launcher I've been working on is currently setup to do the following types:

3DFX Glide (640x480)
3DFX Glide (1024x768)
Direct 3D - Primary Display Driver (640x480)
Direct 3D - Primary Display Driver (1024x768)
Software (640x480)
OpenGL (640x480)
OpenGL (1024x768)

(I intend to remove the "Primary Display Driver" part for D3D since the game doesn't look for it. I also and no idea what would happen if you had a computer with 2 active video cards.)
Title: OpenGL
Post by: phreak on December 22, 2002, 09:57:49 am
you forgot (32 bit)
Title: OpenGL
Post by: EdrickV on December 22, 2002, 04:14:39 pm
When I made the list, I made it from what my own computer listed as options and assumptions about what other options would be. As I have a Voodoo 3, 32-bit never showed up. Does OpenGL mode check for 32-bit? Glide I'm pretty sure doesn't but can check in the original code I have, D3D I assume would, and for software it doesn't really matter much what you use. Having just gotten VC6 Intro edition I'll be trying to get the current code myself, but haven't gotten WinCVS yet and am not sure how much I'll get done before Christmas.
Title: OpenGL
Post by: phreak on December 22, 2002, 04:28:55 pm
"(32 bit)" must be in the launcher string
Title: OpenGL
Post by: phreak on December 22, 2002, 06:49:11 pm
oh and software will not be supported period once i get a fred2 in hardware mode
Title: OpenGL
Post by: Inquisitor on December 22, 2002, 08:26:01 pm
What exacly is the final form of the string?

OpenGL- (640x480) (32 bit) ?
Title: OpenGL
Post by: phreak on December 22, 2002, 08:47:29 pm
Direct 3D - Primary Display Driver (32 bit) (1024x768)
Title: OpenGL
Post by: Inquisitor on December 22, 2002, 10:26:51 pm
Hence my confusion.

Same form for the OGL?
Title: OpenGL
Post by: phreak on December 22, 2002, 11:06:09 pm
yea
Title: OpenGL
Post by: EdrickV on December 22, 2002, 11:18:22 pm
Code wise, the actual order is irrelevant. You could do: 32 bit OpenGL - (640x480) and it would still work. (It uses strstr() to check for the bits it recognizes.) Using the style already established will make it easier to read. (It's quite a list now.)

Direct 3D - Primary Display Driver (640x480)
Direct 3D - Primary Display Driver (32 bit) (640x480)
Direct 3D - Primary Display Driver (1024x768)
Direct 3D - Primary Display Driver (32 bit) (1024x768)
OpenGL - Primary Display Driver (640x480)
OpenGL - Primary Display Driver (32 bit) (640x480)
OpenGL - Primary Display Driver (1024x768)
OpenGL - Primary Display Driver (32 bit) (1024x768)
3DFX Glide (640x480)
3DFX Glide (1024x768)
Software (640x480)

Yes, I left software in there. Even if the code for it is commented out in 3.4+,  the original exe and versions prior to 3.4 are capable of using it. (And for me Software mode still beats OpenGL, which apparently won't even load in textures on a Voodoo 3, which no driver "updates" has fixed.)
Title: OpenGL
Post by: Goober5000 on December 31, 2002, 02:07:59 am
The latest fs2_open codebase does not have the stuff in the "gl" folder...

Code: [Select]
#include "gl/gl.h"
#include "gl/glu.h"
#include "gl/glext.h"


I get a fatal error because I can't compile the thing.  Can comeone commit the gl folder, please?
Title: OpenGL
Post by: phreak on December 31, 2002, 11:56:14 am
its a subfolder in the "graphics" folder
Title: OpenGL
Post by: Goober5000 on December 31, 2002, 12:03:28 pm
Hmm, yes, I see it on the website.  For some reason, it isn't coming up on CVS. :wtf:
Title: OpenGL
Post by: phreak on December 31, 2002, 03:56:05 pm
change the first two to

Code: [Select]

#include
#include


and get this file for glext.h

http://fs2source.warpcore.org/ogl/Glext.zip
Title: OpenGL
Post by: Goober5000 on December 31, 2002, 04:45:29 pm
Why - are those more up-to-date?

I did a re-checkout into a temporary folder, then got the GL folder and dumped it into graphics.  Then it worked.  But I'm not sure why it didn't work before.
Title: OpenGL
Post by: phreak on December 31, 2002, 07:30:28 pm
those are the files that come with VC6.

DTP didn't have those so I put them on cvs