Lesson 8 Blending

原创文章,转载请注明: 转载自慢慢的回味

本文链接地址: Lesson 8 Blending

There was a reason for the wait. A fellow programmer from the totally cool site Hypercosm, had asked if he could write a tutorial on blending. Lesson eight was going to be a blending tutorial anyways. So the timing was perfect! This tutorial expands on lesson seven. Blending is a very cool effect… I hope you all enjoy the tutorial. The author of this tutorial is Tom Stanis. He’s put alot of effort into the tutorial, so let him know what you think. Blending is not an easy topic to cover.本作品采用知识共享署名 4.0 国际许可协议进行许可。

Lesson 7 Texture Filters, Lighting & Keyboard Control

原创文章,转载请注明: 转载自慢慢的回味

本文链接地址: Lesson 7 Texture Filters, Lighting & Keyboard Control

Ok, I hope you’ve been understanding everything up till now, because this is a huge tutorial. I’m going to attempt to teach you 2 new ways to filter your textures, simple lighting, keyboard control, and probably more 🙂 If you don’t feel confident with what you’ve learned up to this lesson, go back and review. Play around with the code in the other lessons. Don’t rush. It’s better to take your time and learn each lesson well, than to jump in, and only know enough to get things done.本作品采用知识共享署名 4.0 国际许可协议进行许可。

Lesson 6 Texture Mapping

原创文章,转载请注明: 转载自慢慢的回味

本文链接地址: Lesson 6 Texture Mapping

You asked for it, so here it is… Texture Mapping!!! In this tutorial I will teach you how to map a bitmap image onto the six sides of a cube. We’ll use the GL code from lesson one to create this project. It’s easier to start with an empty GL window than to modify the last tutorial. You’ll find the code from lesson one is extremely valuable when it comes to developing a project quickly. The code in lesson one sets everything up for you, all you have to do is concentrate on programming the effect(s).本作品采用知识共享署名 4.0 国际许可协议进行许可。

Lesson 5 3D Shapes

原创文章,转载请注明: 转载自慢慢的回味

本文链接地址: Lesson 5 3D Shapes

Now that we have setup, polygons, quads, colors and rotation figured out, it’s time to build 3D objects. We’ll build the objects using polygons and quads. This time we’ll expand on the last tutorial, and turn the triangle into a colorful pyramid, and turn the square into a solid cube. The pyramid will use blended colors, the cube will have a different color for each face.  

Building an object in 3D can be very time consuming, but the results are usually worth it. Your imagination is the limit! 本作品采用知识共享署名 4.0 国际许可协议进行许可。

Lesson 4 Rotation

原创文章,转载请注明: 转载自慢慢的回味

本文链接地址: Lesson 4 Rotation

Moving right along. In this tutorial I’ll teach you how to rotate both the triangle and the quad. The triangle will rotate on the Y axis, and the quad will rotate on the X axis. This tutorial will introduce 2 variables. rtri is used to store the angle of the triangle, and rquad will store the angle of the quad.  

It’s easy to create a scene made up of polygons. Adding motion to those object makes the scene come alive. In later lessons I’ll teach you how to rotate an object around a point on the screen causing the object to move around the screen rather than spin on its axis. 本作品采用知识共享署名 4.0 国际许可协议进行许可。