Why my texture is not showing PyOpenGL
问题 I tried everything but still I don't get my error. I am trying to put a texture on my sphere object. """ Minimal texture on sphere demo This is demo for showing how to put image on sphere as texture in PyOpenGL. """ from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import * from PIL import Image import numpy def run_scene(): glutInit() glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB | GLUT_DEPTH) glutCreateWindow("Minimal sphere OpenGL") lightning() glutDisplayFunc(draw_sphere)