## VIDEO - 3dfx voodoo emulation (SDL1)

Here you can discuss the development of patches.

### Re: 3dfx voodoo chip emulation is back!

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)

Yesterplay80
Member

Posts: 414
Joined: 2016-2-23 @ 11:02
Location: Germany

### Re: 3dfx voodoo chip emulation is back!

The patched DOSBox SVN is compiled normally under MinGW. However on Ubuntu 15.10 64-bit, it could not be compiled...
Newbie

Posts: 2
Joined: 2013-8-07 @ 07:26

### Re: 3dfx voodoo chip emulation is back!

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

Stiletto
l33t

Posts: 4333
Joined: 2002-7-01 @ 21:57

### Re: 3dfx voodoo chip emulation is back!

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!

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!

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)

Yesterplay80
Member

Posts: 414
Joined: 2016-2-23 @ 11:02
Location: Germany

### Re: 3dfx voodoo chip emulation is back!

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?

Chewi
Newbie

Posts: 4
Joined: 2016-9-14 @ 20:30
Location: Edinburgh, Scotland

### Re: 3dfx voodoo chip emulation is back!

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)

Yesterplay80
Member

Posts: 414
Joined: 2016-2-23 @ 11:02
Location: Germany

### Re: 3dfx voodoo chip emulation is back!

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

FeedingDragon
Oldbie

Posts: 821
Joined: 2003-8-24 @ 03:25
Location: Central Texas

### Re: 3dfx voodoo chip emulation is back!

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.

James-F
Oldbie

Posts: 1448
Joined: 2015-11-30 @ 04:10

### Re: 3dfx voodoo chip emulation is back!

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?

Chewi
Newbie

Posts: 4
Joined: 2016-9-14 @ 20:30
Location: Edinburgh, Scotland

### Re: 3dfx voodoo chip emulation is back!

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: 529
Joined: 2014-5-01 @ 20:34

### Re: 3dfx voodoo chip emulation is back!

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!

Chewi
Newbie

Posts: 4
Joined: 2016-9-14 @ 20:30
Location: Edinburgh, Scotland

### Re: 3dfx voodoo chip emulation is back!

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.

zirkoni
Member

Posts: 186
Joined: 2014-7-17 @ 08:54

### Re: 3dfx voodoo chip emulation is back!

Thanks, now it works.

James-F
Oldbie

Posts: 1448
Joined: 2015-11-30 @ 04:10

### Re: 3dfx voodoo chip emulation is back!

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.

Enverex
Newbie

Posts: 42
Joined: 2016-2-09 @ 10:05
Location: UK

### Re: 3dfx voodoo chip emulation is back!

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.

Chewi
Newbie

Posts: 4
Joined: 2016-9-14 @ 20:30
Location: Edinburgh, Scotland

### Re: 3dfx voodoo chip emulation is back!

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!

Enverex
Newbie

Posts: 42
Joined: 2016-2-09 @ 10:05
Location: UK

### Re: 3dfx voodoo chip emulation is back!

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.

zirkoni
Member

Posts: 186
Joined: 2014-7-17 @ 08:54

### Re: 3dfx voodoo chip emulation is back!

Also... 32bit vs 64bit... at least on OS X the 64bit build is only a fraction as speedy as the 32bit one...

Dominus
DOSBox Moderator

Posts: 7932
Joined: 2002-10-03 @ 09:54
Location: Ludwigsburg

PreviousNext