Forum

What are you working on?

Discuss anything not covered by any of the other categories.

Moderator: InsideQC Admins

Postby Baker » Wed Dec 10, 2008 8:34 pm

Image

I took a slight [and still ongoing detour] to try to understand OpenGL respectably well. It was super aggravating at first, but it is starting to make a lot of sense.

I'm actually enjoying it now.

Not a project per se, but I'm pleasantly surprised at how much I'm liking it.
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby mh » Thu Dec 11, 2008 7:03 am

Porting Quake to Direct 3D cos I'm sick of poor quality OpenGL drivers. :P :twisted:

Image

So far so good! :D
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby Lardarse » Thu Dec 11, 2008 7:58 am

There was actually a D3DQuake a while ago. Might still be able to find it...
User avatar
Lardarse
 
Posts: 266
Joined: Sat Nov 05, 2005 1:58 pm
Location: Bristol, UK

Postby r00k » Thu Dec 11, 2008 8:06 am

I think Baker has a D3d ProQuake port...
r00k
 
Posts: 1110
Joined: Sat Nov 13, 2004 10:39 pm

Postby mh » Thu Dec 11, 2008 3:04 pm

Aye, but that one used a gl_fakegl for D3D equivalents of the OpenGL calls. This one is real Direct3D 9, written from scratch.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby Spike » Thu Dec 11, 2008 3:44 pm

let me know if you figure out the periodic half-second lag thing...
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby Baker » Thu Dec 11, 2008 6:40 pm

mh wrote:Aye, but that one used a gl_fakegl for D3D equivalents of the OpenGL calls. This one is real Direct3D 9, written from scratch.


Yeah that will be an interesting thing to see.

The old Direct3D Quake "port" is very crash prone and not really that good. Except to someone who otherwise can't use any GLQuake, with the Intel display adapter fix that number is very, very small.

A true native use of Direct3D in a Quake engine would be very nice.

Those ubiquitous Intel display adapters and I guess the issues with ATI cards have really hurt OpenGL (plus other things).

I [vastly] prefer platform independence [because I think this is the future eventually], but with the countless Intel display adapters in all their forms, OpenGL 1.2 is the defacto standard and will be for a very long time because of the sheer number of them -- which isn't very good compared to Direct3D 9.
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby mh » Thu Dec 11, 2008 8:08 pm

It's portability versus compatibility really, isn't it? Direct 3D will run far more flawlessly than OpenGL on a higher percentage of current hardware, unless you resort to various ugly hacks (witness Doom 3's multiple render paths), which kind of takes away from the fact that OpenGL is supposed to be easier to use. You get your basic code up and running fairly quickly, but once you start pushing the envelope you end up having to put in an equal amount of work to get there. The really nice thing about Direct 3D (especially 9, I don't know 10, and what I've seen of earlier versions makes me wince) is that it really "just works". Once you get over the whole Vertex Buffer and Lock/Unlock thing, it's actually a very nice API to code for, if a little on the verbose side at times.

Anyway, I think I have an almost complete port now; just a few days of tidying up and restructuring to do, and I'll release it. :D

Oh, and Let there be Lightmaps!.
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby Baker » Thu Dec 11, 2008 8:35 pm

mh wrote:Direct 3D will run far more flawlessly than OpenGL on a higher percentage of current hardware


Yeah, the plan of trusting the hardware manufacturer's to implement specifications properly does not have seemed to have fared so well.

/If only the OpenGL drivers were open source, I bet they could have been corrected.

Anyway, I think I have an almost complete port now; just a few days of tidying up and restructuring to do, and I'll release it. :D


That is going to be to fun try to out. :D

---

Kind of a side topic, as I've explored OpenGL more and more, I have an interesting idea that could go very well with a FitzQuake-like texture manager:

The ability to experiment with changing textures within the game in real time.

In Windows, I'd really like to have more clipboard interactivity in Quake. Not simple stuff like copy console to clipboard but sophisticated abilities like begin able to test out a map and have a paint program open and replacing textures via copy/paste and maybe other game data.
User avatar
Baker
 
Posts: 3666
Joined: Tue Mar 14, 2006 5:15 am

Postby Electro » Thu Dec 11, 2008 11:06 pm

Nice work mh! Definitely worthy of its own thread :D
Benjamin Darling
http://www.bendarling.net/

Reflex - In development competitive arena fps combining modern tech with the speed, precision and freedom of 90's shooters.
http://www.reflexfps.net/
Electro
 
Posts: 312
Joined: Wed Dec 29, 2004 11:25 pm
Location: Brisbane, Australia

Postby Urre » Fri Dec 12, 2008 4:47 pm

Wicked awesome mh, loving the 64bit lightmaps, too!
I was once a Quake modder
User avatar
Urre
 
Posts: 1109
Joined: Fri Nov 05, 2004 2:36 am
Location: Moon

Postby Chris » Fri Dec 12, 2008 4:55 pm

Image

http://mrgamedev.com/files/port/dpmgui001.zip

GUI front end I quickly put together to make dealing with dpmodel.exe a bit easier.
Chris
 
Posts: 79
Joined: Sat Aug 05, 2006 5:31 am

Postby jim » Fri Dec 12, 2008 9:39 pm

Ooh, excellent. I've been wanting to have one, but then I just lacked the coding skills to do a GUI. Going to test it soon.

edit: Tested! it's good. No need to write batch files or use command prompt anymore :)
zbang!
User avatar
jim
 
Posts: 599
Joined: Fri Aug 05, 2005 2:35 pm
Location: In The Sun

Postby Chris » Sun Dec 14, 2008 11:32 am

Chris
 
Posts: 79
Joined: Sat Aug 05, 2006 5:31 am

Postby GiffE » Sun Dec 14, 2008 1:05 pm

That's beautiful, Chris :shock:
GiffE
 
Posts: 170
Joined: Sun Oct 08, 2006 3:39 pm
Location: USA, CT

PreviousNext

Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest