yzu1002cs314s981537.blogspot.com
Eva: 四月 2012
http://yzu1002cs314s981537.blogspot.com/2012_04_01_archive.html
65288;1)主題介紹 - 會旋轉的元智一館. 研究一下要怎麼用OpeGL畫立體物件,還可供使用者旋轉物件,在這個部份,. 主要會用到的function有 glTranslatef 和 glRoatef. Step2:利用callback function的部分,讓使用者能夠隨心所欲去轉動object的部分。 利用滑鼠與鍵盤,達到旋轉、放大、縮小的效果。 一開始還是會先看一下基本的概念,只能說3D和2D做起來就是不太一樣,2D就是找點、畫圖而已;但3D物件就要想像每一個東西的位置,以及旋轉的一些概念與技巧。 這次的作業裡,在窗戶的部分,有些採用比較偷懶的方式,直接畫在上面,沒有考慮內嵌在房子裡面的效果。這個地方比較討厭的是不能直接畫在同一個平面上,因為會有閃爍的問題產生;這個部份就跟HW1不一樣,HW1基本上就是覆蓋再覆蓋的想法而已。 基本上,這次的作業,還是努力的去一步一步的畫,但少了光的部分,看起來沒有很真實。希望下一次加入光、材質的部分能夠看起來更好。 訂閱: 文章 (Atom). 輕柔雅緻主題. 技術提供: Blogger.
yzu1002cs314s981537.blogspot.com
Eva: 作業三 元智導覽
http://yzu1002cs314s981537.blogspot.com/2012/05/3.html
65288;1)主題介紹 - 遊覽元智. Step1:此作業是假想自己走在元智,因此,程式碼需要設定一個人,然後根據此人的座標等資訊,並配合. GluLookAt(.),以達到遊覽元智的效果。 Step2:利用callback function的部分。這是主要是利用鍵盤的上下左右鍵,與使用者產生互動。 Step3:加入了今天剛學到Lighting的程式碼,不過只運用了一個燈源而已。 不知到哪個環節出問題了,錄製時會有雜音,因此如要觀看,請記得改成"靜音"模式. 這次作業原本想要學習一下建模以及貼圖的技巧再來寫作業,但是因為飢餓30以及等等時間因素,有試著改過看過簡單的code,但要實作在作業上,還是有一段距離,所以最後只好作罷。 因此,最後決定還是利用基本的繪圖技巧就好,畢竟這次的作業最重要的觀念就是用不同的位置與角度視野遊走觀看元智,所以最後決定還是先把觀念弄懂就好了。當然,這次作業也利用了上一次作業畫的一館,直接放在這次的作業中囉. 訂閱: 張貼留言 (Atom). 輕柔雅緻主題. 技術提供: Blogger.
cs314s951442.blogspot.com
Projects for CG Class: Read and display PLY model
http://cs314s951442.blogspot.com/2010/10/read-and-display-ply-model.html
Projects for CG Class. Sunday, October 31, 2010. Read and display PLY model. 1) Read PLY model data. 2) Display wire model / with key: W. 3) Display solid model / with key: S. 4) Rotate the model by using keyboard / with key: a,d,w,s,j,l,i,k. 5) Rotate the model by using mouse. 6) Lighting the model. Display wire model lighting. glBegin(GL LINE LOOP);. Display solid model lighting. glBegin(GL POLYGON). Rotate model by using mouse and keyboard. Http:/ www.gamelife.idv.tw/viewtopic.php?
cs314s951442.blogspot.com
Projects for CG Class: September 2010
http://cs314s951442.blogspot.com/2010_09_01_archive.html
Projects for CG Class. Sunday, September 12, 2010. Posted by Grace Chien. Subscribe to: Posts (Atom). Introduction of Computer Graphics. Travel template. Powered by Blogger.
cs314s951442.blogspot.com
Projects for CG Class: November 2010
http://cs314s951442.blogspot.com/2010_11_01_archive.html
Projects for CG Class. Sunday, November 28, 2010. Program Assignment # 3: 3D Solar System. Key "x": move left. Key "X": move right. Key "y": move down. Key "Y": move up. Key "z": zoom out. Key "Z": zoom in. GlDisable(GL LIGHTING) before drawing. GlEnable(GL LIGHTING) after drawing. Make sure to disable lighting before binding texture). GlEnable(GL TEXTURE 2D);. GlBindTexture(GL TEXTURE 2D, texture id[0]); / - assign texture. GLUquadricObj* q = gluNewQuadric();. GluQuadricDrawStyle(q, GLU FILL);.
cs314s951442.blogspot.com
Projects for CG Class: Program#1:The Moon Festival Picture
http://cs314s951442.blogspot.com/2010/10/program1the-moon-festival-picture.html
Projects for CG Class. Monday, October 11, 2010. Program#1:The Moon Festival Picture. 撰寫一個OpenGL程式,利用GL基本繪圖元件(GL POINTS, GL LINES, GL POLYGON等)或GLUT 3D規則物件函式(glutSolidSphere(), glutWireCube()等),在視窗畫面中繪出一張主題The Moon Festival的圖像。 Dev-C 有些設定上的問題,連範例都無法順利執行,於是我就嘗試使用季恩推薦的CodeBlock。只要記得在Compiler Setting中,將#define設定的地方,加上. GLUT DISABLE ATEXIT HACK. Posted by Grace Chien. Subscribe to: Post Comments (Atom). Read and display PLY model. Program#1:The Moon Festival Picture. Introduction of Computer Graphics.
cs314s951442.blogspot.com
Projects for CG Class: 3D Classroom
http://cs314s951442.blogspot.com/2011/01/3d-classroom.html
Projects for CG Class. Monday, January 3, 2011. 利用w,s,a,d鑑控制參數CameraPos[0], CameraPos[1], CameraPos[2]. Model是用3D MAX 自己畫的,畫完之後再輸出為.obj檔,. 所以在3D MAX輸出時, Faces需要選"triangles". 此外,照原本的設定值輸出還有另一個問題是,沒有.mtl檔. 之後發現需要勾選"Create mat-library" 才會一併產生.mtl檔! 好不容易產生.obj和.mtl檔後, 還是缺了一個.tga的圖檔. " 目前還沒找到好方法。 我只能用一般.bmp檔轉成.tga檔,當作是給obj用的.tga檔. 然後用notepad 打開.mtl檔,加上map Kd xxxx.tga. 目前只有這樣 " 很難耶.拜託 饒了我吧. Posted by Grace Chien. Subscribe to: Post Comments (Atom). Introduction of Computer Graphics.
cs314s951442.blogspot.com
Projects for CG Class: December 2010
http://cs314s951442.blogspot.com/2010_12_01_archive.html
Projects for CG Class. Thursday, December 23, 2010. 先使用3Ds MAX 建置電腦螢幕、椅子、桌子等物件,再匯出每個物件的.obj檔,. 教室空間建置及走動 http:/ nehe.gamedev.net/data/lessons/lesson.asp? Load OBJ: loadobj.cpp. Posted by Grace Chien. Subscribe to: Posts (Atom). Introduction of Computer Graphics. Travel template. Powered by Blogger.
yzu1002cs314s981537.blogspot.com
Eva: 五月 2012
http://yzu1002cs314s981537.blogspot.com/2012_05_01_archive.html
65288;1)主題介紹 - 遊覽元智. Step1:此作業是假想自己走在元智,因此,程式碼需要設定一個人,然後根據此人的座標等資訊,並配合. GluLookAt(.),以達到遊覽元智的效果。 Step2:利用callback function的部分。這是主要是利用鍵盤的上下左右鍵,與使用者產生互動。 Step3:加入了今天剛學到Lighting的程式碼,不過只運用了一個燈源而已。 不知到哪個環節出問題了,錄製時會有雜音,因此如要觀看,請記得改成"靜音"模式. 這次作業原本想要學習一下建模以及貼圖的技巧再來寫作業,但是因為飢餓30以及等等時間因素,有試著改過看過簡單的code,但要實作在作業上,還是有一段距離,所以最後只好作罷。 因此,最後決定還是利用基本的繪圖技巧就好,畢竟這次的作業最重要的觀念就是用不同的位置與角度視野遊走觀看元智,所以最後決定還是先把觀念弄懂就好了。當然,這次作業也利用了上一次作業畫的一館,直接放在這次的作業中囉. 訂閱: 文章 (Atom). 輕柔雅緻主題. 技術提供: Blogger.