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 / 8583
8582  |  8584
Subject: 
Camera Positioning
Newsgroups: 
lugnet.cad.dev, lugnet.cad.ray
Date: 
Tue, 25 Mar 2003 10:06:46 GMT
Viewed: 
838 times
  
Maybe someone can point me in the right direction...

I have an object with a known bounding box,  how do I calculate the position
of the camera so that the whole object is shown on a screen of known
dimentions?  In other words, how to I determine the amount I should the
camera away from the object so that the entire object is shown in the viewport?

-Orion



Message has 2 Replies:
  Re: Camera Positioning
 
(...) Hi Orion, The law of similar triangles comes to mind...... not that I consider myself much of a mathemetician. Pick an aribitrary camera distance greater than zero and calculate the size of the bounding box projected into a 2D plane (the (...) (21 years ago, 25-Mar-03, to lugnet.cad.dev, lugnet.cad.ray)
  Re: Camera Positioning
 
(...) This document describes a method of scaling to fit a bounding sphere into a viewport, starting somewhere around page 30. (URL) would think you'd have to pick a camera angle first, or fix one of the other variables like the distance to the (...) (21 years ago, 25-Mar-03, to lugnet.cad.dev, lugnet.cad.ray)

3 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