home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / sgi / 18382 < prev    next >
Encoding:
Internet Message Format  |  1992-12-30  |  1.2 KB

  1. Xref: sparky comp.sys.sgi:18382 comp.sys.sgi.graphics:73
  2. Path: sparky!uunet!dove!poly2.nist.gov!fred
  3. From: fred@poly2.nist.gov (Frederick R. Phelan Jr.)
  4. Newsgroups: comp.sys.sgi,comp.sys.sgi.graphics
  5. Subject: polarview
  6. Message-ID: <7719@dove.nist.gov>
  7. Date: 30 Dec 92 19:37:29 GMT
  8. Sender: news@dove.nist.gov
  9. Followup-To: comp.sys.sgi
  10. Lines: 37
  11.  
  12. I open a window with the following sequence:
  13.  
  14.     prefposition(10,990,10,990);
  15.     mainwin = winopen("Name");
  16.     keepaspect(980.0,980.0);
  17.     minsize(98.0,98.0);
  18.     winconstraints();
  19.     doublebuffer();
  20.     RGBmode();
  21.     gconfig();
  22.     mmode(MVIEWING);
  23.     
  24.     /* set up hidden surface elimination */
  25.     zbuffer(TRUE);
  26.     czclear(0,getgdesc(GD_ZMAX));
  27.  
  28.     /* Intialize the eye position and orientation. */
  29.     perspective(500,1.0,1.0,400.0);
  30.     polarview(2.5*WorldMax,0,0,0);
  31.                       ^^^^^^^^
  32.               ^
  33. The value of WorldMax >>>>^  is based on values in the input data file.
  34.  
  35. Problem:
  36. When I read in a new data file, recalculate WorldMax and call polarview
  37. with the new val of WorldMax, the view is not modified.  Very strange.
  38. I noticed that on the polarview man page it says:
  39.  
  40.      The matrix computed by polarview premultiplies the current matrix, as
  41.      specified by mmode ....
  42.  
  43. Could this be part of the problem?
  44.  
  45. Fred
  46. ---
  47. Fred Phelan
  48. fred@poly2.nist.gov
  49.