[comp.sys.amiga] Dmouse 1.20 and DLineArt

blgardne@esunix.UUCP (Blaine Gardner) (08/23/89)

If you haven't setup Dmouse 1.20 and the DLineArt screen blanker, go do it
now! Fun stuff!

Steve, you really ought to see your lineart run on a 68020, it goes nuts!
The Elipse moves along at a moderate pace, but the others are hyperactive.
You could really get a case of nerves watching the stuff jump around on the
screen! :-) Fortunatly the -n option makes things move much more
tranquilly.

A couple of questions:

1) What does "blanker" do, and is it part of Dmouse or DLineArt? Is it
   required if DLineArt is being used?

2) From what a number of people have said, I gather that Dmouse can be used
   to setup multiple hotkeys. The docs don't really make this clear one way
   or the other. If it's true, would the format be:

dmouse -c2 -s600 -w1 -C newwsh con:0/11/640/200/WShell/c
dmouse -Kcccc -C reallyneatprogram
dmouse -Kcccc -C reallyneatprogram2
dmouse -Kcccc -C reallyneatprogram3

  If I've got that right, what is the -K option, the raw keyboard codes?
  Where's an easy place to find a table of them? I took a quick look at
  KeyToy, KeyMapEd, and the 1.2 and 1.3 enhancer manuals with no luck.
  Would Rob Peck's book or the Lattice 5.02 docs (I'm gonna learn C RSN)
  have it?

Thanks for any answers, and thanks for some fun and even useful software!

PS Someone needs to check their system clock. A couple of the files in
the Zoo are dated a few days in the future. Software from a timewarp?
:-)
-- 
Blaine Gardner @ Evans & Sutherland    580 Arapeen Drive, SLC, Utah 84108
Here: utah-cs!esunix!blgardne   {ucbvax,allegra,decvax}!decwrl!esunix!blgardne
There: uunet!iconsys!caeco!i-core!worsel!blaine  (My Amiga running uucp)
"Nobody will ever need more than 64K."    "Nobody needs multitasking on a PC."

raz%kilowatt@Sun.COM (Steve -Raz- Berry) (08/26/89)

In article <1451@esunix.UUCP> blgardne@esunix.UUCP (Blaine Gardner) writes:
>
>If you haven't setup Dmouse 1.20 and the DLineArt screen blanker, go do it
>now! Fun stuff!

He He.

>Steve, you really ought to see your lineart run on a 68020, it goes nuts!

I'd like to compare and contrast between the 68K and the '020+ machines.
Wanna lend me yours ? ;-)

>The Elipse moves along at a moderate pace, but the others are hyperactive.

If I can figure out how to generate ellipses with splines, they will cruise
along nicely too.

>You could really get a case of nerves watching the stuff jump around on the
>screen! :-) Fortunatly the -n option makes things move much more
>tranquilly.

I almost never use the "processor nasty" mode. It was cool when I wrote it
but it lengthens download times by quite a bit.

>A couple of questions:

>1) What does "blanker" do, and is it part of Dmouse or DLineArt? Is it
>   required if DLineArt is being used?

Blanker is just an example screen blanker, in case you want to write
your own. You can run blanker instead of Dlineart (but it's not very
interesting). Too bad the source wasn't included with it. I guess Bob
is going to post it seperately.

>2) From what a number of people have said, I gather that Dmouse can be used
>   to setup multiple hotkeys. The docs don't really make this clear one way
>   or the other. If it's true, would the format be:

From the DOC:

    -Kcccc      Set Keycode (HEX)   for command key (default 0045)

    -Qqqqq      Set Qualifier (HEX) for command key (default 0040)

 What this does is to set the hot-key and qualifier. The default is
the left-Amiga-esc sequence. Esc is the hot-key, and Left-Amiga is the
qualifier (I think).

 There is no built-in way to get more than one hot-key for dmouse. Mackie
has ability to do this (I think).

>  If I've got that right, what is the -K option, the raw keyboard codes?

I believe so, but they have to be entered in hex. Try the AmigaDOS manual
(Bantam).

>Thanks for any answers, and thanks for some fun and even useful software!

Yer welcome. We also have to thank Matt too. Thanks Matt.

>PS Someone needs to check their system clock. A couple of the files in
>the Zoo are dated a few days in the future. Software from a timewarp?
>:-)

Looks like you mean Matt (20 Aug?). 

Also - The source for Dlineart was not included in the zoo that was sent
over the net, if anyone wants a copy let me know.

>Blaine Gardner @ Evans & Sutherland    580 Arapeen Drive, SLC, Utah 84108
>Here: utah-cs!esunix!blgardne   {ucbvax,allegra,decvax}!decwrl!esunix!blgardne
>There: uunet!iconsys!caeco!i-core!worsel!blaine  (My Amiga running uucp)
>"Nobody will ever need more than 64K."    "Nobody needs multitasking on a PC."


---
Steve -Raz- Berry     Disclaimer: It wasn't me! I was volatilizing my esters.
UUCP: sun!kilowatt!raz                   ARPA: raz%kilowatt.EBay@sun.com
KILOWATT: sun!kilowatt!archive-server    archive-server%kilowatt.EBay@sun.com

rokicki@polya.Stanford.EDU (Tomas G. Rokicki) (08/26/89)

raz%kilowatt@Sun.COM (Steve -Raz- Berry) writes:
> >Steve, you really ought to see your lineart run on a 68020, it goes nuts!
> >The Elipse moves along at a moderate pace, but the others are hyperactive.
> If I can figure out how to generate ellipses with splines, they will cruise
> along nicely too.

Two ways to do ellipses with splines, the first is faster but less
accurate, the second is slower but more accurate.

In both, the spline is centered at (x,y) with x-axis a and y-axis b.

First method:  two splines, they are
   [(x-a, y), (x-a, y-4b/3), (x+a, y-4b/3), (x+a, y)]
   [(x-a, y), (x-a, y+4b/3), (x+a, y+4b/3), (x+a, y)]
This isn't exactly an ellipse, but is probably close enough for most
people.  Please, round the 4b/3 terms *towards* the center of the
screen, or the extrema may go off the screen.  Also, reverse the second
so that it gets drawn clockwise instead of in halves from left to right.

Second method, four splines, they are:
   [(x-a, y), (x-a, y+cb), (x-ca, y+b), (x, y+b)]
   [(x, y+b), (x+ca, y+b), (x+a, y+cb), (x+a, y)]
   [(x+a, y), (x+a, y-cb), (x+ca, y-b), (x, y-b)]
   [(x, y-b), (x-ca, y-b), (x-a, y-cb), (x-a, y)]
in all of these, c=4(sqrt(2)-1)/3 or something like 0.55.
This is highly accurate, off less than r/3600 at the worst point.

You should check out the latest mackie (Radical Eye Radio, (415) 32-RADIO)
and see how it generates a random set of patterns . . . also make *sure*
that the spline code is the version in the latest mackie; the old
version would hang if the four points happened to be coincident . . .

-tom