home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.sys.sgi:18382 comp.sys.sgi.graphics:73
- Path: sparky!uunet!dove!poly2.nist.gov!fred
- From: fred@poly2.nist.gov (Frederick R. Phelan Jr.)
- Newsgroups: comp.sys.sgi,comp.sys.sgi.graphics
- Subject: polarview
- Message-ID: <7719@dove.nist.gov>
- Date: 30 Dec 92 19:37:29 GMT
- Sender: news@dove.nist.gov
- Followup-To: comp.sys.sgi
- Lines: 37
-
- I open a window with the following sequence:
-
- prefposition(10,990,10,990);
- mainwin = winopen("Name");
- keepaspect(980.0,980.0);
- minsize(98.0,98.0);
- winconstraints();
- doublebuffer();
- RGBmode();
- gconfig();
- mmode(MVIEWING);
-
- /* set up hidden surface elimination */
- zbuffer(TRUE);
- czclear(0,getgdesc(GD_ZMAX));
-
- /* Intialize the eye position and orientation. */
- perspective(500,1.0,1.0,400.0);
- polarview(2.5*WorldMax,0,0,0);
- ^^^^^^^^
- ^
- The value of WorldMax >>>>^ is based on values in the input data file.
-
- Problem:
- When I read in a new data file, recalculate WorldMax and call polarview
- with the new val of WorldMax, the view is not modified. Very strange.
- I noticed that on the polarview man page it says:
-
- The matrix computed by polarview premultiplies the current matrix, as
- specified by mmode ....
-
- Could this be part of the problem?
-
- Fred
- ---
- Fred Phelan
- fred@poly2.nist.gov
-