摘要:
Key steps of Rendering objects:1 Create objects’ meshes, which we can use C++’s vector container to hold them. They just some points structures, and indices(represented by int). Knowing exact what they are can demystify them.2 Set up transformation matrixes: world matrix, view matrix, and projection 阅读全文
摘要:
Here is one question: how to tile texture?One thing worth to notice: The DirectX and OpenGL stipulate that a texture source(normally a picture)’s texture coordinate is fixed as [0,1], which mean that it’s smallest x and y coordinate is 0, and largest coordinate is 1.If that’s the situation, how can 阅读全文
摘要:
I am going to open a whole new English Blog here. Most blogs here would be computer technologies, including computer graphics, algorithms, data structures, C++, game technology and so on. I used to ... 阅读全文
摘要:
Ugly numbers are numbers whose only prime factors are 2, 3 or 5. The sequence1, 2, 3, 4, 5, 6, 8, 9, 10, 12, 15, …shows the first 11 ugly numbers. By convention, 1 is included.Write a program to find and print the 150′th ugly number.METHOD 1 (Simple)Thanks to Nedylko Draganov for suggesting this sol 阅读全文