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

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