Mode-X 320x240 graphics issues in Q2DOS

Support and general discussion.
Maraakate
Posts: 5
Joined: Mon 24 Aug, 2015 5:11 am

Mode-X 320x240 graphics issues in Q2DOS

Postby Maraakate » Mon 24 Aug, 2015 9:34 pm

Recently, we switched our code in Q2DOS to default to 320x240 Mode-X. The reasons were that the original ports expected the game to be in a 4:3 resolution and the canonical resolution was 320x240. In any case, this change worked OK in real DOS, Win9x Dos Box, and in the DOSBox emulator itself.

Someone brought to my attention that it does not work in pcem showing a graphics corruption issue similar to NTVDM.

Image

You can verify the issue by downloading https://bitbucket.org/neozeed/q2dos/dow ... _SWonly.7z and you can check it against our current video code at
https://bitbucket.org/neozeed/q2dos/src ... ?at=master
https://bitbucket.org/neozeed/q2dos/src ... ?at=master

We are using Quake 1's video code for rendering Planar modes and it's possible we may have implemented something incorrectly, but considering it works on real hardware just fine it's rather hard to say.

To test out the resolution go to the video menu and select VGA-X 320x240 (should be sw_mode 1).
User avatar
ppgrainbow
Posts: 402
Joined: Thu 04 Sep, 2014 7:03 am
Contact:

Re: Mode-X 320x240 graphics issues in Q2DOS

Postby ppgrainbow » Mon 24 Aug, 2015 9:49 pm

Maraakate wrote:Recently, we switched our code in Q2DOS to default to 320x240 Mode-X. The reasons were that the original ports expected the game to be in a 4:3 resolution and the canonical resolution was 320x240. In any case, this change worked OK in real DOS, Win9x Dos Box, and in the DOSBox emulator itself.

Someone brought to my attention that it does not work in pcem showing a graphics corruption issue similar to NTVDM.

Image

You can verify the issue by downloading https://bitbucket.org/neozeed/q2dos/dow ... _SWonly.7z and you can check it against our current video code at
https://bitbucket.org/neozeed/q2dos/src ... ?at=master
https://bitbucket.org/neozeed/q2dos/src ... ?at=master

We are using Quake 1's video code for rendering Planar modes and it's possible we may have implemented something incorrectly, but considering it works on real hardware just fine it's rather hard to say.

To test out the resolution go to the video menu and select VGA-X 320x240 (should be sw_mode 1).

That doesn't sound so good. :( I sure hope that it gets fixed.

Maraakate, what emulated video card were you using to try to run Quake II for DOS that does not work properly in VGA-X 320x240 mode?
Last edited by ppgrainbow on Mon 24 Aug, 2015 10:40 pm, edited 1 time in total.
User avatar
leilei
Posts: 431
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Mode-X 320x240 graphics issues in Q2DOS

Postby leilei » Mon 24 Aug, 2015 10:35 pm

It seems to work fine for me on ATI Mach64 GX, ATI-18800, ATI-28800 OAK OTI-067 S3 Trio 64, S3 Vision 864, S3 ViRGE, Tseng ET4000/W32p, Tseng ET4000AX,. It even works on the plain VGA



it DOES NOT work on the Trident TGUI9440 and the Trident TVGA8900D (which is what that screenshot seems to represent)
Attachments
q2dos.png
q2dos.png (28.22 KiB) Viewed 1637 times
q2-TGUI9440.png
q2-TGUI9440.png (9.91 KiB) Viewed 1637 times
q2-TVGA8900D.png
q2-TVGA8900D.png (7.08 KiB) Viewed 1637 times
Last edited by leilei on Mon 24 Aug, 2015 10:46 pm, edited 1 time in total.
Maraakate
Posts: 5
Joined: Mon 24 Aug, 2015 5:11 am

Re: Mode-X 320x240 graphics issues in Q2DOS

Postby Maraakate » Mon 24 Aug, 2015 10:45 pm

I don't know what the video card was the user choose. He reported the issue to us and in turn we reverted back to 320x200 as default startup resolution and I posted the issue here.

I will find out more though.
User avatar
leilei
Posts: 431
Joined: Fri 25 Apr, 2014 4:47 pm

Re: Mode-X 320x240 graphics issues in Q2DOS

Postby leilei » Mon 24 Aug, 2015 10:52 pm

It might be a bug in Q2DOS as 320x240 ModeX seems to work in Quake on the TGUI9440 and TVGA
Maraakate
Posts: 5
Joined: Mon 24 Aug, 2015 5:11 am

Re: Mode-X 320x240 graphics issues in Q2DOS

Postby Maraakate » Mon 24 Aug, 2015 10:54 pm

It's quite possible as the way the video works is slightly different in Quake 2. I am wondering if someone where in the init routines there was some test for some non-compliant cards and they added such things. I saw there was some kind of specific hack in there some ATI cards that didn't report the number of pages properly.
Maraakate
Posts: 5
Joined: Mon 24 Aug, 2015 5:11 am

Re: Mode-X 320x240 graphics issues in Q2DOS

Postby Maraakate » Fri 08 Sep, 2017 12:08 pm

Huge necropost, but this issue should now be fixed in Q2DOS. I had problems with it on some real hardware and fixed it there. Let me know if it's still not working.

Return to “General”

Who is online

Users browsing this forum: Bing [Bot] and 1 guest