Graphics · Programming

OpenGL experiments

Recently I have been learning basic realtime 3D graphics using OpenGL ES 2.0GLSL and C++. This is my first time coding anything more serious in 3D and also OpenGL! In theory this could run on any platform that supports OpenGL ES 2.0; ranging from PCs to Smart Phones. All of the content was used purely for learning purposes.

Cross-Platform window management using PowerVR VRShell.
Initialization of projection and view matrices with the help of GLM (OpengGL Mathematics).
Rendering 3x colored cubes using a single Vertex Buffer Object. Simple interpolating-color fragment shader.

3x Textured CubeLoading of image data using FreeImage. Rendering of three rotating and textured cubes.

Used Libraries: OpenGL ES 2.0, GLM, FreeImage, OOIS, Boost

Advertisements

2 thoughts on “OpenGL experiments

  1. Well you may be able to get what you want with glShadeModel(GL_FLAT) . This will cause the calculated vertex color of the third vertex (in the case of tri strips) to be used for the entire triangle. Then you can just supply the face normals for each face in the last vertex for that face.

    1. “Get what you want”, what do you mean? Not exactly sure why I’d want the behaviour of GL_Flat. :)

      Also I am using OpenGL ES 2.0 with shaders in this experiement. As such glShadeModel might not be available to me. Thank you for your comment!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s