home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga MA Magazine 1998 #3
/
amigamamagazinepolishissue1998.iso
/
kolekcje
/
stanislaw_weslawski
/
ulubione_share
/
gridmaker
/
docs
/
gridmaker.doc
next >
Wrap
Text File
|
1996-06-07
|
7KB
|
216 lines
Grid Maker version 1.11 manual:
===============================
Copyright © 1995, 1996 by InterMedia consulting. All rights reserved.
Coded by Kenneth C. Nilsen in assembler.
This program needs dfunc.library (by Kenneth C. Nilsen)
and iff.library (by Chistian A. Weber).
This program is freeware.
The GridMaker archive must not be changed in any way. Distribution must
contain all files!
INTRODUCTION
============
This program will take an iff picture and transform it into a 3D grid looking
picture. The methode used for this is based on the pen numbers in the picture.
Color 0 is no delta pixel, color 1 is delta 1 pixel and so on.
The program can take most resolution, including HAM (which though is not of
very much use) thanks to Weber who made the iff.library.
It will same the new 3D grid picture in the same resolution as the original,
but with only one bitplane and the colors set by you (or default).
Version 1.11 is only a bugfix: Left a lock on the dir if started from WB.
Caused by a bug in the startupcode.
USAGE
=====
GridMaker [inpicture] [outpicture] [REQ] [Options]
InPicture - the name of the iff picture to be converted
OutPicture - name of the finished iff picture
Req - use requesters for filenames instead
Options: -d = double curve heights
-i = invert the way curves are drawn
-NoX = don't draw the horizontal curves
-NoY = don't draw the vertical curves
-x[n] = grid size x, n=pixels (def.=7)
-y[n] = grid size y, n=pixels (def.=7)
-f[c] = foreground color by c=[$fff] (def=$00f)
-b[c] = background color (see above) (def=$000)
-p = preview process
New from 1.1: -h = halve the curve heights (useful with lores pics)
-r = reverse pen methode. pen 0 = highest curve.
-t = trigg exit.
-s = toggle save = don't save to outfile.
-z[n] = zoom faktor. Height*[n]. Max=255
-o = draw points instead of lines.
-NoB = don't draw zero height curves.
Here are the options explained in details:
inpicture, must be an ILBM IFF picture. Any resolution can be taken, even
HAM and HAM8 (i think). I have not supported 24bit and the
GetColorTab() function in the iff.library doesn't convert to
more than 16 bit values (for each component). In the next
main version I will most propably have solved this by making
my own color converter in the dfunc.library.
outpicture, is the name of the ILBM IFF file to save. The file is packed
and can be viewed directly after GridMaker is done.
REQ, will allow you to use an asl requester to choose the input
and output file.
If you start GridMaker from Workbench REQ is default. The rest
of the options will be set by default. In future this can be
set by tooltypes.
-d, doubles the pen value heights. This is useful in picture with
low number of colors.
-i, will invert the height to be drawn downwards instead of
default upwards. This enable you to make walleys instead of
montains.
-NoX, will disable the program in rendering the horizontal lines.
-NoY, same as above with the vertical lines.
-x[n], will set the horizontal grid width. [n] is the value to set in
pixels. Default is 7 pixels in width.
-y[n], same as above with the height grid. Default is also 7 pixels.
-b[c], sets the background color. You can use either hexadecimal or
just decimal numbers like this: $fff, $f, 1245, $0fff, 8 etc.
Limited to word size.
-f[c], same as above with the foreground color. [c]=color value.
-p, will put the rendering screen to front. By default the screen
will open in behind mode to allow you to do monitor the
Workbench screen or shell etc.
-h, will halve the curve heights. This can be useful with lores
pictures or with pictures with many colors.
-r, will reverse the pen methode. Normal pen 0 = lowest height,
but with this option set pen 0 is highest curve. Useful with
"inverted pictures". Similar to the -i option but doesn't
negate the picture.
-t, this will allow you to watch the finished picture as long as
you want. Press left mousebutton to exit. GridMaker is used
mostly with scripts, therefore it has autoexit as default.
-s, disables save. With this option set GridMaker will not save
the gridded picture to outfile. The outfile arg must anyway be
set, use some garbage signs. This will be fixed later.
-z[n], this will multiply the heights: Height*[n] where [n] is max
255.
-o will draw points instead of lines at the scan points. Only one
scan direction is necessary during this process. You can thow
choose which by setting the approriate -NoX/-NoY options.
-NoB, do not draw curves/lines/points with height=0. This means that
you only get curves/points drawn at the areas in the picture
which has colors defined.
EXAMPLES
========
Here are some examples for you to try out. You will find demo pictures of
these examples in this archive:
1) GridMaker GridTest.iff ram:Grid1.iff -b$800 -f0 -x5 -y5 -p
2) GridMaker GridTest.iff ram:Grid2.iff -NoX -p
3) GridMaker GridTest.iff ram:Grid3.iff -NoY -y5 -f$a0 -i -p
4) GridMaker GridTest.iff ram:Grid4.iff -NoX -x5 -y5 -f$ccc -b$4 -i -d -p
5) GridMaker GridTest.iff ram:Grid5.iff -x15 -y15 -d -p
6) GridMaker GridTest.iff ram:Grid6.iff -y3 -x4 -f0 -b$fff -p
and so on. Experiment to make most useful effects. in future there will come
more options!
SOME TECHNICAL INFO
===================
The -x is justed to set the vertical resolution and spacing beetween the
vertical lines. The -y is the oposite and the resolution for x rendering. This
means you can use eg. the -x option even if you have set -NoX. This has the
effect that the vertical lines are rendered closer.
The vertical are rendered shared for two reasons:
In interlaced pictures it will suit for more non-interlace and the second
reason is to make an illution of light coming from upper left corner.
The exact way to render these drawings is indeed very simple:
It has a coordinate counter. Lets take the X counter. While this counter
crosses the screen horizontal it picks a color read from the original picture
with graphics.library/ReadPixel(). It then uses this value as a subtractor (or
adder if inverted) on the Y coordinate. The higher color number the higher
curve and the result will be a 3D look in gridded outline. This also means
that the colorvalues in the picture has no effect on the rendering, just the
colornumber.
SUMMARY
=======
So, experiment with the program. This is version 1 so don't be suprised if any
bugs occure. I have removed the bugs I self discovered, but you know how it is
when you work with a program a lot, you get tired of it. Btw: made this
program in one day :)
Enjoy, have fun!
ADDRESS
=======
InterMedia consulting
Attn: Kenneth C. Nilsen
Kvernhusrenen 31
N-5227 S-Neset
Norway
E-Mail: kenneth@norConnect.no