閱讀436 返回首頁    go 汽車大全


Newell Teapot, Cup and Spoon

I learned Bezier curve and surface in 2001 when I studied the  paper in The University of Auckland. I drew a teapot lid. One year later, Richard wrote "The teapot is the classic icon of computer graphics. To find out more about its history, check out " in an assignment specification that was for the  paper. I was so interested in this that I checked the "A Brief History of The Teapot" web page by Steve Baker, and knew the teapot is from Martin Newell and his wife, and got the entire Newell teapot data set from the web page linker.

To render the cup and spoon, the data set needs to be changed in array format. In order to that, a c++ program was coded using iosteam, which reads the data from the original text files and writes the data to three text files in array format. Then the array data is copied to  header file.

I rendered the cup and spoon data and got very funny images. I assumed the data my programm retrieves from the arrays was not correct. After testing and checking the data many times, I found that the vertices' index stored in Newell's cup and spoon patches arrays start from 1, not from 0. Finally, I knew what Newell's tea cup and spoon look like.

Here is the screen shot of my template, you can download the  to play with it.

opengltemplate.jpg


Here are some images from Newell tea set rendering using my MFC+Open Bezier curve template

NewellCup.jpg
NewellSpoon.jpg

最後更新:2017-10-26 14:04:39

  上一篇:go  通過擴展改善ASP.NET MVC的驗證機製[使用篇]
  下一篇:go  為什麼System.Attribute的GetHashCode方法需要如此設計?