Some OpenGL Projects
OpenGL rendering demo screenshot

Some OpenGL Projects

This post is also available at ranton.org/blog.

I have been working on some OpenGL projects lately. One is a setup tutorial for Macs for Xcode using glfw and glew. The setup is always a bit fiddly to me and has changed since the last time I went through it, so I created a separate GitHub repo for just the setup part and a small spinning triangle. It's available at https://github.com/ranton256/mac_opengl_setup_example

The second project is more interesting. I just wanted to get a relatively decent rendering setup going with some actual mesh models. I reused the SMF reading code from some grad school projects to load a few more interesting objects and coded in mesh generation for cubes, spheres, and pyramids. It uses Blinn-Phong shading and texture mapping. Several of the textures are generated procedurally using Perlin noise or a checkers pattern and several are loaded from PNG files. The libpng loading code is self-contained and probably useful to others.

When I have some time to return to this I would like to add shadows and environment mapping of some kind to make it more complete. You can check out the code and screenshot at https://github.com/ranton256/opengl_rendering_demo

Bernardo Margulis

Experienced creative—graphic design, creative direction, engineering digital products and creative leadership—focusing on fostering collaboration, helping teams work together, establishing processes and managing projects

2 年

These are great! I haven’t done any graphics stuff since that computer graphics class, but I plan to retake it once I’m a bit more settled at work (planning a project or two for the summer ??). We’ll have to compare notes.

要查看或添加评论,请登录

Richard Anton的更多文章

社区洞察

其他会员也浏览了