🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sgi.misc
Article #92

multiple polarviews

#92
From: Frederick R. Phelan Jr.
Date: Wed, 30 Dec 1992 16:42
42 lines
1609 bytes
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
/*___________________________________________________
   ____ __  ___  __    ___       ___        ___ 
  /__  /_/ /__  / /   /__/ /__/ /__   /    /__/ /\  /  
 /    / ( /__  /_/   /    /  / /___  /___ /  / /  \/
___________________________________________________*/
Technical Details
Message-ID: <34833@adm.brl.mil>
Path: arc1-ca.pugleaf.net!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

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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
From: fred@poly2.nist.gov (Frederick R. Phelan Jr.)
Newsgroups: comp.sys.sgi.misc
Subject: multiple polarviews
Message-ID: <34833@adm.brl.mil>
Date: 30 Dec 92 16:42:40 GMT
Sender: news@adm.brl.mil
Lines: 42