Author Topic: Question regarding the openGL port?  (Read 18673 times)

0 Members and 1 Guest are viewing this topic.

Offline Inquisitor

Question regarding the openGL port?
Penguin, vrodic, et al:

Are you keeping the openGL renderer seperate for now? Meaning, can the code you are working on, if compiled on a windows machine, still render in the DX mode? Or did you rip it out entirely?
No signature.

 

Offline penguin

  • Eudyptes codus
  • 28
  • Still alive.
Re: Question regarding the openGL port?
Quote
Originally posted by Inquisitor
Penguin, vrodic, et al:

Are you keeping the openGL renderer seperate for now? Meaning, can the code you are working on, if compiled on a windows machine, still render in the DX mode? Or did you rip it out entirely?

All the OpenGL stuff will stay in Graphics/gropengl.cpp, with the exception of a few external calls (ones that call gr_opengl_init, etc.)  The DX, Glide, etc. code is not getting touched at all.  I have added a fair number of ifndefs around the DirectX-specific stuff to get it to compile, but no code changes.
your source code slave

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Question regarding the openGL port?
What advantages does OGL confer onto us?  Speed?  Visual?  Or is it more for Linux?
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 

Offline Inquisitor

Question regarding the openGL port?
Mostly for cross platform. Many people prefer the performance of OGL applications as well.

That's good news Penguin, that's what I thought it was, that means, that if we so desired, we could update some stuff to dx8.

Just thinking thru what all can be done, not saying it should be :)
No signature.

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
Question regarding the openGL port?
IMHO OpenGL's better then DirectX. Or at least the DirectX as used by the engine. Of course, for me Glide is even better but I will check out the preformance of the OpenGL port. And when it's released I will see if it will compile under PS2Linux. One thing I just thought of, do non-X OpenGL apps run in a seperate virtual console? (or whatever you call the various Alt+ modes)
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline Redfang

  • 28
Question regarding the openGL port?
Quote
Originally posted by EdrickV
IMHO OpenGL's better then DirectX.

 
I guess I agree with you. Both are good, but OpenGL is very fast and usually I think games that use OpenGL even look better.
 
You can do much in OpenGL (Doom III):

 
But Glide was best of them all, but all of those API's are good. :nod:
 
Edit: :wtf: I wonder why image tag doesn't work...
« Last Edit: May 29, 2002, 07:09:53 am by 665 »

 

Offline IceFire

  • GTVI Section 3
  • 212
    • http://www.3dap.com/hlp/hosted/ce
Question regarding the openGL port?
Quote
That's good news Penguin, that's what I thought it was, that means, that if we so desired, we could update some stuff to dx8.

I assume that would also bring desireable performance enhancements and potential graphical enhancements too?

The big thing for me is that specular lighting and bump maping would really make FS2 look good.  Graphically it still holds out but pushing it a bit higher would really bring it up to date.  Maybe im being idealistic :D
- IceFire
BlackWater Ops, Cold Element
"Burn the land, boil the sea, you can't take the sky from me..."

 

Offline penguin

  • Eudyptes codus
  • 28
  • Still alive.
Question regarding the openGL port?
Quote
Originally posted by IceFire

I assume that would also bring desireable performance enhancements and potential graphical enhancements too?
Well, so far performance isn't so great, at least on the 2D side (3D is still :mad: under construction...)  I have read in various places that most OpenGL implementations are not optimized for 2d (DrawPixels, etc.) so this is no big surprise.  But the framerate in the 2D environment (eg command briefings) gives me about a 3 or 4 fps... the ANIs are somewhat jerky.

I have a reasonably fast machine -- 550MHz PIII w/ 128MB RAM and a GeForce3 Ti200.

A lot of stuff is not optimized at all, and this is debug mode, w/ lots of mprintfs, so hopefully we will be able to squeeze more performance out of it.  Obviously the in-game framerate is more important, and there is less 2D there -- just the HUD overlay.

The first step is getting it to work at all -- plenty of time for performance tweaks.

I flew a mission yesterday from start to finish on my Linux box ("Surrender, Belisarius!") :D :D :D  It was odd flying around w/ no 3d images, but the keyboard and targeting controls worked, so at least I could tell where the bad guys were and launch Rockeyes at the red lead indicator.
your source code slave

 

Offline Inquisitor

Question regarding the openGL port?
Is anyone else this far along? That's excellent that you actually have it working to some degree. Could you kill anything?

vrodic? You made any more progress?

Has Kazan released his openGL rendering code?

BTW, I'm told that our group CVS is in the works, sent a follow up this mornign to get an ETA, still think it might be a good idea to have a quick realtime chat :)
No signature.

 

Offline penguin

  • Eudyptes codus
  • 28
  • Still alive.
Question regarding the openGL port?
Quote
Originally posted by Inquisitor
Could you kill anything?
Yeah, according to the debrief, I got two Hercs (I dunno, I couldn't see anything ;) )  My primary hit rate was 0%, but secondary was 78%, not bad for flying blind, IMHO :p
your source code slave

 

Offline YodaSean

  • 27
  • i am so special
    • http://www.geocities.com/radioactiveyeti
Question regarding the openGL port?
Quote
Originally posted by IceFire
What advantages does OGL confer onto us?  Speed?  Visual?  Or is it more for Linux?


It would probably go a lot faster than the old version of directx that FS2 is using(5?), and I doubt theres anything in there that OpenGL couldn't do...

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Question regarding the openGL port?
Quote
Originally posted by IceFire
What advantages does OGL confer onto us?  Speed?  Visual?  Or is it more for Linux?


Just for clarity, OpenGL is the way to go. I don't care so much about faster (its plenty fast enough!), but if you've ever tried to decipher  Direct3d functions and OpenGL functions, you see that the OpenGL is almost (but not quite) human parsable.

Other than that OpenGL is just cleaner than DirectX.
[I am not really here. This post is entirely a figment of your imagination.]

 
Question regarding the openGL port?
Direct X doesn't take the full advantage of my video card.
But OGL would
Watching from the background since 17 April 2002.

  

Offline Admiral LSD

  • 27
  • Shorter of breath and one day closer to death
    • http://adphq.dyndns.org
Question regarding the openGL port?
Quote
Originally posted by mikhael
Just for clarity, OpenGL is the way to go. I don't care so much about faster (its plenty fast enough!), but if you've ever tried to decipher  Direct3d functions and OpenGL functions, you see that the OpenGL is almost (but not quite) human parsable.

Other than that OpenGL is just cleaner than DirectX.


Considering OpenGL was originally developed by Silicon Graphics for workstation use thats hardly surprising...
00:19  * Snail cockslaps BotenAnna
00:19 -!- Snail was kicked from #hard-light by BotenAnna [Don't touch me there! RAPE!!!]

15:36 <@Stealth_T1g4h> MASSIVE PENIS IN YOUR ASS Linux

I normally enjoy your pornographic website... - Stealth
Get Internet Explorer!

 
Question regarding the openGL port?
Quote
Originally posted by Inquisitor
Is anyone else this far along?


Yes.

http://icculus.org/~theoddone33/files/tricky.png
http://www.icculus.org/~relnev/the_dark_master.png

Screenshots both taken on Linux.

Sound and joystick input do not work as of this writing.  OpenGL graphics are done.

Neither of us has the full game yet, so we've been basing our work on the demo.

 

Offline EdrickV

  • Valued
  • 29
    • http://members.aol.com/HunterComputers
Question regarding the openGL port?
Now we just need it up on some CVS server so everyone can combine their efforts. :)
And so I can see if it'll actually compile on PS2Linux. ;)
Ground - "Let me help you out, you're clear to taxi any way you can, to any runway you see."

Mesh Gallery/Downloads:
http://members.aol.com/ArisKalzar/Gallery.html
Turreting 101:
http://members.aol.com/EdrickV/FS2/Turreting.html

http://members.aol.com/HunterComputers

 

Offline mikhael

  • Back to skool
  • 211
  • Fnord!
    • http://www.google.com/search?q=404error.com
Question regarding the openGL port?
Quote
Originally posted by Admiral LSD


Considering OpenGL was originally developed by Silicon Graphics for workstation use thats hardly surprising...


Nah, it has nothing to do with that. It's all about how the API was laid out. That's hardware agnostic, really. When they put together OpenGL, they went for a relatively clean namespace (for lack of a better term). Direct3d's layout, on the other hand, is messy and disjointed, with functions inheritting naming conventions from other function families that are only vaguely (if at all) related.

It makes OGL code easier to read and follow than DX code, at least from my point of view.
[I am not really here. This post is entirely a figment of your imagination.]

 

Offline phreak

  • Gun Phreak
  • 211
  • -1
Question regarding the openGL port?
DX code makes me want to puke
Offically approved by Ebola Virus Man :wtf:
phreakscp - gtalk
phreak317#7583 - discord

 

Offline Inquisitor

Question regarding the openGL port?
theoddone!

dude, that's excellent. Willing to share with the rest of us?

Lemme bug the CVS people again. Be a shame if there was this much duplicated effot :(
No signature.

 

Offline Martinus

  • Aka Maeglamor
  • 210
    • Hard Light Productions
Question regarding the openGL port?
This really is very promising :nod:

You are very welcome to HLP theoddone, that's excellent work :yes: