3dfx voodoo chip emulation

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

Re: 3dfx voodoo chip emulation

Postby Freddo » 2011-4-26 @ 07:20

Thanks for the experimental build :)

I tried it with Redguard, and besides the graphical glitches, it seems to work well.
User avatar
Freddo
Oldbie
 
Posts: 579
Joined: 2003-10-29 @ 21:56
Location: Sweden

Re: 3dfx voodoo chip emulation

Postby xcomcmdr » 2011-4-26 @ 17:43

your building problems are not just off-topic, but they doesn't even seem to be related to the 3dfx code, so please just avoid posting these kind of issues.

Well, you did help me anyway (the "doesn't even seem to be related to the 3dfx code" part), and it built fine, minus 3 lines wich had to be commented out in voodoo_main.h (line number 2, 3, and 4).

If it really works (don't know what are the effects of commenting out "functions declarations = NULL;" lines that clashed with OpenGL - namely /usr/include/GL/gl.h - but that's off topic as you said), i'll report new bugs (with screenshots) as I find them, after having double checked it wasn't already reported.

Thanks! :)
User avatar
xcomcmdr
Newbie
 
Posts: 50
Joined: 2009-9-19 @ 01:03

Re: 3dfx voodoo chip emulation

Postby kekko » 2011-5-01 @ 16:52

A quick test with experimental "force resolution" setting...

Image Image Image Image Image
User avatar
kekko
Member
 
Posts: 476
Joined: 2004-3-24 @ 18:56

Re: 3dfx voodoo chip emulation

Postby Miki Maus » 2011-5-01 @ 18:30

Here are some results of testing with build you provided:

Carmageddon mostly works fine but HUD elements are missing and menus go from normal color to pure white, while that is happening sound stutters and game is slower but when it becomes pure white sound and speed become normal again.

ImageImage

Whiplash mostly works fine but occasionally there are horizontal lines coming from the minimap on the left.

Image

Star Fighter 3000 is unplayable with mostly black screen as only some special effects and HUD elements are visible. Also there seems to be problem with alpha in menus.

ImageImage

Keep up the good work. :wink:
User avatar
Miki Maus
Member
 
Posts: 197
Joined: 2004-10-18 @ 22:19
Location: Cave

Re: 3dfx voodoo chip emulation

Postby jomalin » 2011-5-03 @ 11:59

Some months ago I tried dgVoodoo:
http://dege.freeweb.hu/

with Carmageddon with 3dfx, it emulates it perfectly, and the graphic improvement was notable. kekko, did you try to contact the dgVoodoo programmer to help you/or try to ask him for the source code? I think you already know this glide wrapper, but I said that just in case
jomalin
Newbie
 
Posts: 51
Joined: 2010-12-14 @ 11:42

Re: 3dfx voodoo chip emulation

Postby Miki Maus » 2011-5-03 @ 17:04

I don't think it would help much since dgVoodoo is based on Direct3D but there is OpenGlide which is open source, plays Carmageddon fine through Glidos and has good compatibility with other games. IMHO, that would be better choice to draw inspiration from.
User avatar
Miki Maus
Member
 
Posts: 197
Joined: 2004-10-18 @ 22:19
Location: Cave

Re: 3dfx voodoo chip emulation

Postby gulikoza » 2011-5-03 @ 17:14

There's really very little or no relation to what the wrappers do and what kekko's emulation does...
User avatar
gulikoza
Oldbie
 
Posts: 1627
Joined: 2004-6-25 @ 14:53

Re: 3dfx voodoo chip emulation

Postby john_i_ » 2011-5-11 @ 20:45

Wow, I haven't looked at dosbox in quite a while, and today I visit an find this thread! Congrats on all the impressive work done here.

kekko, the experimental "force resolution" is something I have wanted for a very long time! I can't wait for that part of the patch! :happy:
john_i_
Newbie
 
Posts: 7
Joined: 2009-10-15 @ 18:26
Location: Austin, TX

Re: 3dfx voodoo chip emulation

Postby robertmo » 2011-5-12 @ 06:45

In tomb raider 2 i am getting exactly same colors (apart from no dithering) as on page 5 of this thread (and also some other funny colors combinations (mostly with a lot of white)). Although this time i am able to correct colors or break again (if they are correct) by switching resolution (f1,f2) and switching other stuff (f7, f8, shift-f8, f11). I mean i can make game look with proper colors with every setting unlike on page 5 when some settings were always right or always wrong. Is that a know problem?

I also noticed that tomb raider 3 (cycles=30000) is not fluent with z-buffer turned off (although it looks better that way). This could mean that z-buffer turned on is not working at all cause it is not slowing game down (it is very fluent).

x-wing has got blinking cockpit (although if you for example mark a target, cockpit is not visible at all).

tomb raider 1 - mipmapping is drawing borders around textures, (btw what is f3 for? (nothing in the readme about it), i have to press it to get rid of messy gfx)
User avatar
robertmo
l33t
 
Posts: 4033
Joined: 2003-6-18 @ 10:35

Re: 3dfx voodoo chip emulation

Postby kekko » 2011-5-12 @ 17:38

@robertmo: yep, unfortunately there are still many bugs left to fix.
about the speed with or w/o zbuffer, I did some tests and it seems that opengl accelerated renderer takes 0 to 1% of my video card, so the 3dfx emulation seem quite fast now. I guess any other slowdown is mostly due to other aspects of dosbox emulation?
tr1 shouldn't activate mipmaps (and it doesn't at my place...)

@RaVeN-05 / ADDiCT
there's a beta build available few posts above
here's the link again download.php?id=9037
User avatar
kekko
Member
 
Posts: 476
Joined: 2004-3-24 @ 18:56

Re: 3dfx voodoo chip emulation

Postby robertmo » 2011-5-12 @ 18:21

tr1 mipmapping
Attachments
tr1normal.PNG
tr1normal.PNG (312.42 KiB) Viewed 8378 times
tr1mipmapping.PNG
tr1mipmapping.PNG (321.06 KiB) Viewed 8378 times
User avatar
robertmo
l33t
 
Posts: 4033
Joined: 2003-6-18 @ 10:35

Re: 3dfx voodoo chip emulation

Postby tannerstevo » 2011-5-12 @ 19:30

As I recall, you get that same effect on real hardware when mipmapping is enabled.
tannerstevo
Member
 
Posts: 165
Joined: 2007-1-11 @ 23:56
Location: U.S.A.

Re: 3dfx voodoo chip emulation

Postby RaVeN-05 » 2011-5-13 @ 11:17

it doesnot work for me (
How to use it? Install dosbox an put dosbox_mingw.exe in dosbox directory?
but 3fx games not work
User avatar
RaVeN-05
Newbie
 
Posts: 73
Joined: 2009-12-30 @ 13:32
Location: Ukraine

Re: 3dfx voodoo chip emulation

Postby wd » 2011-5-13 @ 13:37

Bad luck.
wd
DOSBox Author
 
Posts: 10819
Joined: 2003-12-03 @ 21:23

Re: 3dfx voodoo chip emulation

Postby Orka Borka » 2011-5-16 @ 19:52

Still having the same issues under Linux/GCC 4.5 or Xcode 4[1], but I've been able to compile the patches using MSVC++ 2010 Express[2], and the results are quite amazing :happyhappy:

Here are some screenshot from 3DMark '99, a DirectX 6 (!) benchmark.
Some minor Alpha / Z Depth error here and there, especially during fillrate tests , but all around it's working pretty well:

http://i.imgur.com/XbibR.png
http://i.imgur.com/3z2Cr.png
http://i.imgur.com/icCS4.png
http://i.imgur.com/ze7jc.png
http://i.imgur.com/hicex.png

A gallery is here:

http://imgur.com/a/sBwz3#XbibR

Screenshots have been taken with Fraps, due to the dosbox built-in screenshot function not working while voodoo emulation is running.
The fps displayed are quite imprecise, and I have not noticed big performance differences between an old 1.6Ghz Core duo laptop with a Geforce go7400 and a 3.2Ghz core i3 with a radeon 5670 (iMac late 2010). Dosbox runs at 45-60 fps, excluding some scenes (again, fillrate tests) where framerate takes a noticeable drop at 5fps.


Congratulations for the astounding work, kekko :happy:

[1] vanilla dosbox compiles quite fine under linux, tough.
[2] Dosbox runs fine while compiled with /Ox optimization, /O2 make 3D Mark '99 hangs while running the animated tori Benchmark.
Orka Borka
Newbie
 
Posts: 32
Joined: 2008-2-08 @ 17:58

Re: 3dfx voodoo chip emulation

Postby jomalin » 2011-6-30 @ 13:23

Hi kekko, great work, are you still developing the 3dfx voodoo chip emulation?
jomalin
Newbie
 
Posts: 51
Joined: 2010-12-14 @ 11:42

Re: 3dfx voodoo chip emulation

Postby robertmo » 2011-7-20 @ 07:38

gulikoza wrote:Tested TombRider with Monster 1.08 ovl and seems to work fine (albeit a bit slow) :happyhappy:. A minor issue is that background is not displayed when returning to the menu, but I do remember real 3dfx cards having the same problem!

I have checked tomb raider 1 in my cyrix p166+ (133mhz), ati Mach64 2mb, 64mb ram, and background is displayed on all two voodoo1 4mb cards i have.
User avatar
robertmo
l33t
 
Posts: 4033
Joined: 2003-6-18 @ 10:35

Re: 3dfx voodoo chip emulation

Postby wd » 2011-7-20 @ 10:23

Anybody got some voodoo card that does *not* display the background?
wd
DOSBox Author
 
Posts: 10819
Joined: 2003-12-03 @ 21:23

Re: 3dfx voodoo chip emulation

Postby kekko » 2011-7-20 @ 17:56

@robertmo: may I ask you to post your glide2x.ovl file please?
User avatar
kekko
Member
 
Posts: 476
Joined: 2004-3-24 @ 18:56

Re: 3dfx voodoo chip emulation

Postby robertmo » 2011-7-20 @ 18:11

i have used the one from http://dlh.net/cgi-bin/dlp.cgi?lang=eng ... zip&ref=ps
same file is used by http://ykhwong.x-y.net/
anyway i also checked some other glide2x.ovl and it was ok too.
User avatar
robertmo
l33t
 
Posts: 4033
Joined: 2003-6-18 @ 10:35

PreviousNext

Return to DOSBox Development

Who is online

Users browsing this forum: No registered users and 2 guests