Are there any checks that I can do to prevent this exception? I found out that the exception comes from this line but I could not catch the exception using try catch: vpTrans.setTransform(transform3d);
----- Original Message ----- From: "Justin Couch" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, March 28, 2003 2:48 PM Subject: Re: [JAVA3D] What triggered invert() or caused SingularMatrixException? > Jasmine Kwok wrote: > > Hi All, > > > > I've been getting the SingularMatrixException but according to the API, it is thrown in the invert method, which I did not call in my codes. What other methods could have invoked the method or cause the exception? > > Java3D performs an inversion of the view transform matrix every frame. > It finds this matrix by looking at which ViewPlatform/View/Canvas3D > setup is current active and then looking to the parent transformation, > which it then inverts to form the view matrix. Typically you will get > this exception if you set a matrix scale that is zero or extremely close > to it. > > -- > Justin Couch http://www.vlc.com.au/~justin/ > Java Architect & Bit Twiddler http://www.yumetech.com/ > Author, Java 3D FAQ Maintainer http://www.j3d.org/ > ------------------------------------------------------------------- > "Humanism is dead. Animals think, feel; so do machines now. > Neither man nor woman is the measure of all things. Every organism > processes data according to its domain, its environment; you, with > all your brains, would be useless in a mouse's universe..." > - Greg Bear, Slant > ------------------------------------------------------------------- > > =========================================================================== > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff JAVA3D-INTEREST". For general help, send email to > [EMAIL PROTECTED] and include in the body of the message "help". > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
