VOGONS


Quake2 + Acebot for DOSBox (128mb)

Topic actions

Reply 523 of 862, by __ggorts

User metadata
Rank Member
Rank
Member

There:

$(CC) $(OBJECTS) $(LDFLAGS) $(VORBIS_LIBS) $(CURL_LIBS) $(WATT32_LIBS) -Lref_gl/lib -lgl -lglu -lglid3 -lm -o $@

And this to the makefile:

CPPFLAGS = -Iref_gl/include -Iref_gl/include/glide3 -DCLIENT_SPLIT_NETFRAME

I also disabled the ogg and other functions as I've done before. This may help, too:

REFSOFT = ref_gl/gl_draw.o \
ref_gl/gl_image.o \
ref_gl/gl_light.o \
ref_gl/gl_mesh.o \
ref_gl/gl_model.o \
ref_gl/gl_rmain.o \
ref_gl/gl_rmisc.o \
ref_gl/gl_rsurf.o \
ref_gl/gl_warp.o \
ref_gl/qgl_linux.o \
ref_gl/gl_fxmesa.o

Reply 525 of 862, by Maraakate

User metadata
Rank Oldbie
Rank
Oldbie

You don't have to leave the forum just because you got stuck at a point in your programming. Nobody is a badass programmer right off the bat. Hell, I don't even know what I'm doing sometimes.

Reply 526 of 862, by Maraakate

User metadata
Rank Oldbie
Rank
Oldbie

Despite all of the previous discussion... I have ported the qbism renderer (with some updated Q2DOS fixes and custom CVARs) into the win32 "port" with no ill effects. If no problems are encountered later on I should have it as an optional renderer to select from in the video options menu and in DOS sometime tomorrow.

I noticed all ASM is stripped out, but quite a few C-Only versions changes included just relying on checking some if/else statements for colour dlights so it may be slightly trivial to add the if/else statements into ASM and bring some speed boosts back.

Reply 527 of 862, by Stiletto

User metadata
Rank l33t
Rank
l33t
Maraakate wrote:

You don't have to leave the forum just because you got stuck at a point in your programming. Nobody is a badass programmer right off the bat. Hell, I don't even know what I'm doing sometimes.

Agreed.

Also, it took me this long to realize his username was "Strogg" backwards 😁

"I see a little silhouette-o of a man, Scaramouche, Scaramouche, will you
do the Fandango!" - Queen

Stiletto

Reply 528 of 862, by Maraakate

User metadata
Rank Oldbie
Rank
Oldbie
Stiletto wrote:
Maraakate wrote:

You don't have to leave the forum just because you got stuck at a point in your programming. Nobody is a badass programmer right off the bat. Hell, I don't even know what I'm doing sometimes.

Agreed.

Also, it took me this long to realize his username was "Strogg" backwards 😁

I never noticed that either.

In any case, I added the qbism renderer to Q2DOS now. You can select it via the menu or use vid_ref "sqb". I recommend an r_lightsaturation value around 0.6 so it's not so cartoon-y.
I'm planning on trying to readapt some of the if/else stuff in the C-only code back into the ASM so we can get a speed boost back. The download is in the same place as always: https://bitbucket.org/neozeed/q2dos/downloads … S_EXE_LATEST.7Z

Reply 530 of 862, by leileilol

User metadata
Rank l33t++
Rank
l33t++

Looks like Qbism might've junked my 3dfxGL+gamma-matching colored light lookup also. For reference here is where my original crashy implementation is at., r_draw.c has the mentioned 3dfxgammamatch stuff in Draw_InitRGBMap

Last edited by leileilol on 2015-08-17, 04:41. Edited 3 times in total.

apsosig.png

Reply 532 of 862, by __ggorts

User metadata
Rank Member
Rank
Member

Forgot to post this last 3dfx version of q2dos (voodoo 1). I am now searching to verify that all code is posted for this later version, but this one is playable. Given some confirmation, then I will upload a development package for the libraries so others don't have to build the source code.

Attachments

  • Filename
    q2dos-3dfx.zip
    File size
    1.01 MiB
    Downloads
    25 downloads
    File comment
    q2dos-3dfx version
    File license
    Fair use/fair dealing exception

Reply 533 of 862, by Maraakate

User metadata
Rank Oldbie
Rank
Oldbie

Wow it does work in dosbox-g for sure. Someone with a voodoo 1 should test it out.

If you can post binaries and complete source I may be able to rebuild it with the voodoo 5 support. Even if the code base is a mess I can use beyondcompare to quickly find changes and make it work. That's what I've been using previously to peek at your code.

Reply 535 of 862, by __ggorts

User metadata
Rank Member
Rank
Member

Please find the attached with the gl renderer file and header/libs for mesa502+glide3-sst1. There is also a reference patch to show the gl renderer changes from the original, although it's already applied in the attached archive. Also, there is a patch against your latest q2dos, which should be complete, but I hobbled it together hastily.

Note that the "game quit" function is not working, so it requires further work. There are other issues, and since this is only a demo and I'm unable to properly port the gl renderer. I look forward to your port, given this is of interest to q2dos.

There were several bugs, but mainly djgpp issues. I think you will have no trouble porting the gl function to any of the quakes in dos, too. One bug was in mesa502 and it was difficult to find. It was the cause of the keyboard input problem from earlier, but it required a minor change and is in the archive. Mesa502 is available and should be compiled by x86=1 and FX=1 (I used djgpp204/gcc295). Glide3 is necessary for the hardware acceleration, but both header/libraries are there for convenience. Both include the x86.

Thank you, too, for porting qbism's renderer and for working on the assembly functions to make it faster. I'm excited to run the game with it.

Edit: I'm glad that PCem is working nicely! I haven't set it up yet, but it's great to have multiple renditions of the 3dfx emulation.

Attachments

  • Filename
    q2dos-3dfx-devpmt.zip
    File size
    1.01 MiB
    Downloads
    27 downloads
    File comment
    devpmt package
    File license
    Fair use/fair dealing exception

Reply 536 of 862, by __ggorts

User metadata
Rank Member
Rank
Member

Also attached the glide3 source code for sst1/cvg devices. The only change was to disable the splash screen in a file under sst1 (probably the only file with a recent modification date). In addition, there are mesa makefiles in case they needed; although the other package has the minor patch for mesa502, too.

Attachments

  • Filename
    glide3-sst-cvg.zip
    File size
    3.87 MiB
    Downloads
    23 downloads
    File comment
    glide3-sst-cvg source + mesa502 hints
    File license
    Fair use/fair dealing exception

Reply 537 of 862, by Maraakate

User metadata
Rank Oldbie
Rank
Oldbie

A while back you posted a diff for the voodoo 5 code for DJ 2.05. I remember sezero said you made the wrong changes in LinearWriteRegion. I can't find the patch anymore that had the appropriate changes. For some reason my glide3x directory is now missing all the changes I used previously.

Reply 539 of 862, by __ggorts

User metadata
Rank Member
Rank
Member

We can remake that code again instead. I recall the small asm line change and all his changes, too. If you're confident that everything above is complete, then we can attempt the V5 driver now, or I can advise, whichever is better.