看板 C_and_CPP 關於我們 聯絡資訊
開發平台(Platform): (Ex: VC++, GCC, Linux, ...) Visual Studio 2010 額外使用到的函數庫(Library Used): (Ex: OpenGL, ...) OpenGL 問題(Question): 想在3D圖中畫出三軸(x,y,z) 但調整gluLookAt的相機中心 只要數字大於5,就無法顯示 gluLookAt(10,10,10,0,0,0,0,1,0); 預期的正確結果(Expected Output): 如果設定gluLookAt(5,5,5,0,0,0,0,1,0); 會成功顯示如圖 http://ppt.cc/bB8L 錯誤結果(Wrong Output): 但只要設定超過5 例如設定成10,10,10顯示 http://ppt.cc/Difd 程式碼(Code):(請善用置底文網頁, 記得排版) https://gist.github.com/anonymous/9303923 補充說明(Supplement): 麻煩各位前輩指導一下,謝謝! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.51.180
johnjohnlin:near far plane 沒設對吧 03/02 20:09