home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
148.lha
/
Planes_v1.1
/
Readme
< prev
next >
Wrap
Text File
|
1980-11-15
|
15KB
|
272 lines
=============================================================================
More colors on the Worbench Screen (The sequel) 11/25/87 (orig.)
New version 1.1 - 7/12/88
By David M. Pochron
(aka: The MCP)
=============================================================================
OVERVIEW:
--------
* Note: Some bugs have been fixed see end of document for more details.
* Note: I suggest you read this whole file before using this program! (Big
document for such a teeny program, ain't it??)
Here it is! What I thought originally would imvolve complex routines to
open and close the WorkBench screen with more bitplanes and such, only
required minimal programming. The OS in the Amiga is so versatile, it took
the changes with open arms. (er- almost, that is)
Nevertheless, eight colors (or more) is possible on all Amigas now, with
or without the KickStart in ROM. (That means you, Amiga 500/2000/2500/3000(?)
owners!)
The program ties into the screen structures and just appends a new bitplane
on to it. That's it! The program can be executed at any time during the
session, so you need not even alter your Startup-Sequence, (though that is
the best time to activate the program)
The programs included with this ARC file are all 100% assembly language
so the code is quite small. (Besides, I love assembly language!)
WHAT YOU GET WITH THIS ARC FILE:
-------------------------------
ARCed Name: Should be named as: Description:
------------------------------------------------------------------------------
Planes BitPlanes Program that makes 8/16 color WB! v.1.1
Planes.info BitPlanes.info Icon for the above program
Readme Readme This file (duh!)
Readme.info Readme.info Nice 8 color project icon for this file
Disk.info Disk.info 3 bitplane disk icon
Trash.info Trashcan.info 3 bitplane trashcan icon
CLI.info CLI.info 3 bitplane CLI icon
Drawer.info Drawer.info 3 bitplane drawer icon
Setcolor SetColor Program to set color registers 0-15
Savecolor SaveColor Program to save the colors currently
being used on the WB screen
Lauren.info Lauren.info *4* bitplane icon (the famous "Lauren"
pic, courtesy of NewTek's Digi-View!)
(with help from Butcher & Dpaint II!)
New 1.1 stuff:
FixIcon.bas \
MakeIcon.bas >---See end of document for details
ICON.BMAP /
USING THE BITPLANE PROGRAM:
--------------------------
The BitPlanes program, which changes the number of bitplanes on the screen
can be called from CLI or from Workbench. When using it from CLI, (the best
place to use it) the format for the call is:
BITPLANES [n] (where n is a value from 3 to 8)
For now, the only real "legal" values you can use are 3 or 4. A three will
give you 8 colors, and a four will give you a maximum of 16 colors. If you
give no value, it defaults to 3 bitplanes. If you have already installed the
extra bitplanes and run the program again, any value passed in is ignored and
the screen is toggled back to 2 bitplanes again. (the normal WorkBench screen)
If you run this program from WorkBench by clicking on its icon, you can
get a 16 color WB screen by keeping the left mouse button pressed after you
double-click the icon. The program isn't going to take too long to load so
you had better be fast! If you only want 8 colors, just double-click the icon
and make sure the left mouse button is not pressed while the program executes.
Again, if you run this program after more colors have been installed, it
will toggle back to a 4 color WorkBench screen no matter whether you are
keeping the button depressed or not.
After the extra bitplanes are installed, it will probably be necessary to
use the "Redraw" function under the Workbench "Special" menu, so all the
icons are re-rendered in their full colors.
Still, the best place to execute this program is at the beginning of a
startup-sequence, since the WorkBench usually hasn't been loaded so all the
menus and icons will come up rendered properly. Also, if you add bitplanes
after a huge hunk of chip memory has been allocated by another program, and
then that program deallocates that memory, the extra bitplanes will end up
sitting like and island in the middle of chip memory. Not a good situation!
One other note: this program works FINE with interlaced workbench
screens!
Finally, this program automatically sets the first 16 color registers to
the values my icons included with this arc file need. If you want a different
set of colors, use the Set&SaveColor programs (see below) or use a disk
editor (like NewZap) and edit the RGB values. The data for these values is
CLEARLY marked in the Bitplanes programs as to where they begin, so changing
the values should be no problem.
Note that the color registers are set WHENEVER the program is run - even
when it is toggling back to 2 bitplanes, so keep that in mind.
An interesting side effect: If you have another screen open at the time
this program is run, the bitplanes will be modified for THAT screen! This is
particularly useful for terminal programs that you want to have more colors
on - like Comm 1.34.
SETCOLOR AND SAVECOLOR
----------------------
These programs are similar to the Set & Save color programs included in
the original KickStart mod, except they set all colors from 0 to 15. They
still use the file "Color.palette" as the source & destination file. Since
the BitPlanes program automatically sets the colors when it is run, these two
files are actually not really necessary. I included them just in case you
didn't have a disk editor to change the default colors in BitPlanes and you
wanted your own set of colors. (You will need a program like PopColors,
however, to set your own RGB values on the screen before saving them.)
MAKING 8 & 16 COLOR ICONS:
-------------------------
Obviously, you can't use the existing icon editor anymore if you want to
create icons with more than four colors. Until someone writes an icon editor
with a variable # of bitplanes, a utility to make IFF brushes into icons will
usually do the trick. Some icon zappers (as they are called) won't create
icons with more than 3 bitplanes, so depending on the icon zapper you have,
you may be limited to just 8-color icons. (I included a icon zapper I wrote
in BASIC which will do all 16 colors and tool types.)
To make Lauren an icon, I used DigiView 2.0 to convert her to a B&W image,
then went to Dpaint II and removed the background. I then used Butcher to fit
the image into the color registers I wanted and finally used an icon zapper
written in BASIC from Compute! magazine.
CAVEAT EMPTOR: (or let the user beware!)
-------------
Okay, as in the text that went with my previous KickStart mod, some icons
don't work quite right when extra bitplanes are added. Also, backfill doesn't
work with icons having more than 2 bitplanes. Most 2 bitplane icons work fine
with the mod, though animated ones won't show when they are dragged - add a
bitplane to 'em and they'll work fine. Again, although the OS exhibits no
real problems when more planes are added, if you run it from an icon, the
menus may not get rendered properly the first few times they are used. Also,
if a window is covering a CLI window when the program is run from an icon,
garbage will appear in part of the CLI window that was covered. Drag &
resize the CLI window to clear out this garbage. (If you run the program at
the beginning of a startup-sequence, none of these rendering problems will
occur, of course!)
The biggest caveat is the fact that although the program will let you have
4 bitplanes on a WorkBench screen, the computer slows down a great deal.
Use 4 bitplanes only for demoing purposes. (ex: "wow" your Mac & ST friends
by inserting a disk and having your digitized face come up as the disk icon!)
(* Note see new version additions for a problem the occurs with certain icons
in 16 colors...)
Use 3 bitplanes for normal computer use. If you really need digitized icons
during normal everyday use, consider setting the first 8 color registers to 8
shades of grey and then use dithering to get 16 shades. This should look even
better than the Lauren icon, as it only uses *12* of 16 shades available on
the Amiga.
RULES:
-----
Okay, this program is almost as "PD" as "PD" can get. You can hack at it
all you like, include it in commercial (or system) software with no fees
whatsoever, and pass it around as you like. The only thing I ask is
you not change the credits and version info located within the BitPlane,
Fixicon, and Makeicon programs themselves. This text file you are reading does
not need to be included with any commercial software the Bitplanes program is
used with. People uploading this ARC file to other BBSes, however, ought to
leave this document intact, included with the other files.
The icons, of course, are free for everyone to use - even Commodore-Amiga
in their new Workbench releases. (1.3? 1.4?? 1.5??? 2.0?!?!) (grin!)
(PS: except Lauren - I don't know how NewTek would take to seeing their
demo picture show up in someone else's commercial software!)
New 1.1 rule:
Okay, this program will no longer be known as PD...Let it be known from
now on it is... (I love this term I made up) ..."SpreadWare!"
That is, the rules are exactly the same as listed above (PD) with one extra
rule: If you use this program, give a copy of it to at least one other person
or upload it to another BBS. (No big deal, I hope!)
FUTURE IMPROVEMENTS: (not in v.1.1 though!)
-------------------
The first thing I'd like to do is to remove the "toggle back to 2
bitplanes" when run from CLI and instead have the user just enter the # of
bitplanes they want on the screen - any number from 1-8! No hassle, no fuss.
Also, I hope to have it check for a Color.palette file and load it if it
finds one. That way, the user wouldn't have to use separate program to set
his own preferences for the color registers. Other future enhancements may
include a color palette editor built-in and a # of bitplanes requester for
WorkBench users. If you have any suggestions (or, heaven forbid!) find a bug,
you can reach me on CompuServe via system _EMAIL_ (I don't get on too often,
and messages on the Amigaforum scroll off so quickly!) at user # 72517,2102.
That's all for now! Enjoy having more colors on Workbench! Who knows...a HAM
WorkBench might just be around the corner! (fat chance - 7/12/88)
Version 1.1 fixes and bug reports: (Heaven forbid, yes!)
----------------------------------
Unbelievable as it may sound, a bug cropped up in the Bitplanes program!
Unfortunately, my own short-sightedness led to this nasty little bug. (Or,
more accurately, an incompatability.) The old version of Bitplanes ASSUMED
a screen width of 640 pixels across, and only recently did I find out this
causes some major problems with MOREROWS, and makes it impossible for you to
change the depth of any screen other than 640 pixels across. Well, this
problem is now solved as the program not only configures to the vertical
resolution, but also the horizontal resolution, as it should have done in
the first place. Well, almost a year late isn't TOO bad, is it? ;-)
Other stuff: WorkBench (or is it Intuition?) has a bug in it! It seems for
some reason when you change the # of planes to 4, and you have icons that
use alternate images which are 2 bitplanes or less deep, as soon as you
click on the icon, all the chip memory vanishes! And what's stranger is that
the available memory meter will not show this, yet the menus will not draw
and windows will not drag, and soon the system will crash due to no chip
memory.
The problem seems to be with WorkBench (or Intuition) as it can't handle
the alt. image to be displayed when it has 2 or more fewer bitplanes than the
screen it's being drawn on. (ex: 3 bp screen, 1 bp icon would cause a crash,
however, a 4 bp screen with a 3 bp icon works just fine) Remember: This will
only happen with icons that use alt. images - the normal INVERSE icons have no
problems. (Actually, I shouldn't call this a "bug" in WB as it just may not
be able to handle the addition of bitplanes "on the fly" in all cases...so
pardon me for doing the "blame the system software" routine.)
The Solutions? 1) Write new WorkBench or Intuition
2) Never use 4 bitplane screen
3) Make sure all animated icons are at least 3 bitplanes
Well, the first fix is up to others, and the second is limiting, so I
have included a program in this ARC file which will change the depth of any
icon which falls into the crash-catagory. (2 bitplanes, alt. image) All it
does is add an extra plane to the icon, and your troubles shall vanish.
Plus, it fixes the "invisible dragging" problem when you use a 3 bitplane
WorkBench. Course, if you are using 4 bitplanes and you bring home a friend's
disk with some 2 bp, alt. image icons, your back to square one. (Besides,
you're supposed to use 16 colors only for demo purposes, remember? :-> )
I'd like to thank the people who spent their valuable time spotting these
two problems. (Don't know if they want their names known so I'll just say they
know who they are!)
I'd also like to thank all the users who spread the program around like I
asked. Hopefully, this new "SpreadWare" version will get around even faster!
Thanks!
Here is what you get with this new version ARC file:
Planes - New version of the Bitplanes program.
FixIcon.bas - Makes sure icons have at least 3 bitplanes in them. Type in
filename of .info file and follow the prompts. (If any)
MS BASIC program
MakeIcon.bas - Makes brushes into icons - written by me! Makes 8 & 16 color
icons of any tool type with no problem. MS BASIC program. Just
enter the IFF brush filename, program loads it in, then you're
asked for a .info filename that will have its image replaced
with the IFF brush image you just loaded. Simple.
The BASIC programs are easy to use, just make sure the ICON.BMAP file is
located in the LIBS: directory on your Workbench disk (or HD) or in the
same directory the BASIC programs reside in. There is an ICON.BMAP file in
this ARC file if you don't have it handy...
- David M. Pochron