Currently browsing tag

sphere

31. OpenGL Sphere Creation

OpenGL Sphere Tutorial PreviewWhile GLUT provides a sphere for us to draw, that sphere does not contain texture coordinates. In this tutorial, I will show you how to create your own sphere, which has texture coordinates included. Now you can make that solar system demo you have always wanted!

29. OpenGL Bounding Sphere Collision

OpenGL Bounding Sphere Tutorial PreviewAt present, none of our OpenGL shapes can interact with each other, that is because OpenGL is purely graphics, it doesn't handle physics, so using the Euclidean distance algorithm, we can implement some basic bounding sphere collision ourselves.