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 / 2751
2750  |  2752
Subject: 
Re: Fun with LDView Fly Through (A Minifig's Eye View)
Newsgroups: 
lugnet.cad.ray
Date: 
Mon, 19 Mar 2007 22:49:07 GMT
Viewed: 
7580 times
  
In lugnet.cad.ray, Jim DeVona wrote:
   In lugnet.cad.ray, Travis Cobbs wrote:
   (Moved to lugnet.cad.ray.)

In lugnet.cad, Jim DeVona wrote:
   In lugnet.cad, Travis Cobbs wrote:
   The aspect ratio shouldn’t make enough of a difference to put the camera out of the ship. It should only change the cropping. If you have the same aspect ratio, you should should get nearly pixel-perfect alignment of all polygons that don’t involve reflection or refraction. I’m not sure if this is a Mac-specific bug, or if you did something that I haven’t done in my testing on Windows.

You’re right - it does work. I retried it with L3P output and the view is positioned correctly. My previous effort used POV-Ray code from Anton’s converter. That’s not necessarily the reason it didn’t work before, though: it was late and I was tired. At any rate, LDView is certainly exonerated (not that it was accused).


I think Anton’s library isn’t in LDraw units. Since the camera placement is in LDraw units, it won’t work right. If you know the conversion factor, you can probably multiply the camera location by that and have it work.

Ah, that’s a logical explanation. I just looked in the manual.txt that came with Anton’s part library and it does state that it considers a POV-Ray unit 1 millimeter. If one LDraw unit is equal to 0.4 mm, then the conversion probably is straightforward (I haven’t tried it). I hate to provoke feature creep, but maybe LDView could select which units to output the camera in?

Jim

Jim,

In the Converter I divide every coordinate the LDraw model has by 2.5 and then I end up with the millimeter system I digitized everything with. I have (since I started to build my Library starting in 1992) always used millimeters when measuring every single brick.

Greetz, Anton



Message has 1 Reply:
  Re: Fun with LDView Fly Through (A Minifig's Eye View)
 
(...) Hi, Anton! Thanks for the explanation. That is a straightforward conversion. I divided LDView's reported camera location and lookat coordinates by 2.5, reversed the sign of the y coordinates, used the default right vector (positive x), and it (...) (18 years ago, 20-Mar-07, to lugnet.cad.ray, FTX)

Message is in Reply To:
  Re: Fun with LDView Fly Through (A Minifig's Eye View)
 
(...) Ah, that's a logical explanation. I just looked in the manual.txt that came with Anton's part library and it does state that it considers a POV-Ray unit 1 millimeter. If one (URL) LDraw unit> is equal to 0.4 mm, then the conversion probably is (...) (18 years ago, 19-Mar-07, to lugnet.cad.ray, FTX)

13 Messages in This Thread:



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

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

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