VIDEO - 3dfx voodoo emulation (SDL1)

Here you can discuss the development of patches.

Re: 3dfx voodoo chip emulation is back!

Postby Serious Callers Only » 2017-7-15 @ 20:45

Another small question: does anyone know of a hacked version of glide2x.ovl that works with this emulation but doesn't have the unskippable 3dfx logo at the start? It's sort of annoying..
Serious Callers Only
Member
 
Posts: 331
Joined: 2003-4-26 @ 21:34

Re: 3dfx voodoo chip emulation is back!

Postby FeedingDragon » 2017-7-15 @ 22:25

Environment variable will do it.

FX_GLIDE_NO_SPLASH=1

A good source for other environment variable. They have information on other things as well :)

http://www.mdgx.com/3dfx.htm
Feeding Dragon
User avatar
FeedingDragon
Oldbie
 
Posts: 798
Joined: 2003-8-24 @ 03:25
Location: Central Texas

Re: 3dfx voodoo chip emulation is back!

Postby Serious Callers Only » 2017-7-16 @ 03:14

Thank you!
Serious Callers Only
Member
 
Posts: 331
Joined: 2003-4-26 @ 21:34

Re: 3dfx voodoo chip emulation is back!

Postby Serious Callers Only » 2017-7-16 @ 04:59

Another question: this patch only emulates a voodoo 1 right? I tried a v2 glide2x.ovl in tomb raider and it ran, but with degraded image quality. Though that's maybe tombraider not working well with that ovl.

(since this is using grep, it's missing env variables that do not start with SST)
If you're curious:

Code: Select all
$ strings GLIDE2X.OVL  | grep SST
_GRSSTQUERYBOARDS@4
_GRSSTQUERYHARDWARE@4
_GRSSTSELECT@4
_GRSSTSCREENWIDTH@0
_GRSSTSCREENHEIGHT@0
_GRSSTVIDMODE@8
_GRSSTWINOPEN@28m
_GRSSTWINCLOSE@0n
_GRSSTCONTROL@4o
_GRSSTPERFSTATS@4p
_GRSSTRESETPERFSTATS@0q
_GRSSTSTATUS@0r
_GRSSTVIDEOLINE@0s
_GRSSTVRETRACEON@0t
_GRSSTISBUSY@0u
_GRSSTIDLE@0w
_GRSSTORIGIN@4x
_GRSSTCONFIGPIPELINE@12y
FX_SST2
grSstSelect:  non-existent SST
guMovieStart:  unsupported on SST hardware
guMovieStop:  unsupported on SST hardware
guMovieSetName:  unsupported on SST hardware
SST_BOARDS
SST_VGA_PASS
sst1InitMapBoard(): Using SST_VGA_PASS=%d
SST_IGNORE_INIT_REGISTERS
SST_TF_FIFO_THRESH
SST_PFT_CLK_DEL
SST_TREX0INIT0
sst1InitRegisters(): Using SST_TREX0INIT0 environment variable
SST_TREX0INIT1
sst1InitRegisters(): Using SST_TREX0INIT1 environment variable
SST_PTF0_CLK_DEL
SST_TREX1INIT0
sst1InitRegisters(): Using SST_TREX1INIT0 environment variable
SST_TREX1INIT1
sst1InitRegisters(): Using SST_TREX1INIT1 environment variable
SST_PTF1_CLK_DEL
SST_TREX2INIT0
sst1InitRegisters(): Using SST_TREX2INIT0 environment variable
SST_TREX2INIT1
sst1InitRegisters(): Using SST_TREX2INIT1 environment variable
SST_PTF2_CLK_DEL
SST_SLOWPCIWR
SST_FASTPCIRD
SST_FASTMEM
SST_MEMFIFO_LFB
SST_MEMFIFO_TEX
SST_TEXMAP_DISABLE
SST_NOSHUTDOWN
sst1InitShutdown(): Bypassing shutdown with SST_NOSHUTDOWN
sst1InitShutdown(): Shutting down SST-1 #%d...
SST_BOARDS
SST_IGNORE_SLI_CHECK
SST_SLIS_VOUT_CLKDEL
SST_SLIS_PVOUT_CLKDEL
SST_SLIS_VIN_CLKDEL
SST_PCIFIFO_LWM
SST_MEMFIFO_LWM
SST_SLIM_VOUT_CLKDEL
SST_SLIM_PVOUT_CLKDEL
SST_SLIM_VIN_CLKDEL
SST_VIDEO_NOCLEAR
SST_VIDEO_CLEARCOLOR
SST_SLIDETECT
SST_TMUCFG
SST_TMUMEM_SIZE
SST_FBIMEM_SIZE
SST_FBICFG
SST_NODEVICEINFO
SST_DEBUGDAC
SST_INITDEBUG
SST_INITDEBUG_FILE
SST_DEBUGDAC
SST_GRXCLK
sst1InitCalcGrxClk(): Overriding default clk frequency with SST_GRXCLK
SST_IGNORE_INIT_VIDEO
SST_SCREENREZ
SST_SCREENREFRESH
SST_ARCADE
SST_VIDEO_24BPP
SST_HSYNC
sst1InitVideo(): Using SST_HSYNC=0x%x
SST_VSYNC
sst1InitVideo(): Using SST_VSYNC=0x%x
SST_BACKPORCH
sst1InitVideo(): Using SST_BACKPORCH=0x%x
SST_DIMENSIONS
sst1InitVideo(): Using SST_DIMENSIONS=0x%x
SST_MEMOFFSET
SST_TILESINX
SST_TRIPLE_BUFFER
SST_VFIFO_THRESH
SST_MEMFIFO_LWM
SST_MEMFIFO_HWM
SST_PCIFIFO_LWM
SST_MEMFIFO
SST_MEMFIFO_ENTRIES
SST_VIN_CLKDEL
SST_VOUT_CLKDEL
SST_VIDEO_FILTER_DISABLE
SST_VIDEO_FILTER_THRESHOLD
SST_FT_CLK_DEL
SST_TF0_CLK_DEL
SST_TF1_CLK_DEL
SST_TF2_CLK_DEL
SST_VIDCLK2X
SST_VIDEO_NOCLEAR
SST_VIDEO_CLEARCOLOR
SST_VIDEO_DISABLE
SST_DEBUGDAC
SST_RGAMMA
SST_GGAMMA
SST_BGAMMA
SST_GAMMA
SST96_TMUMEM_SIZE
SST_DUALHEAD=1
SST96_FBIJRINIT1
SST96_FBIJRINIT0
SST_TREX0INIT0
SST_TREX0INIT1
SST96_FORCE_TRIPLE
SST96_INITSWAPCOUNT
SST96_FORCEALIGN
VoodooMEssage:  pSST: 0x%x data0: 0x%x data1: 0x%x fn: 0x%x
SST_INITDEBUG
SST_DUALHEAD
DPMI: SST_DUALHEAD, *NOT* loading fxmemmap.vxd



while the degraded image quality later ovl (latest dos version) has:
Code: Select all
$ strings GLIDE2X.OVL | grep SST
_GRSSTQUERYBOARDS@4$
_GRSSTQUERYHARDWARE@4%
_GRSSTSELECT@4&
_GRSSTSCREENWIDTH@0'
_GRSSTSCREENHEIGHT@0(
_GRSSTVIDMODE@8)
_GRSSTWINOPEN@28v
_GRSSTWINCLOSE@0w
_GRSSTCONTROL@4x
_GRSSTPERFSTATS@4y
_GRSSTRESETPERFSTATS@0z
_GRSSTSTATUS@0{
_GRSSTVIDEOLINE@0|
_GRSSTVRETRACEON@0}
_GRSSTIDLE@0~
_GRSSTISBUSY@0
_GRSSTORIGIN@4
_GRSSTCONFIGPIPELINE@12
_PCISETPASSTHROUGHBASE@8
grSstSelect:  non-existent SST
SSTV2_DEBUGDAC
SSTV2_DEVICEID
SSTV2_NOREMAP
SSTV2_SWAPBOARDS
SSTV2_VGA_PASS
sst1InitMapBoard(): Using SST_VGA_PASS=%d
SSTV2_IGNORE_INIT_REGISTERS
SSTV2_TEXMAP_DISABLE
SSTV2_TF_FIFO_THRESH
SSTV2_PFT_CLKDEL
SSTV2_TREX0INIT0
sst1InitRegisters(): Using SST_TREX0INIT0 environment variable
SSTV2_TREX0INIT1
sst1InitRegisters(): Using SST_TREX0INIT1 environment variable
SSTV2_PTF0_CLKDEL
SSTV2_TREX1INIT0
sst1InitRegisters(): Using SST_TREX1INIT0 environment variable
SSTV2_TREX1INIT1
sst1InitRegisters(): Using SST_TREX1INIT1 environment variable
SSTV2_PTF1_CLKDEL
SSTV2_TREX2INIT0
sst1InitRegisters(): Using SST_TREX2INIT0 environment variable
SSTV2_TREX2INIT1
sst1InitRegisters(): Using SST_TREX2INIT1 environment variable
SSTV2_PTF2_CLKDEL
SSTV2_SLOWPCIWR
SSTV2_FASTPCIRD
SSTV2_SLOWMEM_WTR
SSTV2_SLOWMEM_RTW
SSTV2_FASTMEM_RAS_READS
SSTV2_MEMFIFO_LFB
SSTV2_MEMFIFO_TEX
SSTV2_NOSHUTDOWN
sst1InitShutdown(): Bypassing shutdown with SSTV2_NOSHUTDOWN
sst1InitShutdown(): Shutting down SST-1 #%d...
SSTV2_BOARDS
SSTV2_IGNORE_CACHING
SSTV2_TEXMAP_DISABLE
SSTV2_TMUCFG
SSTV2_TMU_MEMSIZE
SSTV2_NUM_TMUS
SSTV2_FBI_MEMSIZE
SSTV2_FBICFG
SSTV2_NODEVICEINFO
SSTV2_TEXMAP_DISABLE
SSTV2_CMDFIFO_DIRECT
SSTV2_CMDFIFO_NOHOLES
SSTV2_IGNORE_IDLE
SSTV2_SIPROCESS_CNTR
SSTV2_IGNORE_INIT_VIDEO
SSTV2_SCREENREZ
SSTV2_SCREENREFRESH
sst1InitVideo(): Allocating 1 Aux Buffer for SST-1 Compatibility...
SSTV2_ALLOC_COLOR
SSTV2_ALLOC_AUX
SSTV2_VIDEO_24BPP
SSTV2_HSYNC
sst1InitVideo(): Using SST_HSYNC=0x%x
SSTV2_VSYNC
sst1InitVideo(): Using SST_VSYNC=0x%x
SSTV2_BACKPORCH
sst1InitVideo(): Using SST_BACKPORCH=0x%x
SSTV2_DIMENSIONS
sst1InitVideo(): Using SST_DIMENSIONS=0x%x
SSTV2_MEMOFFSET
SSTV2_TILESINX
SSTV2_VFIFO_THRESH
SSTV2_MEMFIFO_LWM
SSTV2_MEMFIFO_HWM
SSTV2_PCIFIFO_LWM
SSTV2_MEMFIFO
SSTV2_MEMFIFO_ENTRIES
SSTV2_VIN_CLKDEL
SSTV2_VOUT_CLKDEL
SSTV2_VIDEO_FILTER_DISABLE
SSTV2_VIDEO_FILTER_THRESHOLD
SSTV2_VIDCLK2X
SSTV2_VIDEO_NOCLEAR
SSTV2_VIDEO_CLEARCOLOR
SSTV2_VIDEO_DISABLE
SSTV2_IGNORE_IDLE
SSTV2_DEBUGDAC
SSTV2_REFRESH_512x384
SSTV2_REFRESH_640x400
SSTV2_REFRESH_640x480
SSTV2_REFRESH_800x600
SSTV2_REFRESH_960x720
SSTV2_REFRESH_1024x768
SSTV2_MDETECT_CONST
SSTV2_MDETECT
SSTV2_IGNORE_CLKDELAYS
SSTV2_INIT_TF2_RESET_DELAY
SSTV2_INIT_TF1_RESET_DELAY
SSTV2_INIT_TF0_RESET_DELAY
SSTV2_FT_CLKDEL
SSTV2_TF0_CLKDEL
SSTV2_TF1_CLKDEL
SSTV2_TF2_CLKDEL
SSTV2_SLISWAP
SSTV2_SLIS_VOUT_CLKDEL
SSTV2_SLIS_PVOUT_CLKDEL
SSTV2_SLIS_VIN_CLKDEL
SSTV2_PCIFIFO_LWM
SSTV2_MEMFIFO_LWM
SSTV2_SLIM_VOUT_CLKDEL
SSTV2_SLIM_PVOUT_CLKDEL
SSTV2_SLIM_VIN_CLKDEL
SSTV2_IGNORE_IDLE
SSTV2_SLIDETECT
SSTV2_RGAMMA
SSTV2_GGAMMA
SSTV2_BGAMMA
SSTV2_GAMMA
?SSTV2_INITDEBUG
SSTV2_INITDEBUG_FILE
SSTV2_DEBUGDAC
SSTV2_GRXCLK
sst1InitCalcGrxClk(): Overriding default clk frequency with SST_GRXCLK
DPMI: VoodooMessage: pSST: 0x%lX data0: 0x%lX data1: 0x%lX fn: 0x%lX
SST_DUALHEAD
SSTV2_DUALHEAD


edit: found this topic:
viewtopic.php?p=596469#p596469

quite useful. The GAMMA env variables seem to do nothing in tomb raider, is this a patch bug?
Serious Callers Only
Member
 
Posts: 331
Joined: 2003-4-26 @ 21:34

Re: 3dfx voodoo chip emulation is back!

Postby Serious Callers Only » 2017-7-17 @ 14:00

Tried archimedean dynasty now. It seems to have z-fighting problems if you enable the cockpit. I was also wondering if there is a big difference on this game. It seems to me the view distance is still somewhat equal? That can't be right.
Serious Callers Only
Member
 
Posts: 331
Joined: 2003-4-26 @ 21:34

Re: 3dfx voodoo chip emulation is back!

Postby telanus » 2017-10-26 @ 14:59

Yesterplay80 wrote:The patch you're trying to use is for Windows and differs from the one for Linux and possibly OSX. Please try this one:
1_voodoo_gl.diff


There's a thread about compilig DOSBox with 3Dfx under Linux: viewtopic.php?f=32&t=21839&start=40#p361879

I tried patching the source with the patch supplied, but it says "Reversed (or previously applied) patch detected!" and doesn't apply to it anymore
My Retro PC:
Spec: PII400 with 400MB, Riva128zx and C-Media soundcard
OS: Win 98SE
Main:
Spec: Dual-Core 2.60, GeForce GT 240 3Gb Ram & Creative Audigy
OS: Win XP Pro (SP3)
User avatar
telanus
Newbie
 
Posts: 77
Joined: 2007-10-03 @ 14:20

Re: 3dfx voodoo chip emulation is back!

Postby Yesterplay80 » 2017-10-27 @ 12:15

telanus wrote:I tried patching the source with the patch supplied, but it says "Reversed (or previously applied) patch detected!" and doesn't apply to it anymore

Which source? The code from SVN or th code from ECE?
My full-featured DOSBox SVN builds (without debugger) for Windows: Vanilla DOSBox and DOSBox ECE (Enhanced Community Edition)
User avatar
Yesterplay80
Member
 
Posts: 252
Joined: 2016-2-23 @ 11:02
Location: Germany

Re: 3dfx voodoo chip emulation is back!

Postby telanus » 2017-10-27 @ 14:20

Yesterplay80 wrote:
telanus wrote:I tried patching the source with the patch supplied, but it says "Reversed (or previously applied) patch detected!" and doesn't apply to it anymore

Which source? The code from SVN or th code from ECE?

the one from ECE (not sure how this ended up here, and not in the right thread)
My Retro PC:
Spec: PII400 with 400MB, Riva128zx and C-Media soundcard
OS: Win 98SE
Main:
Spec: Dual-Core 2.60, GeForce GT 240 3Gb Ram & Creative Audigy
OS: Win XP Pro (SP3)
User avatar
telanus
Newbie
 
Posts: 77
Joined: 2007-10-03 @ 14:20

Re: 3dfx voodoo chip emulation is back!

Postby MastaG » 2017-11-01 @ 09:55

Yesterplay80 wrote:
telanus wrote:I tried patching the source with the patch supplied, but it says "Reversed (or previously applied) patch detected!" and doesn't apply to it anymore

Which source? The code from SVN or th code from ECE?


Hi Yesterplay80, I also would like to build your ECE release for linux.
However in order to apply your 1_voodoo_gl.dif patch for linux, we first need to revert the one you've already applied (which only compiles on Windows).
So is it possible you could post your current vooodoo patch, so we can revert that one first?
MastaG
Newbie
 
Posts: 10
Joined: 2010-12-23 @ 12:22

Re: VIDEO - 3dfx voodoo emulation (SDL1)

Postby Yesterplay80 » 2017-11-10 @ 10:43

These are all the patches and changed graphics I used for the Linux version of ECE:
patches.zip

gfx.zip


I'd recommend using these instead of reversing the patches of the Windows source code.
So there was some need for a linux version after all it seems...
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: 252
Joined: 2016-2-23 @ 11:02
Location: Germany

Re: VIDEO - 3dfx voodoo emulation (SDL1)

Postby telanus » 2017-11-10 @ 12:21

Yesterplay80 wrote:I'd recommend using these instead of reversing the patches of the Windows source code.
So there was some need for a linux version after all it seems...

Thanx for the patches, will try and apply and compile over the weekend. And yes there is always a need for a linux version
My Retro PC:
Spec: PII400 with 400MB, Riva128zx and C-Media soundcard
OS: Win 98SE
Main:
Spec: Dual-Core 2.60, GeForce GT 240 3Gb Ram & Creative Audigy
OS: Win XP Pro (SP3)
User avatar
telanus
Newbie
 
Posts: 77
Joined: 2007-10-03 @ 14:20

Re: VIDEO - 3dfx voodoo emulation (SDL1)

Postby Enverex » 2017-11-10 @ 17:12

I was using a big-faffy version of Glide support so I've just switched to your patch to see how well it works in comparison. Does anything need to be specified / enabled or turned on anywhere to be able to use it? Or should it "just work"?
User avatar
Enverex
Newbie
 
Posts: 41
Joined: 2016-2-09 @ 10:05
Location: UK

Re: VIDEO - 3dfx voodoo emulation (SDL1)

Postby Yesterplay80 » 2017-11-10 @ 20:13

Enverex wrote:I was using a big-faffy version of Glide support so I've just switched to your patch to see how well it works in comparison. Does anything need to be specified / enabled or turned on anywhere to be able to use it? Or should it "just work"?

It's not "my" patch, it was made by kekko. I just adapted it a little bit. It should just work, because it wraps Glide calls to OpenGL, so nothing more is required.
My full-featured DOSBox SVN builds (without debugger) for Windows: Vanilla DOSBox and DOSBox ECE (Enhanced Community Edition)
User avatar
Yesterplay80
Member
 
Posts: 252
Joined: 2016-2-23 @ 11:02
Location: Germany

Previous

Return to DOSBox Patches

Who is online

Users browsing this forum: No registered users and 1 guest