Questions tagged [opengl-compat]

This tag is for questions about the Compatibility profile of desktop OpenGL. Questions using fixed-function, immediate-mode rendering, texture environment fragment processing, and other features removed from core OpenGL in 3.2.

Related to drawing by glBegin/glEnd sequences, the fixed function matrix stack and Blinn-Phong per vertex (Gouraud) light model.

338 questions
-1
votes
1 answer

What would be the C code to draw a cylinder between 2 3D vectors in OpenGL? I want it to get proportionally bigger as it is closer to viewer

I'm trying to implement a quad function to draw lines. My goal is to be able to display a beam from one 3D spot to another. But I'm failing at it. Also I want to be able to specify a 3D thickness parameter in the function that draws the…
Grunwaldt
  • 41
  • 8
-1
votes
1 answer

OpenGL behaves differently in ubuntu and windows

I am using wxGLContext and wxGLCanvas for 3D visualization. I initialized opengl like this SetCurrent(*canvas); glEnable(GL_BLEND); glEnable(GL_CULL_FACE); glEnable(GL_DEPTH_TEST); glEnable(GL_LIGHTING); glEnable(GL_COLOR_MATERIAL); and draw the…
-1
votes
1 answer

text rendering issue in opengl Flight Simulator application

I am working on a flight simulator in opengl in which i have made and altitude scale with an arrow pointed towards the expected altitude values controlling the plane with joystick i want that when changing the altitude of plane with joystick…
-1
votes
2 answers

How to enable different GL_POSITION of two objects

I want to create two objects with different light position. But the light position of second object (Gold sphere) is always the same as the first object (Silver sphere) even I have set different position parameter. I have enable both light one…
Pirun Seng
  • 443
  • 1
  • 4
  • 20
-1
votes
1 answer

OpenGL, unusual artifacts on rendered texture, render co-ordinates?

I am trying to render a simple quad to perfectly cover the screen (one to one replication). The texture I am using to render was captured from a previous render using a framebuffer and glGetTexImage. This part I'm fine with. However when I load and…
ceorron
  • 1,230
  • 1
  • 17
  • 28
-1
votes
1 answer

Why is glOrtho not changing anything?

This function does not change anything even though I already called glOrtho(). What's wrong with the code? Did I miss something? void glKeyCallback(unsigned char key, int x, int y){ if (key == 'z'){ width -= 10; height -= 10; cout << "Z"…
-2
votes
3 answers

Vertex Shader error while Passing mesh face index using glvertex4i

Initializing GL_List for processing. glBegin(GL_POINTS); for (i = 0; i < faceNum; i++) { mesh->GetFaceNodes(i + 1, ver[0], ver[1], ver[2], ver[3]); **glVertex4i(ver[0] - 1, ver[1] - 1, ver[2] - 1, i+1);** } glEnd(); glEndList(); Vertex…
Zachy
  • 1
  • 1
-2
votes
1 answer

How to display a loaded texture on the screen using openGL

I am using the function : GLuint LoadTexture(const char* filename) { GLuint texture; int width, height; unsigned char* data; FILE* file; file = fopen(filename, "rb"); if (file == NULL) return 0; width = 1024; …
1 2 3
22
23