1. Go to jsyeh.org/3dcg10 to
a) Download windows.zip and data.zip
b) Put data into windows
c) Open LightMaterial.exe
*** Default settings:
2. Adjust the settings
*** Adjusted settings:
3. Start writing some code
a) Download freeglut.zip from Moodle and change to libglut32.a
b) Create a new GLUT project
c) Steal this piece of code
d) The result looks like this
- It looks a bit dark as the light position is at the back of the object.
e) Change the light position to the front and give the object the yellow (1,1,0) color
f) Change the default size and position of the window
.png)
.png)
.png)
.png)
.png)
.png)
沒有留言:
張貼留言