Basilisk and Irix

IRIX and IRIX software discussion including open source and commerical offerings.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
sbarton
Posts: 147
Joined: Wed Aug 26, 2009 9:55 am
Location: San Jose, CA

Basilisk and Irix

Unread postby sbarton » Mon Oct 03, 2011 10:54 am

Would like some feedback from anyone who has used Basilisk on IRIX in the past.

I've tried a pkg I found here on Nekochan as well from the SGI Freeware archive on my 6.5.30 octane and O2. The SGI version seems to run a bit better than the neko package, but I can't seem to get it to show 8-bit color. Lots of apps need 256 colors vs truecolor on classic MacOS and the video color depth should be changeable on the fly, but the monitors control panel only shows "millions" of colors as an option.

On my solaris system using the same HD image (MacOS 7.5.5) and same ROM, the OS can dynamically change color depth between 8/16/24 bit color.

Other than this issue, which affects alot of programs I want to run, the system runs brilliantly on an Octane. I'm suprised more people havent' played around with it on IRIX.

Thx

User avatar
Hakimoto
Moderator
Moderator
Posts: 2580
Joined: Sun Mar 30, 2003 4:29 am
Location: Nijmegen, Netherlands, Europe
Contact:

Re: Basilisk and Irix

Unread postby Hakimoto » Mon Oct 03, 2011 10:16 pm

Basilisk is a beautiful piece of software. I never had much in the way of real classic Mac hardware (except a SE/30 which actually came with A/UX) but I LOVED the emulators. ;-)
The Bandito wrote:In a few years, no doubt, you'll be able to buy a computer,
software and operating system that will match the capabilities
of your current Amiga at about the price you paid for the
Amiga way back when. But you can smile to yourself, knowing
that you were touching the future years before the rest of
the world. And that other computers and operating systems
will do with brute force what the Amiga did years before with
grace, elegance and style.


Eroteme.ch - my end of the internet...

User avatar
necron2600
Posts: 261
Joined: Tue May 26, 2015 10:38 pm
Location: Boston

Re: Basilisk and Irix

Unread postby necron2600 » Tue Sep 08, 2015 3:20 pm

Nothing dynamic... but you can do it statically:

Basilisk will use your X11's color bit settings.
To set it to 8bit, so Basilisk can run at 256 colors:

/usr/lib/X11/xdm/Xservers
:0 secure /usr/bin/X11/X -bs -nobitscale -c -solidroot sgilightblue -cursorFG red -cursorBG white -pseudomap 4sight

To restore to 24bit (assuming you had 24bit to begin with):
restore your orig Xservers file.. or copy the following:
:0 secure /usr/bin/X11/X -bs -nobitscale -c -solidroot sgilightblue -cursorFG red -cursorBG white -depth 24 -class TrueColor

Then restart X11. You can reboot, or do the following (much quicker than rebooting):
/usr/gfx/gfxstop.sh
/usr/gfx/gfxstart.sh

Note, once you gfxstop.sh, you are then dropped to the text based console. Login as root and run gfxstart.sh to start X11 back up.

-Kevin

User avatar
hamei
Posts: 10433
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: Basilisk and Irix

Unread postby hamei » Tue Sep 08, 2015 6:26 pm

necron2600 wrote:Nothing dynamic... but you can do it statically:

Basilisk will use your X11's color bit settings.
To set it to 8bit, so Basilisk can run at 256 colors:

/usr/lib/X11/xdm/Xservers
:0 secure /usr/bin/X11/X -bs -nobitscale -c -solidroot sgilightblue -cursorFG red -cursorBG white -pseudomap 4sight

This should work (I don't have basilisk to test )

Code: Select all

~/.Xdefaults:
basilisk*applicationDepth: 8

The 4Dwm desktop visual doesn't limit every window to the same color depth.
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
foetz
Moderator
Moderator
Posts: 6543
Joined: Mon Apr 14, 2003 4:34 am
Contact:

Re: Basilisk and Irix

Unread postby foetz » Tue Sep 08, 2015 7:23 pm

necron2600 wrote:/usr/gfx/gfxstop.sh
/usr/gfx/gfxstart.sh

these are wrong. it is startgfx and stopgfx. also without ".sh". you can also use a one-liner:

Code: Select all

(/usr/gfx/stopgfx ; /usr/gfx/startgfx) &

User avatar
necron2600
Posts: 261
Joined: Tue May 26, 2015 10:38 pm
Location: Boston

Re: Basilisk and Irix

Unread postby necron2600 » Sat Sep 19, 2015 8:56 pm

Regarding .Xdefaults and applicationDepth settings..
My attempts to see an 8bit window on a 24bit X session failed.
I tested with 'winterm' and 'xeyes', as well as BasiliskII.
I ensured my .Xdefaults file actually worked with something... even setting every application:

*geometry: +0+910

or a specific application like xosview:

xosview*background: 000000

After running: xrdb ~/.Xdefaults I am able to launch various apps and know the above settings work.

However, setting the *applicationDepth: 8 does not have any affect (at least on my setup..)
I can verify the color depth using 'xwininfo' command. The Depth is always showing as 24.

Any ideas as to what is going on with Xdefaults and *applicationDepth? There seems to be very little search hits on google for Xdefaults including applicationDepth. Maybe only specific apps support this?

Thanks again!
-Kevin

User avatar
hamei
Posts: 10433
Joined: Tue Feb 24, 2004 4:10 pm
Location: over the rainbow

Re: Basilisk and Irix

Unread postby hamei » Sun Sep 20, 2015 2:14 am

necron2600 wrote:However, setting the *applicationDepth: 8 does not have any affect (at least on my setup..)
I can verify the color depth using 'xwininfo' command. The Depth is always showing as 24.

I just tried this, same here.

But techpubs graphics faqs clearly states :

sgi wrote: By default, the SGI X Server is configured to use an 8-bit
PseudoColor visual. X-based applications can request other visuals
directly if they are available.

All you have to do is figure out how to make the application request 8-bit color directly :D

Luckily, the source for Basilisk is right there for us members of the public to hack on if necessary. Sounds like a nice improvement, actually.


Oh wait. The secret search word is "colormap". Anything else will get you 4,000 helpful paragraphs about how to change the display settings of your Windows monitor. Don't ask how I found out :P

Try some of these :

http://hea-www.harvard.edu/~fine/Tech/X11visuals.html
I spent a fortune on booze, birds, and fast cars ... the rest I just squandered

User avatar
necron2600
Posts: 261
Joined: Tue May 26, 2015 10:38 pm
Location: Boston

Re: Basilisk and Irix

Unread postby necron2600 » Sat Dec 10, 2016 10:14 pm

The day has come! Basilisk on IRIX with 8bit color depth!
Thanks to rickyzhang (on emaculation.com) who modded the SDL bits to work with setting any color depth a bit over 3 months ago.

http://www.emaculation.com/forum/viewto ... f=6&t=9021

I grabbed the latest/main from GIT.. compiled. and got wonderful 256 colors on an Octane2 with no fiddling of the X server.

Add in displaycolordepth 8 to your basilisk prefs file, or launch BasiliskII --displaycolordepth 8 at the command line.

My testing had Prince of Persia working. It worked, slightly slow.. eventually Basilisk core dumped though.. so use with caution.
Attached is a compiled binary in a tarball.

BasiliskII-with-colordepth.tar.gz
GCC Compiled basiliskII from latest git checkout
(538.93 KiB) Downloaded 15 times


Return to “IRIX and Software”

Who is online

Users browsing this forum: No registered users and 2 guests