To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 9921
9920  |  9922
Subject: 
Re: LDGlite and LPub
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 25 Oct 2004 17:13:08 GMT
Viewed: 
1739 times
  
In lugnet.cad.dev, Don Heyse wrote:
Anyhow, I switched the -cg to -cg30,45,60000 to get the same
viewing angle as the l3p command line and got an image much closer
to the pov output.  However the car was a bit smaller.  Nuts!
I noticed if I use a larger screen height in ldglite the car comes
out bigger.  A setting of -v5 gives a much closer match, so maybe I
botched the pov aspect ratio calculation.  768 is close to 800 so
perhaps I reversed the x and y.  I'll have to take a look at that.
-v800,800 looks very close in size to the pov output.

Please note that L3P's field of view is the horizontal field of view, and
OpenGL's is the vertical field of view.  You have to convert if you want the
same result.  You can check real quick by doing a square image in each.  If they
look the same, then it's a good bet that's the problem.

--Travis



Message has 1 Reply:
  Re: LDGlite and LPub
 
(...) In case you don't want to think about the math, here it is: vfov = 2*atan(tan(hfov/2)/(...h/height)) --Travis (20 years ago, 25-Oct-04, to lugnet.cad.dev)

Message is in Reply To:
  Re: LDGlite and LPub
 
(...) Ok, now we're getting closer to the problem, I think. The ldglite image is blank, so I changed a few things to see what's up. I switched -mS to -ms so I could see it on screen and got a car facing forward. Does the offscreen windows rendering (...) (20 years ago, 25-Oct-04, to lugnet.cad.dev)

52 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