Re: [PyOpenGL-Users] fit object to screen
Brought to you by:
mcfletch
From: Mads I. <mp...@co...> - 2009-10-31 08:34:18
|
Calculate the size of the bounding box that enclose all your objects. Then make sure the bounding box fits your scene. For a good discussion on the topic, read the section 'Troubleshooting Transformations' http://www.glprogramming.com/red/chapter03.html Best regards, Mads Tim Smith (25121) wrote: > > Sorry to pester everyone with so many questions, > > I’m creating a large object with the intention of zooming around and > rotating around it, but I’d like to zoom out initially enough to fit > the object to screen, I can’t seem to get this to work? > > I need to calculate the end size of the object and then set the camera > accordingly right? > > ********************************************************************** > IMPORTANT - This email and any attachments may contain confidential or > privileged information intended solely for the intended recipient and > / or copyrighted material. If you are not the intended recipient you > must not use, interfere with, disclose, copy or take any action with > reliance on this email or any part of it. If you have received this > email in error please advise the sender via return email and delete or > destroy all copies of this email and attachments. Any claim to > confidentiality or privilege is not waived or lost by reason of > mistaken transmission of this message. Any unauthorised use, copying > or distribution is prohibited. Minara Resources Limited does not > warrant that this email or any attachments are free of viruses and > cannot guarantee the accuracy, reliability or completeness of this > email and any attachments. > > This footnote also confirms that this email message has been swept by > MIMEsweeper for the presence of computer viruses. > > www.clearswift.com <http://www.clearswift.com/> > ********************************************************************** > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Come build with us! The BlackBerry(R) Developer Conference in SF, CA > is the only developer event you need to attend this year. Jumpstart your > developing skills, take BlackBerry mobile applications to market and stay > ahead of the curve. Join us from November 9 - 12, 2009. Register now! > http://p.sf.net/sfu/devconference > ------------------------------------------------------------------------ > > _______________________________________________ > PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Users mailing list > PyO...@li... > https://lists.sourceforge.net/lists/listinfo/pyopengl-users > -- +-------------------------------------------------------------+ | Mads Ipsen, Scientific developer | +-------------------------------+-----------------------------+ | QuantumWise A/S | phone: +45-29716388 | | Nørre Søgade 27A | www: www.quantumwise.com | | DK-1370 Copenhagen K, Denmark | email: mp...@qu... | +-------------------------------+-----------------------------+ |