3dfx voodoo chip emulation is back!

Here you can discuss the development of patches.

Re: 3dfx voodoo chip emulation is back!

Postby Yesterplay80 » 2016-4-19 @ 06:43

startmenu wrote:Well, but this patch got broken on Linux, too...

For the patch to work you also need a working Glide wrapper installed. I don't know if there are any (working ones) for Linux.
My full-featured DOSBox SVN builds (without debugger) for Windows: Vanilla DOSBox and DOSBox ECE (Enhanced Community Edition)
User avatar
Yesterplay80
Member
 
Posts: 235
Joined: 2016-2-23 @ 11:02
Location: Germany

Re: 3dfx voodoo chip emulation is back!

Postby startmenu » 2016-4-19 @ 10:30

The patched DOSBox SVN is compiled normally under MinGW. However on Ubuntu 15.10 64-bit, it could not be compiled...
startmenu
Newbie
 
Posts: 2
Joined: 2013-8-07 @ 07:26

Re: 3dfx voodoo chip emulation is back!

Postby Stiletto » 2016-4-19 @ 14:26

Yesterplay80 wrote:
startmenu wrote:Well, but this patch got broken on Linux, too...

For the patch to work you also need a working Glide wrapper installed. I don't know if there are any (working ones) for Linux.


There's a few. You can compile OpenGlide for Linux, for instance. Kinda older and dated compared to dgVoodoo 2 and nGlide but it will work.
"I see a little silhouette-o of a man, Scaramouche, Scaramouche, will you
do the Fandango!" - Queen

Stiletto
User avatar
Stiletto
l33t
 
Posts: 3677
Joined: 2002-7-01 @ 21:57

Re: 3dfx voodoo chip emulation is back!

Postby bored » 2016-7-22 @ 08:19

Does anyone know if there has been a combination of this 3dfx patch with an SDL2 patch?

From a quick search of the forum, it looks like the answer is no, so may have to do it myself. :(
bored
Newbie
 
Posts: 41
Joined: 2010-5-24 @ 17:33

Re: 3dfx voodoo chip emulation is back!

Postby DrNobody » 2016-8-10 @ 20:50

The error I keep getting is:

Code: Select all
pci_bus.cpp:29:27: fatal error: ..\ints\int10.h: No such file or directory
DrNobody
Newbie
 
Posts: 9
Joined: 2016-7-10 @ 01:36

Re: 3dfx voodoo chip emulation is back!

Postby Yesterplay80 » 2016-8-26 @ 07:15

Since kekkos last patch the file "src\hardware\makefile.am" obviously changed a little bit. The patch still worked because the patcher found the correct lines to replace by itself, but nontheless I updated the patch to work without any warnings during patching with current DOSBox SVNs:
voodoo_20160825.diff
You do not have the required permissions to view the files attached to this post.
My full-featured DOSBox SVN builds (without debugger) for Windows: Vanilla DOSBox and DOSBox ECE (Enhanced Community Edition)
User avatar
Yesterplay80
Member
 
Posts: 235
Joined: 2016-2-23 @ 11:02
Location: Germany

Re: 3dfx voodoo chip emulation is back!

Postby Chewi » 2016-9-14 @ 20:54

I want to add Glide support to the DOSBox package in Gentoo Linux and I was going to use Gulikoza's before I was told about this one. I can't get this one to build on Linux though, even after fixing the obvious include with backslashes. Lots of stuff like this:

Code: Select all
In file included from voodoo_opengl.h:33:0,
                 from voodoo_emu.cpp:81:
voodoo_vogl.h:28:34: error: ‘void (* glActiveTextureARB)(GLenum)’ redeclared as different kind of symbol
 extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;


That aside, I don't quite understand how this patch works. Where's the glide2x.ovl? Would it even use openglide?
User avatar
Chewi
Newbie
 
Posts: 4
Joined: 2016-9-14 @ 20:30
Location: Edinburgh, Scotland

Re: 3dfx voodoo chip emulation is back!

Postby Yesterplay80 » 2016-9-15 @ 06:51

Chewi wrote:That aside, I don't quite understand how this patch works. Where's the glide2x.ovl? Would it even use openglide?

The *.ovl files normally are installed with the games, they don't come from DOSBox. In most games you can find it directly in the installation directory. The patch itself doesn't need a Glide wrapper, it "converts" the Glide calls into OpenGL calls, so that's all it needs.
My full-featured DOSBox SVN builds (without debugger) for Windows: Vanilla DOSBox and DOSBox ECE (Enhanced Community Edition)
User avatar
Yesterplay80
Member
 
Posts: 235
Joined: 2016-2-23 @ 11:02
Location: Germany

Re: 3dfx voodoo chip emulation is back!

Postby FeedingDragon » 2016-9-15 @ 07:06

I discovered that not all games supply their own *.ovl file. In those cases, you have to get it from one of the 3dfx driver packs. Not hard to find, FalconFly Central has pretty much all of them :) Some games, though, have the *.ovl built into them and actually don't need it at all. Most of the games designed for the Voodoo 1 chipset are like this (IIRC.)

All my DOSBox programs use a default config as their base. This mounts a common folder (D:\DOSBox\DriveC for example,) as the C: drive. In that folder I have a DOS directory that all my DOSBox configs also put in the path. Now, any file that I might need for multiple games (like the *.ovl file,) I just put in the D:\DOSBox\DriveC\DOS directory, and it will be available if any of my games need it :) Would be simpler if there was a directory that DOSBox appended to it's built in Z: directory, but I don't know if that will ever happen.
Feeding Dragon
User avatar
FeedingDragon
Oldbie
 
Posts: 789
Joined: 2003-8-24 @ 03:25
Location: Central Texas

Re: 3dfx voodoo chip emulation is back!

Postby James-F » 2016-9-15 @ 07:41

GTA doesn't seem to be fooled by this.
gta.png


Got the GLIDE2X.OVL in the PATH= I have set, the game finds it correctly, without it dosbox crashes.
Any idea?
You do not have the required permissions to view the files attached to this post.
User avatar
James-F
Oldbie
 
Posts: 1400
Joined: 2015-11-30 @ 04:10

Re: 3dfx voodoo chip emulation is back!

Postby Chewi » 2016-9-15 @ 08:38

Yesterplay80 wrote:
Chewi wrote:That aside, I don't quite understand how this patch works. Where's the glide2x.ovl? Would it even use openglide?

The *.ovl files normally are installed with the games, they don't come from DOSBox. In most games you can find it directly in the installation directory. The patch itself doesn't need a Glide wrapper, it "converts" the Glide calls into OpenGL calls, so that's all it needs.

I was confused about this because Gulikoza's patch requires a custom glide2x.ovl. Source here. Or perhaps that version just has minor improvements?
User avatar
Chewi
Newbie
 
Posts: 4
Joined: 2016-9-14 @ 20:30
Location: Edinburgh, Scotland

Re: 3dfx voodoo chip emulation is back!

Postby Sammy » 2016-9-15 @ 10:11

So far i found out, there are most 2 Glide.ovl in dosbox-Directory.

One is for setting glide=true and one for the setting glide=emu.

I copy the one i need to the Game.exe and rename it to glide2x.ovl

I also remove all glide2x.dll from Directory where dosbox.exe is.
So Dosbox searches the Path for glide2x.dll (real voodo2 oder glide wrapper like nglide oder dgvoodoo).
Sammy
Oldbie
 
Posts: 527
Joined: 2014-5-01 @ 20:34

Re: 3dfx voodoo chip emulation is back!

Postby Chewi » 2016-9-15 @ 22:17

After finding some tips in another thread, I finally got it to work, but it seems quite sluggish. Between the performance and the awkwardness in building it, I'll stick with Gulikoza's for Gentoo. Thanks anyway!
User avatar
Chewi
Newbie
 
Posts: 4
Joined: 2016-9-14 @ 20:30
Location: Edinburgh, Scotland

Re: 3dfx voodoo chip emulation is back!

Postby zirkoni » 2016-9-16 @ 11:51

James-F wrote:GTA doesn't seem to be fooled by this.
Got the GLIDE2X.OVL in the PATH= I have set, the game finds it correctly, without it dosbox crashes.
Any idea?

Which glide2x.ovl is that? The version from a GTA 3Dfx demo seems to work (see attached file).
You do not have the required permissions to view the files attached to this post.
User avatar
zirkoni
Member
 
Posts: 125
Joined: 2014-7-17 @ 08:54


Re: 3dfx voodoo chip emulation is back!

Postby Enverex » 2016-10-06 @ 16:20

DrNobody wrote:The error I keep getting is:

Code: Select all
pci_bus.cpp:29:27: fatal error: ..\ints\int10.h: No such file or directory


I'm seeing the same issue. I've applied the updated patch provided by Yesterplay80 (voodoo_20160825) instead, but still get...

Code: Select all
pci_bus.cpp:29:27: fatal error: ..\ints\int10.h: No such file or directory
 #include "..\ints\int10.h"


Is there something else missing here?

EDIT: Ok, fixed that by flipping the slashes, so it gets further now but still fails with...

Code: Select all
voodoo_vogl.cpp:328:21: error: ‘INT32’ was not declared in this scope


Swapping the INT32s out for int32_t's gets me further, but then I hit...

Code: Select all
In file included from voodoo_opengl.h:33:0,
                 from voodoo_emu.cpp:81:
voodoo_vogl.h:28:34: error: ‘void (* glActiveTextureARB)(GLenum)’ redeclared as different kind of symbol
 extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;
                                  ^~~~~~~~~~~~~~~~~~


Is this patch actually in a working state right now? It looks like it's got a lot of issues, at least on GCC6.2 on Linux.

Just noticed Chewi had the same issues and said he fixed it, but not how!

EDIT 3: Ok, this post is important, lots of changes need to be made for it to actually build. The patch isn't complete - viewtopic.php?f=32&t=21839&p=362178#p361879

Still not completely working even after all that though. Got further this time but still hit....

Code: Select all
voodoo_emu.cpp:566:14: error: ‘FALSE’ was not declared in this scope
  f->vblank = FALSE;


... in several places which appears to be a case issue. I'll fix that then report back. When it's all working I'll create a working diff/patch.
User avatar
Enverex
Newbie
 
Posts: 39
Joined: 2016-2-09 @ 10:05
Location: UK

Re: 3dfx voodoo chip emulation is back!

Postby Chewi » 2016-10-06 @ 16:51

Enverex wrote:Just noticed Chewi had the same issues and said he fixed it, but not how!


I followed this guide. Can't remember if I had to do anything besides that but that was the bulk of it. I'd be interested to know if it performs any better for you. Gulikoza's patch with OpenGlide works much better for me.
User avatar
Chewi
Newbie
 
Posts: 4
Joined: 2016-9-14 @ 20:30
Location: Edinburgh, Scotland

Re: 3dfx voodoo chip emulation is back!

Postby Enverex » 2016-10-07 @ 13:36

Used that one in the end so thanks for that. Got it working after lots of hacking about, unfortunately I get about 5fps in Carmageddon so it doesn't look like it was worth it!
User avatar
Enverex
Newbie
 
Posts: 39
Joined: 2016-2-09 @ 10:05
Location: UK

Re: 3dfx voodoo chip emulation is back!

Postby zirkoni » 2016-10-07 @ 18:06

Enverex wrote:unfortunately I get about 5fps in Carmageddon so it doesn't look like it was worth it!

Did you set voodoo=opengl in dosbox.conf? Carmageddon 3Dfx runs quite well even on my laptop.
User avatar
zirkoni
Member
 
Posts: 125
Joined: 2014-7-17 @ 08:54

Re: 3dfx voodoo chip emulation is back!

Postby Dominus » 2016-10-07 @ 18:10

Also... 32bit vs 64bit... at least on OS X the 64bit build is only a fraction as speedy as the 32bit one...
User avatar
Dominus
DOSBox Moderator
 
Posts: 7267
Joined: 2002-10-03 @ 09:54
Location: Vienna

PreviousNext

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 4 guests