PDA

View Full Version : Problems with OpenGL (Textures, Ligths, Windows)



avis_phoenix
12th September 2013, 16:36
I'm learning OpenGL with Qt, I was writing a program to test and understand the instructions and particularly want to test OpenGL shaders (not yet). I did a simple Obj and Mtl format reader to load objects on the screen.

I've been doing everything in linux and mac(sometimes), and has worked with the following bugs:


The lights start off (if modified, while exec, position or color of the light then turn on)
If load two objects with textures lose the render (seen only the background color)


But when I wanted to try this in windows it happens that I can't see anything, ie I can not see even a point (unless this point is the origin [pos (0,0,0)] ), but never see a polygon.

Can anyone help me find my mistake?

I use Qt 5.1 in Ubuntu 13.04, Qt 4.8.4 in Mac 10.6.8, Qt 5.1 (MSVC 2012)

Code: https://www.dropbox.com/s/8zbsxgn3zk5p77p/OpenGLTest.zip

In the code windowsgl is the QGLWidget