To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 2495
2494  |  2496
Subject: 
Re: Is it possible to use LDView as POV-Ray previewer?
Newsgroups: 
lugnet.cad.ray
Date: 
Sun, 4 Dec 2005 06:50:14 GMT
Viewed: 
7929 times
  
In lugnet.cad.ray, Robert Seifert wrote:
   Thanks to both of you. Just for me, I would be completely satisfied if LDView shows (and exports to clipboard) full 4*4 trafo matrix instead of 3*3 matrix as it does in current version. Then I am able to derive .pov trafo matrix by myself. Small change (probably just changing corresponding indexes in export and import routine) would make it. Moreover you’ll get better results when using command line. Currently LDview’s menu item “View/Show View Info” shows (and exports) only 3*3 rotation matrix, and that’s not enough.

As it happens, the 3x3 matrix that LDView gives you when you do View->Show View Info isn’t the camera matrix. It’s the rotation matrix applied to the model around the model’s centroid. Having said that, I can derive a camera matrix based on the model’s rotation matrix, the model’s centroid, the camera’s position, and the camera’s actual rotation matrix. (Unless you go into fly-through mode, the camera’s rotation matrix is always an identity matrix, but I’ll certainly include that so that it will be correct if you do go into fly-through mode.) Then I need to apply the coordinate system handedness conversion in order to make it useful in POV-Ray, since LDraw uses a right-handed coordinate system.

--Travis



Message is in Reply To:
  Re: Is it possible to use LDView as POV-Ray previewer?
 
Thanks to both of you. Just for me, I would be completely satisfied if LDView shows (and exports to clipboard) full 4*4 trafo matrix instead of 3*3 matrix as it does in current version. Then I am able to derive .pov trafo matrix by myself. Small (...) (19 years ago, 4-Dec-05, to lugnet.cad.ray, FTX)

17 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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