Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uwm.edu!zaphod.mps.ohio-state.edu!mips!sgi!shinobu!odin!horus.esd.sgi.com!thant From: thant@horus.esd.sgi.com (Thant Tessman) Newsgroups: comp.sys.sgi Subject: Re: Replacing the perspective matrix. Keywords: loadmatrix, perspective, viewing mode Message-ID: <9514@odin.corp.sgi.com> Date: 26 Jun 90 20:31:17 GMT References: <696@celia.UUCP> Sender: news@odin.corp.sgi.com Reply-To: thant@horus.esd.sgi.com (Thant Tessman) Organization: Silicon Graphics Inc. Lines: 24 In article <696@celia.UUCP>, keith@celia.UUCP (Keith Goldfarb) writes: > The perspective() call will load a matrix onto the transformation > stack if in single matrix mode or replace the current projection > matrix if in viewing mode. The loadmatrix() call will load a > matrix onto the transformation stack no matter what the mode. > > What I want to do is to replace the current projection matrix > (while in viewing mode) with one of my choosing with a call > like loadmatrix(). Does such a call exist? I don't think switching between MPROJECTION and MVIEWING changes the values in the matrices. (Only going into MSINGLE does that.) So I think you can just say: mmode(MPROJECTION); loadmatrix(m); mmode(MVIEWING); Not having actually done this myself, I don't guarantee the validity of this information, but I think its right. thant "Ask not for whom the booth tolls..."