From: Shawn Hargreaves Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro and 3d stuff Date: Thu, 30 Apr 1998 19:44:08 +0100 Organization: None Message-ID: References: <35489369 DOT 1085C512 AT ic DOT ac DOT uk> NNTP-Posting-Host: talula.demon.co.uk MIME-Version: 1.0 Lines: 19 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Peter Steele writes: >I an a little bit new to allegro and was wondering if someome could tell >me how I can move the coordinate system, eg move the origin to the >centre of the screen. Just add an offset onto your coordinates before you draw the shapes... >I am asking this because when I tried a simple rotating cube problem >but trying to keep the cube on the screen was a problem when i used the >3-d to 2-d function (can't remember the exact name). If you mean the persp_project() routine, you should use set_projection_viewport() to specify which part of the 2d screen should be used for projecting the 3d world coordinates. -- Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/ "Pigs use it for a tambourine" - Frank Zappa