VOGONS

Common searches


VIDEO - Direct3D patch (Host)

Topic actions

Reply 80 of 173, by gulikoza

User metadata
Rank Oldbie
Rank
Oldbie

Alright...fixed it 😎
When the lock fails, dosbox will switch to not passing the flag. It seems to work now in w2k.
I'll have the updated patch & build (finally!) up on my page in a few days 😀

http://www.si-gamer.net/gulikoza

Reply 82 of 173, by herman_silver

User metadata
Rank Newbie
Rank
Newbie

Ej, nice work "stari".
I'll try to modify the patch when i have time to add some additional features like correct aspect ratio on 1280x1024 LCD's. But maybe you will come ahead of me.

"Nadaljuj z dobrim delom".

Reply 84 of 173, by grifith

User metadata
Rank Newbie
Rank
Newbie

I use ykwongs Dosbox CVS and in the last two builds i noticed that using Direct3D as output and setting the window resolution doesn't work anymore.
I usually set 1280x1024 as window resolution but dosbox starts in a 16:9 sized window regardless.
Just to let you know 😉

Reply 85 of 173, by ykhwong

User metadata
Rank Oldbie
Rank
Oldbie

I think it works fine. It is probably due to the recent changes of direct3d code (res part in sdlmain.cpp).

After:

if((sdl.desktop.window.width) && (sdl.desktop.window.height)) { 
scalex=(double)sdl.desktop.window.width/(sdl.draw.width*sdl.draw.scalex);
scaley=(double)sdl.desktop.window.height/(sdl.draw.height*sdl.draw.scaley);
if(scalex < scaley) {
sdl.clip.w=sdl.desktop.window.width;
sdl.clip.h=(Bit16u)(sdl.draw.height*sdl.draw.scaley*scalex);
} else {
sdl.clip.w=(Bit16u)(sdl.draw.width*sdl.draw.scalex*scaley);
sdl.clip.h=(Bit16u)sdl.desktop.window.height;
}
scalex=(double)sdl.clip.w/width;
scaley=(double)sdl.clip.h/height;
} else {
sdl.clip.w=(Bit16u)(width*scalex);
sdl.clip.h=(Bit16u)(height*scaley);
}

Before:

if((sdl.desktop.window.width) && (sdl.desktop.window.height)) { 
sdl.clip.w=sdl.desktop.window.width;
sdl.clip.h=sdl.desktop.window.height;
scalex=(double)sdl.desktop.window.width/width;
scaley=(double)sdl.desktop.window.height/height;
} else {
sdl.clip.w=(Bit16u)(width*scalex);
sdl.clip.h=(Bit16u)(height*scaley);
}

Reply 87 of 173, by shaddam

User metadata
Rank Newbie
Rank
Newbie

hello ...

want just to bring to notice that with the last DirectX 9.0c redistributeables from Februar 2007 & Dezember 2006, the support for Windows ME, Windows98se, Windows98 & Windows95 was dropped.... 🙁

the last one with support for all of them was October 2006, here they are listed (win98se, ME...)
http://www.microsoft.com/downloads/details.as … &displaylang=en

Februar 2007 (here they are missing)
http://www.microsoft.com/downloads/details.as … &displaylang=en

so... maybe it would be idea for maxium compatiblity to link against the headers from the SDK October 2006 version...
if not a really great functionality arises which is available only in later versions....(don't think so) 😉

Reply 90 of 173, by gulikoza

User metadata
Rank Oldbie
Rank
Oldbie

Thanks to a friend of mine (and Moe!) there's some things coming real soon...who can figure out what's "wrong" with this picture? 😁

Attachments

  • d3d.png
    Filename
    d3d.png
    File size
    59.54 KiB
    Views
    1074 views
    File license
    Fair use/fair dealing exception

http://www.si-gamer.net/gulikoza

Reply 92 of 173, by neules

User metadata
Rank Newbie
Rank
Newbie

Hello Glukoza! I have yours DOSBox release with patch (direct3d)
My settings in dosbox.conf:
---------------------------
output=direct3d
pixelshader=scale2x.fx
scaler=none
windowresolution=1024x768
-------------------------------
DOSBox says me:
D3D:Pixel shader not needed
Drive C is mounted as local directory
SHELL: Redirect output to nul
D3D: Error in pixel shader shaders\scale2.fx
<1>: error X1507: failed to open source file: 'shaders\scale2x.fx'
Unable to create effect compiler from shaders\scale2x.fx
D3D: Pixel shader output disabled
============================================
What's wrong with my dosbox? Why it's don't wanna load pixelshaders?
Please ASAP!
My computer configuration:
AMD Athlon 64 3500+
2 GB DDR400 RAM
256 Nvidia GeForce 6800GT
HDD Samsung 160GB
Soundblaser Audigy
Chipset Nvidia NFORCE3 with AGP

Reply 96 of 173, by `Moe`

User metadata
Rank Oldbie
Rank
Oldbie

It's actually more than hq2x. Think of it as an advanced variant that is based on the same general idea but improves in several details.

Reply 99 of 173, by gulikoza

User metadata
Rank Oldbie
Rank
Oldbie

I have it ready, but I need a few days to put all the other patches together (and wait some time for wd and qbix to commit their pending changes to the cvs 😉)

wd wrote:

Yes it looks better

Current dosbox hq2x algorithm is slightly broken compared to old Moe's patch. See here: Super2xSaI, 2xSaI and SuperEagle

http://www.si-gamer.net/gulikoza