Subject:
|
Re: LDGlite and LPub
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Tue, 26 Oct 2004 01:53:12 GMT
|
Viewed:
|
1851 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
In lugnet.cad.dev, Travis Cobbs wrote:
> In lugnet.cad.dev, Travis Cobbs wrote:
> > 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.
>
> In case you don't want to think about the math, here it is:
>
> vfov = 2*atan(tan(hfov/2)/(width/height))
See, this is why ldview is so much better. I'm still trying to absorb
the first post and you whip out the math.
Ok, apparently I knew about the horizontal/vertical bit at one point
because the code to print an l3p command line contains this comment:
// POV uses x for Field Of View, GluPerspective() uses y.
And I found some code similar to your equation there, but it looks
like I forgot to do the reverse with the command line fov before
passing it to GluPerspective(). Oops.
Thanks,
Don
|
|
Message has 1 Reply: ![](/news/x.gif) | | Re: LDGlite and LPub
|
| (...) I thank you for the complement, but in this particular instance, I have to give credit where credit it is due. I'm sure I could have derived the above equation on my own, but here is the actual comment out of LDView that I got the above from: (...) (20 years ago, 26-Oct-04, to lugnet.cad.dev)
|
Message is in Reply To:
![](/news/x.gif) | | 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)
|
52 Messages in This Thread: ![LDGlite and LPub -Kevin L. Clague (13-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub (and maybe ldview? -Don Heyse (13-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Steve Bliss (14-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub (and maybe ldview? -Don Heyse (14-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Steve Bliss (15-Oct-04 to lugnet.cad)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: LDGlite and LPub (and maybe ldview? -Travis Cobbs (14-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Steve Bliss (14-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Don Heyse (14-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Travis Cobbs (14-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Don Heyse (14-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Travis Cobbs (14-Oct-04 to lugnet.cad, lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Don Heyse (15-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Don Heyse (15-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Don Heyse (15-Oct-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub (and maybe ldview? -Ross Crawford (15-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub (and maybe ldview? -Steve Bliss (15-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Orion Pobursky (15-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Steve Bliss (15-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub (and maybe ldview? -Andrew Westrate (15-Oct-04 to lugnet.cad)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub (and maybe ldview? -David Laswell (15-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Orion Pobursky (16-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub (and maybe ldview? -Jan Folkersma (16-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub (and maybe ldview? -Orion Pobursky (16-Oct-04 to lugnet.cad)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub (and maybe ldview? -Tim David (18-Oct-04 to lugnet.cad)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/268.gif) ![Re: LDGlite and LPub (and maybe ldview? -Steve Bliss (18-Oct-04 to lugnet.cad)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub (and maybe ldview? -Dan Boger (18-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Orion Pobursky (18-Oct-04 to lugnet.cad)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub (and maybe ldview? -Chris Dee (15-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub (and maybe ldview? -Steve Bliss (15-Oct-04 to lugnet.cad)](/news/x.gif)
![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub -Kevin L. Clague (24-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub -Don Heyse (24-Oct-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Kevin L. Clague (25-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Don Heyse (25-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub -Kevin L. Clague (25-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Don Heyse (25-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub -Kevin L. Clague (25-Oct-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub -Kevin L. Clague (25-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Don Heyse (25-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Kevin L. Clague (25-Oct-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub -Travis Cobbs (25-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Travis Cobbs (25-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Travis Cobbs (26-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Don Heyse (26-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Travis Cobbs (26-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/246.gif) ![Re: LDGlite and LPub -Anders Isaksson (26-Oct-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/28.gif) ![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub -Don Heyse (26-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Kevin L. Clague (29-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Don Heyse (30-Oct-04 to lugnet.cad.dev)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Kevin L. Clague (1-Nov-04 to lugnet.cad.dev)](/news/x.gif)
![](/news/x.gif) ![](/news/x.gif) ![](/news/68.gif) ![Re: LDGlite and LPub -Lars C. Hassing (5-Nov-04 to lugnet.cad)](/news/x.gif) ![](/news/46.gif) ![Re: LDGlite and LPub -Kevin L. Clague (5-Nov-04 to lugnet.cad)](/news/x.gif)
- 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
|
|
|
|