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 / 2507
2506  |  2508
Subject: 
Re: Is it possible to use LDView as POV-Ray previewer?
Newsgroups: 
lugnet.cad.ray
Date: 
Fri, 9 Dec 2005 07:17:26 GMT
Viewed: 
8019 times
  
In lugnet.cad.ray, Lars C. Hassing wrote:
> Well, yes, but could you try generating these parameters in stead:
>    location
>    sky
>    look_at
>    angle
OK, I got it working. Here’s my camera:

camera
{
    #declare ASPECT = 4/3;
    location < 0.0803394,-41.7274,-64.303 >
    sky < -0.19039426700203063,-0.95564581262807657,0.22470225610612488 >
    right ASPECT * < -1,0,0 >
    look_at < 49.963588707634024,-64.281708407107288,-117.95945954024526 >
    angle 57.8224
}

Note: I discovered that I was wrong about the right vector. The look_at statement rotates it around based on the sky vector. I’m not sure why it needs to be -1 for x, though. My sky vector does point down, since “up” in LDraw is -y. Assuming you allow user input of the aspect, I can just pass -4/3, but I’m still confused about that.

Here’s what it looks like in LDView:



Here’s what it looks like in POV:



Both images are the same size, and they pretty much line up exactly, pixel-for-pixel. (Note that POV-Ray refracts, so everything refracted through the glass doesn’t line up pixel-for-pixel.)

--Travis



Message is in Reply To:
  Re: Is it possible to use LDView as POV-Ray previewer?
 
(...) Well, yes, but could you try generating these parameters in stead: location sky look_at angle These should be adequate to fully describe the camera. ldglite uses them (URL) I have already made a -csky option. My impression has always been that (...) (19 years ago, 6-Dec-05, to lugnet.cad.ray)

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