home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / sys / hp / 9445 < prev    next >
Encoding:
Internet Message Format  |  1992-08-19  |  2.9 KB

  1. Path: sparky!uunet!gatech!news.byu.edu!news.mtholyoke.edu!nic.umass.edu!caen!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!deccrl!bloom-beacon!eru.mt.luth.se!lunic!sunic!corax.udac.uu.se!irfu.se!bt
  2. From: bt@irfu.se (Bo Thide')
  3. Newsgroups: comp.sys.hp
  4. Subject: Re: 3D starbase graphics -> Postscript
  5. Message-ID: <1992Aug19.132822.20739@irfu.se>
  6. Date: 19 Aug 92 13:28:22 GMT
  7. References: <1992Aug14.085627.1@isvax.lmsc.lockheed.com> <7371235@hpfcso.FC.HP.COM>
  8. Organization: Swedish Institute of Space Physics, Uppsala, Sweden
  9. Lines: 51
  10.  
  11. In article <7371235@hpfcso.FC.HP.COM> hstroyan@hpfcso.FC.HP.COM (Howard Stroyan) writes:
  12. >In comp.sys.hp, hebert@isvax.lmsc.lockheed.com (Rick Hebert, Lockheed-ESC, Houston, 713writes:
  13. >
  14. >> If someone could point the way that I could go from 3D starbase to
  15. >> either PostScript, HPGL, or XWD then I would be happy. 
  16. >
  17. >I have had success using xwd to create dumps of starbase windows.
  18. >The key word hear is "window".  If you have a display system which
  19. >supports multiple visuals (CRX24(Z), TVRX, PVRX,...) and associated
  20. >colormaps, xwd is not very good at understanding that some windows are
  21. >not made of the same stuff (visual and/or colormap) as the root window.
  22. >
  23. >Read "not very good" as "No Way".
  24. >
  25. >The only way around this is to dump just the window with the starbase
  26. >output (and the odd visual/colormap).  The easiest way to do this is to 
  27. >just invoke "xwd" and use the interactive point and click to select the 
  28. >window. The next interesting question will be if your xwd2ps can handle
  29. >24 bit DirectColor visuals :-(.
  30. >
  31. >I haven't tried this, so good luck.
  32. >
  33. >--
  34. >Howard Stroyan                                         
  35. >Hewlett-Packard                                        hstroyan@fc.hp.com
  36. >User Interface Technology Division                     
  37.  
  38. Here's what I do:
  39.  
  40. If you have control over your Starbase source code you can modify it so
  41. it can output several formats, including HP-GL and Starbase bitmap files
  42. (all Starbase drivers for are provided in HP-UX).  From a Starbase bitmap
  43. you can transform to the X Window dump format with the standard HP-UX
  44. command sb2xwd; you can use the reverse command xwd2sb to import X
  45. Window dumps into your Starbase application.  From xwd you can go to
  46. almost anything you like by using the PBM package (freely available in
  47. many archives).  For instance the pbm command  "xwdtopnm <file.xwd> |
  48. pnmtops" will produce an encapsulated postsrcipt file as final output.
  49.  
  50. The upshot of all this is that it is indeed possible to go from Starbase
  51. to Encapsulated Postscript.
  52.  
  53. Hope this helps,
  54.  
  55. Bo
  56. -- 
  57.    ^   Bo Thide'--------------------------------------------------------------
  58.   |I|        Swedish Institute of Space Physics, S-755 91 Uppsala, Sweden
  59.   |R|      Phone: (+46) 18-303671.  Fax: (+46) 18-403100.  IP: 130.238.30.23
  60.  /|F|\          INTERNET: bt@irfu.se      UUCP: ...!mcvax!sunic!irfu!bt  
  61.  ~~U~~ ----------------------------------------------------------------sm5dfw-
  62.