June 19, 2019, 12:20:41 pm

Quake 1

Started by neozeed, May 21, 2010, 01:36:15 am

Previous topic - Next topic

Are you interested in Quake on NeXTSTEP?

YES!
37 (86%)
I don't care.
6 (14%)

Total Members Voted: 42

Voting closed: May 21, 2010, 01:36:15 am

blakespot

Does this support the gecko? I'm curious how it would run on my 100MHz 712.



bp
:::My NeXTs:
- NeXTstation Turbo Color w/ 21" NeXT CRT (NS3.3)
- HP 712/100 "Gecko" (NS3.3)
http://bytecellar.com

neozeed

Quote from: "blakespot"Does this support the gecko? I'm curious how it would run on my 100MHz 712.



bp


Maybe?   I built it as a quad fat, so I guess so... I recall it running (horribly slow ) on a 68040..
# include <wittycomment.h>

blakespot

DL link is dead. Where can I grab this?

Tnx



bp
:::My NeXTs:
- NeXTstation Turbo Color w/ 21" NeXT CRT (NS3.3)
- HP 712/100 "Gecko" (NS3.3)
http://bytecellar.com

neozeed

Quote from: "blakespot"DL link is dead. Where can I grab this?

Tnx



bp


It works, you have to read the 404 page.  Some idiot flagged everything I had online as a virus, so I have to use a simple 404 + username/password redirect.

right now the password is mightybrake39, but it changes automatically so it's not guaranteed for future users.
# include <wittycomment.h>

blakespot

Thanks. What is the username?
:::My NeXTs:
- NeXTstation Turbo Color w/ 21" NeXT CRT (NS3.3)
- HP 712/100 "Gecko" (NS3.3)
http://bytecellar.com

neozeed

Quote from: "blakespot"Thanks. What is the username?


should be user


It's all in the 404 message.


The user name is 'user'

and the password is: mightybrake39
# include <wittycomment.h>

blakespot

Thanks.

(What the hell is wrong with me?)

I will let you know how it runs on a Gecko 100MHz, 256K L2.



bp
:::My NeXTs:
- NeXTstation Turbo Color w/ 21" NeXT CRT (NS3.3)
- HP 712/100 "Gecko" (NS3.3)
http://bytecellar.com

blakespot

Here it is on my Gecko. Decent frame rate, but color map is hosed. Any ideas?

Thanks.


http://youtu.be/2MVnKRT3jw0



bp
:::My NeXTs:
- NeXTstation Turbo Color w/ 21" NeXT CRT (NS3.3)
- HP 712/100 "Gecko" (NS3.3)
http://bytecellar.com

neozeed

Quote from: "blakespot"Here it is on my Gecko. Decent frame rate, but color map is hosed. Any ideas?

Thanks.


http://youtu.be/2MVnKRT3jw0



bp


wow that's pretty awesome!

Its been forever but I want to say it was a slide show on a next, and of course in b&w only.  I'm pretty sure I did it in 256 only colors so it probably doesn't map to the gecko.  what is the depth of it's display? (ie how many colors?)

Otherwise it's incredible to see it actually run!
# include <wittycomment.h>

blakespot

I'll try it on my turbo color slab soon.

The Gecko is true color, as far as NEXTSTEP is aware. Read details of the unusual video hardware in my blogpost here:

http://www.bytecellar.com/2005/02/09/my_hp_9000_7126/

FWIW Doom runs with an accurate color map on it.



bp
:::My NeXTs:
- NeXTstation Turbo Color w/ 21" NeXT CRT (NS3.3)
- HP 712/100 "Gecko" (NS3.3)
http://bytecellar.com

blakespot

Quake running on my NeXTstation Turbo Color (33MHz 68040 w/ 4K/4K L1 cache):
https://vine.co/v/izVQOAD1Fii

Quake running on my Gecko (100MHz PA-7100 w/ 256K L1 (yes) cache):
https://vine.co/v/izVQQUE27D9

Quite the difference. 320x200 window, I believe.

This ver of Quake was ported for a 256-color screen mode (PC VESA presumably). It would be great to see the colormap working properly in the NeXT's oddball 12-bit, 4096 color desktop and on the Gecko's "TrueColor" desktop.



bp
:::My NeXTs:
- NeXTstation Turbo Color w/ 21" NeXT CRT (NS3.3)
- HP 712/100 "Gecko" (NS3.3)
http://bytecellar.com

blakespot

Quote from: "neozeed"I'm pretty sure I did it in 256 only colors so it probably doesn't map to the gecko.  what is the depth of it's display? (ie how many colors?)


Any chance you might take a stab at supporting the standard NeXT 12-bit color mode (12-bit + 4-bit alpha) or the TrueColor modes? :-)



bp
:::My NeXTs:
- NeXTstation Turbo Color w/ 21" NeXT CRT (NS3.3)
- HP 712/100 "Gecko" (NS3.3)
http://bytecellar.com

GrafZahl

Hi,
you may like to patch the source file 'vid_null.c' within the NeXT folder in the source folder. Right on the top in the file is a method called VID_SetPalette. I played a little around with it and the following change should  be enough to have a fine image on the color nextstation. This fixes the endianess issue only. If I understand the code right it uses a conversion from 8 bit palette from the internal renderer to a 32 bit buffer  and then draws this image to the screen. The windowserver does the color downsampling from 32 to 12+4 bit. I found no hint yet for any direct palette based support in NXImageRepresentation maybe it does not support it at all. Maybe it is possible to use a 16 bit buffer on the nextstation color ... but this may not be that easy and may not improve the performance.    


void VID_SetPalette (unsigned char *palette)
{
 //this is for 32bit right onw... yuck.
#if __BIG_ENDIAN__
 int i,r,g,b;
 for(i=0;i<256;++i)
 {
r = *(palette + 0 );
g = *(palette + 1 );
b = *(palette + 2 );

Main32RGBPalette[i] = 0x000000ff | (r<<24) | (g<<16) | (b<<8);

palette = palette + 3;
 }
#else
int i;
for(i=0;i<256;++i)
{
Main32RGBPalette[i]=*palette++;
Main32RGBPalette[i]=Main32RGBPalette[i]+(*palette++)*256;
Main32RGBPalette[i]=Main32RGBPalette[i]+(*palette++)*65536;
}
#endif
}


regards