Tagged: opengl

ThreeJS Line Demo on QML Canvas3D

It is a simple porting of ThreeJS lines demo. ThreeJS is a Javascript library for manipulating WebGL inside web browsers. It takes a little effort converting web code to Qml Canvas3D. Open QtCreator, create new...

“Error: GL/gl.h: No such file or directory” compilando esempi Qt

“Error: GL/gl.h: No such file or directory” compilando esempi Qt

se non compila gli esempi OpenGL delle Qt prova ad installare: $ sudo apt-get install mesa-common-dev freeglut3 freeglut3-dev …. dovrebbero bastare altrimenti: $ sudo apt-get install glut3 glut3-dev libglut3 libglut3-dev piattaforma: Ubuntu 12.04 x64 ITA

Qt samples error: ‘gluPerspective’ was not declared in this scope

Qt samples error: ‘gluPerspective’ was not declared in this scope

error: ‘gluPerspective’ was not declared in this scope compilando l’esempio QT 4.8 la funzione è obsoleta nelle GLUT la si può rimpiazzare con: void gluPerspective(double fovy,double aspect, double zNear, double zFar) {  // Start in...