CS4465-Friday Jan 30

Class Activity

 

Use the triangle program we wrote in class to create a screen like this.† Can you tell which triangle is the front one which one is the back?† How will you reverse the order of appearance, such that the one that is upfront is pushed to the back?

Try to generate different shapes as you wish using the primitive objects given below:

AN02F08

Try to generate different shapes as you wish using the primitive objects given below:

AN02F14

Try to generate different shapes as you wish using the primitive objects given below:

AN02F15

Now that you have learned to use different primitive objects, letís see if you can create the first two triangles that were shown at the beginning using GL_LINE_LOOP, GLQUADS, and GL_TRIANGLES.

How about some interesting object such as this one?