NeHe OpenGL Lesson09 - Moving Bitmaps in 3D Space

本文探讨了数学的美妙与编程的创造力,通过一个简单的样例展现了纹理映射、混合、平移、旋转及三角函数等技术。作者认为,真正的超级技巧不仅仅是复杂的类图或汇编代码,而是创造者的心智和解决问题的能力。该样例使用OpenGL API,并在Ubuntu 10.4上用CMake和GCC编译。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

screen_shot7-300x241 So Cool!
Well, I would like to say that this sample shows us the beautiful and the magic of mathematic. The programming knowledge or OpenGL API involved in here are not too much or just a very little.
Of course the author should be at least a very creative guy. This sample make me think what is the super technique. Is it the complicated classes diagram that involved too many relationships, or some lines of assembly code that will solve some very trick problem, just some binary machine code example as 11010101000, or big software package with  a lots of features or even more. I have not answer yet. But I think the most important thing that we can not ignore is the mind, the ability that our brain use some  other tools or stuff  to create something very magic, beautiful, or even imaged by others. The creativity or solve problem creatively should be all programmers’ final destination. Of course, the author should not be a pure programmer, otherwise he could not easily build so many connections from the current points.

 

The techniques that involved here is the texture mapping, blending, set the translation, rotation and a bit triangles math functions.

 

This sample coded for the Ubuntu 10.4. You need to install gcc, cmake and opengl libraries to compile and run it.

 

The full source code could be found here.

转载于:https://www.cnblogs.com/open-coder/archive/2012/08/23/2653393.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值