To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cadOpen lugnet.cad in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / *41580 (-20)
  Re: Inverse matrix?  [DAT]
 
(...) Did you mean this: [ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ] [ 1 5 9 13 2 6 10 14 3 7 11 15 4 8 12 16 ] I have yet to try it. James (18 years ago, 8-Apr-07, to lugnet.cad.ray, lugnet.cad)
 
  Re: Inverse matrix?
 
(...) I learned my matrix math from a 3d game programming book and I have no idea what the diagonals are... I was going to look it up but I got Travis' code to work! (URL) might still look it up as I may need to know about it) James (18 years ago, 7-Apr-07, to lugnet.cad.ray, lugnet.cad)
 
  Re: Inverse matrix?
 
(...) I mean swap the OFF-diagonals, leave the diagonals as is. (...) (18 years ago, 7-Apr-07, to lugnet.cad.ray, lugnet.cad)
 
  Re: how does a line ends?
 
(...) Interesting. I looked at the C runtime library sources that came with MSVC++ 6.0. The fgets() function there is definitely a little different than either yours or the one ROSCO linked. It does have a couple calls for thread safety, but (...) (18 years ago, 7-Apr-07, to lugnet.cad, FTX)
 
  Re: Inverse matrix?
 
(...) Just take the transpose of the 3x3 world rotation matrix and it should work as the inverse. Transpose means swap diagonals M[1,2] <=> M[2,1] etc. If this doesn't work I've misunderstood you. Tim (18 years ago, 7-Apr-07, to lugnet.cad.ray, lugnet.cad)
 
  Re: Inverse matrix?
 
(...) Hehehe, cool, I'll try that. Thanks! James (18 years ago, 7-Apr-07, to lugnet.cad.ray, lugnet.cad)
 
  Re: Inverse matrix?
 
Clarification! .... snip (...) I am using additional points to specify the location of feet. Combined with the model location, I have 3 points for the hip and feet. [now the following paragraph should make more sense] (...) (18 years ago, 7-Apr-07, to lugnet.cad.ray, lugnet.cad)
 
  Re: Inverse matrix?
 
(...) Arg. I thought this was going to be easy. I liked this part of the wikipedia article: "In practice, inverting a matrix is rarely required. Most of the time, one is really after the solution of a particular system of linear equations." Hm. I (...) (18 years ago, 7-Apr-07, to lugnet.cad.ray, lugnet.cad)
 
  Re: how does a line ends?
 
(...) Thanks, ROSCO. I took that code and modified it to use char instead of _TCHAR, and got timings of 720-750ms, compared to the 750-780ms I got with my original one. I then modified it to support CR and LF interchangeably, and got back to the (...) (18 years ago, 7-Apr-07, to lugnet.cad, FTX)
 
  LDD Model of GG-1 Electric Locomotive - Advice Requested
 
I decided to model the very well known GG1 locomotive as a model available from LEGO Factory. I took some liberties with the design and color scheme in order to accomodate what can be done in LDD. Even so, I think the result is inherently (...) (18 years ago, 7-Apr-07, to lugnet.trains, lugnet.announce.moc, lugnet.cad.ldd, FTX) ! 
 
  Re: Inverse matrix?
 
(...) I just realised something... do you want a general inverse or a specific inverse? Some inversions are simple eg. a pure rotation can be inverted by taking its transpose and reflections are their own inverses. Tim (18 years ago, 7-Apr-07, to lugnet.cad.ray, lugnet.cad)
 
  Re: how does a line ends?
 
(...) Just as a proof of the value of disk caching, loading the same model using the system fgets after a fresh reboot, the same loading portion took 3300ms. Also, I switched the feof calls out for a check of the value against EOF just to see if it (...) (18 years ago, 7-Apr-07, to lugnet.cad, FTX)
 
  Re: how does a line ends?
 
(...) (URL) Google to the rescue>. ROSCO (18 years ago, 7-Apr-07, to lugnet.cad, FTX)
 
  Re: how does a line ends?
 
(...) Quick question. I was in a hurry, and wanted to play it safe, so I call feof instead of checking to see if char1 == EOF. Any idea what gets returned for extended ASCII characters (>= 128)? Does the int contain positive numbers greater than (...) (18 years ago, 7-Apr-07, to lugnet.cad, FTX)
 
  Re: how does a line ends?
 
(...) I timed the file reading/parsing portion of the model load. It would have been more difficult to time the actual amount of time spent inside fgets/myFgets, so realistically it's likely that myFgets is even slower in comparison to fgets. The (...) (18 years ago, 7-Apr-07, to lugnet.cad, FTX)
 
  Re: Inverse matrix?
 
(...) There really is no easy way to do it. Feel free to look at TCVector::invertMatrix in the LDView code if you want to see code that does it on a 4x4 matrix. To convert a 3x3 matrix into a 4x4 matrix, put the 3x3 in the top left, put a 1 in the (...) (18 years ago, 7-Apr-07, to lugnet.cad.ray, lugnet.cad)
 
  NEW VERSION! Re: Conversion file for ldraw to ldd
 
(...) Mike Gallagher has very kindly uploaded his improved version of ldraw.xml to (URL) I recommend using it. Tim (18 years ago, 7-Apr-07, to lugnet.cad.ldd)
 
  Re: Conversion file for ldraw to ldd
 
(...) I will do that. Thanks for all the help and the ldraw.xml file. I loaded mine as it is today. I have a bunch more I need to do and I should have those done by Tuesday or so. I made this version 1.01a for starters and will keep most up to date (...) (18 years ago, 7-Apr-07, to lugnet.cad.ldd)
 
  Re: how does a line ends?
 
(...) That was quick! Thanks for taking the time to indulge me... (...) It is interesting that it was that much time difference. Are these the total load times, or just profiling of the time spent inside the fgets() routines? I see one or two things (...) (18 years ago, 7-Apr-07, to lugnet.cad, FTX)
 
  Re: Conversion file for ldraw to ldd
 
--snip-- (...) Hi Mike, It's my understanding [1] that we're allowed to post our own Ldraw.xml files so perhaps you could upload yours to Brickshelf. That way people can be sure that they've got the fixes right and the XML file can grow with fixes (...) (18 years ago, 7-Apr-07, to lugnet.cad.ldd)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR