Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!agate!shelby!polya!ali From: ali@polya.Stanford.EDU (Ali T. Ozer) Newsgroups: comp.sys.next Subject: Eagle Message-ID: <9640@polya.Stanford.EDU> Date: 1 Jun 89 17:34:03 GMT References: <6545@sdcsvax.UCSD.Edu> Sender: Ali T. Ozer Reply-To: aozer@NeXT.com (Ali Ozer) Organization: . Lines: 69 Followup-To: In article <6545@sdcsvax.UCSD.Edu> rfellman@ucsd.edu () writes: >The movie file for the eagle is there under ../movies but it references >a file called 'birds.ps' (you have to change the path). >Since the movies are both postscript >programs, I can't get them to run with scene. Preview and yap seem to >have problems with them. I heard some mention of 'yap' changing so that >one couldn't watch it 'running' a program. Only the final result could >be seen. Perhaps this 'feature' makes it impossible to see movies >anymore? This new "feature" of Yap wouldn't prevent you from watching a PS program like eagle.movie.ps in action; eagle does not draw in the Yap window but opens up its own windows. The Bounce.ps program in the PostScript examples directory (/NextDeveloper/Examples/PostScript) does a similar thing; opens up a separate PostScript window and bounces it around the screen. The problem with eagle (and some other PostScript programs from 0.8) is the change in the way alpha operates. The "initwindowalpha" operator does not exist in 0.9 (and beyond), and the "alphaimage" operator API has changed. The eagle movie uses both of these operators. In eagle.movie.ps, if you get rid of the "initwindowalpha" operator (along with its 2 arguments), and make the birds.ps file available, you'll see that the movie starts running but instead of the eagle a white square blob flies around. You'll need to fix the alphaimage arguments to get the eagle back. For more info on the changes, refer to the release notes for "alphaconvert" and the window server. BTW, you should note that the eagle program opens up a window in front of all other windows. That is why you don't see any error messages displayed when you run eagle in Yap. You can also use "pft" for programs like eagle; "pft" is a PostScript interpreter that is more low level than even Yap (if you can get any lower...). Type "pft" to a shell, and you're talking to PostScript. You of course don't have a window to draw in, so one thing you can do is /myWin 10 10 100 100 Retained window def % create retained 100x100 window Above 0 myWin orderwindow % bring it on screen, above everything else myWin windowdeviceround % make it the device for the current gstate after the above, all PostScript instructions you type to pft will go to your freshly created window. Of course, the window is not an AppKit window and does not have a title bar and does not respond to mouse events in the usual AppKit fashion. A better way to use pft might be to run an existing stand-alone PostScript program like eagle without having to go through Yap... Then you simply do pft