[comp.sys.amiga] dvi2iff

rminnich@udel.EDU (Ron Minnich) (08/27/87)

Well i just about have dvi2iff working. Course i may throw it all
away once i get the AmigaTex demo disk, but right now this is nice.
I can currently preview distorted TeX output in high-res mode
on the 1080. No page selection or anything fancy but that should
be no real problem (ha, ha).You load now useing ShowILBM. 
And of course you download them (fast!) with AmigaTCP. 
   To go the final mile, i need to get some constants down cold,
and i can not find them in my amiga manuals. So, with no further ado,
Can someone tell me:
   Exact width and height of Amiga monitor
   pixels/inch of 1080 monitor when in 640x400
That should do it. Using the Xdvi program and PutPict from the 
iff disk i have something almost going, but i need those numbers
to tweak the .pxl files and the xdvi program.
   BTW i have claz (iff to postscript) running on 4.3bsd. i 
submitted it to comp.sources.amiga but it vanished. SHould 
i just go ahead and post to comp.sys.amiga?
ron
-- 
Ron Minnich 

sean@ms.uky.edu (Sean Casey) (08/28/87)

In article <461@louie.udel.EDU> rminnich@udel.EDU (Ron Minnich) writes:
>Well i just about have dvi2iff working. Course i may throw it all
>away once i get the AmigaTex demo disk, but right now this is nice.

Don't throw it away yet.  Lemme see if I can get ctex21 working (or is
that what you're running?).  If it does compile and run, I'll be in dire
need for a previewer.  I dunno how I'm going to get plain TeX and LaTeX
preloaded, though.  No convenient core dump command on Amigas, and no
undump.

Sean

-- 
--  Sean Casey                    sean@ms.uky.edu,    {uunet,cbosgd}!ukma!sean
--  (the Empire guy)              sean@ms.uky.csnet,  sean@UKMA.BITNET
--  "I...am a shrubber..."  -- Roger the Shrubber

bryce@COGSCI.BERKELEY.EDU (Bryce Nesbitt) (08/29/87)

In article <> rminnich@udel.EDU (Ron Minnich) typed:
>
> ...So, with no further ado, Can someone tell me:
> Exact width and height of Amiga monitor
> pixels/inch of 1080 monitor when in 640x400
>
There is a better way!	In GFXBase there are two UWORDS, NormalDPMX and
NormalDPMY.  (gb_NormalDPMX and Y for assembly programmers).  DPM stands
for "Dots Per Meter".  On a standard V1.2 Kickstart they come out to:

NormalDPMX  = $0500 or decimal 1280
NormalDPMY  = $044A or decimal 1098

This seems to be optimized for the 1080 monitor, though users of other
monitors could certainly change these fields.  It is very possible that if
the OS detects a PAL system instead of NTSC, it will adjust.

There are other fields too look at as well, read your V1.2
graphics/GfxBase.h include file.  Especially note NormalDisplayRows and
NormalDisplayColums.  *That* or an Intuition GetScreenData() call is an
absolute *must* for a program that opens a custom screen.  I have 704
pixels of horizonal resolution, and I want to see all of it in all programs
I use!

My 1080 monitor takes 26.5 cm to display 704 pixels horizontal and 19.2 cm
to do 460 pixels vertical.  That's an aspect ratio of about 11:10.  My
monitor is no longer "factory fresh", it has been modified to shrink the
picture so I can add more pixels using "morerows" or "scnsizer".
Measurement accuracy is +-5mm.  Trust GfxBase, I'll adjust for my weird
display as needed.

Normal DPMX and Y would be good candidates for a future preferences item so
the setting of these fields would be automatic on powerup.  The only real
problem with this is that it can't adjust for different densities on two or
more separate displays.  (If you had two sets of graphics chips, two sets
of chip ram and two monitors both with differing densities this would
loose.)
--------
Personally, I'd very much like to see the next generation of Amiga chips
have an adjusted "dot clock" such that (hi-res interlace) pixels end up
exactly *square* on the screen instead of the 10:11 ratio that we have
now.  Artists, CAD system designers, desktop publisher designers, etc. would
*love* this.

No particular change would be needed except for slightly slowing the rate
at which pixels are cranked out to the display.  The display would get
slightly wider for the same number of pixels.  While this would affect nuts
like me who have crammed our displays into the borders, normal 1080 users
and users of TV sets would not loose anything.

-----
|\ /|  . Ack! (NAK, EOT, SOH)
{o O} . 
( " )	bryce@hoser.berkeley.EDU -or- ucbvax!hoser!bryce
  U	If "hoser" does not work, try my old address on "cogsci"