opengl

I’ve learned something really important today an OpenGL…

I’ve learned something really important today: an OpenGL context can be accessed by one and ONLY one thread! See Under what circumstances would glGenBuffers/glGenBuffersARB fail?. And this is the first time I feel annoyed by the singleton approach of Ogre3D. In my asset converter util, I use Ogre object, the MeshManager mainly, to convert xml

Cool day today the creation of the example…

Cool day today: the creation of the example.glitch was quite fun. The example demonstrate a bit more extensively the usage of the ogre’s compositor (see here) and the interaction with shaders. If you test the example, ckeck CustomApp::createCompositor: you’ll find comments about how to interact with the shader’suniform. The superb model in this scene is