go to www.geomview.org home page
 
Home

Overview
FAQ
Documentation

Download

Mailing List

Geomview For Windows?

Support
Users
Development

Bug Reporting
Contributing
Contact Us

Sponsors

 

Site Search

 

Advanced
Search

 
About the software@geom archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Closed REQ 5798]: Animator module in Geomview..


  • To: software@geom.umn.edu
  • Subject: Re: [Closed REQ 5798]: Animator module in Geomview..
  • From: daemon
  • Date: Thu, 21 Mar 1996 15:06:23 -0600 (CST)

I don't think there's a convenient way to use the Animator module to
record a series of screen snapshots.  However, it might not be hard to
write a script to do it yourself.  You'd need to end up sending geomview
commands like:

(geometry thing < file0.oogl)
(snapshot Camera 000.sgi)
(geometry thing < file1.oogl)
(snapshot Camera 001.sgi)
..
(geometry thing < fileN.oogl)
(snapshot Camera NNN.sgi)


One way to do that is to write a tiny shell script which invokes awk.
Note the "printf" commands, as in C, in which tags like %d or %03d
in the format string are translated into decimal numbers to generate
successive file names.  You can probably see how to adapt this for other
ways of naming the files.  (Note mention of "Camera", the name of
geomview's default graphics window; you could specify another if it matters.)

#! /bin/sh
awk '
BEGIN {
	n=50;
	loadfmt = "(geometry thing < mydir/myfile%d.oogl)\n";
	snapfmt = "(snapshot Camera mymoviedir/%03d.sgi)";
	for(i = 0; i < n; i++) {
		printf loadfmt, i;
		printf snapfmt, i;
	}
	exit;
}'

So you'd put the above in some file, say "makemovie", mark it executable
with "chmod +x makemovie", and run it: either save its output in a file
("makemovie > movie.gv") and load the file into geomview, or enter
"(emodule-run makemovie)" as a geomview command directly.

Probably you'd want the sequence of things to be correctly positioned first.
If so, you could start the game by entering a GCL command like
	(geometry thing < file0.oogl)
and then adjust the view appropriately, before running the recording process.

  Stuart


 
Home | Overview | FAQ | Documentation | Support | Download | Mailing List
Windows? | Development | Bug Reporting | Contributing | Contact Us | Sponsors
 
site hosted by
SourceForge Logo