Questions tagged [opengl-3]

OpenGL 3.0 is, after OpenGL 2.0, the second major release of OpenGL which, apart from some convenience updates, supports and requires a significantly advanced hardware generation (geometry shaders and instancing). Further, OpenGL 3.0 introduced a deprecation model which was meant to gradually eleminate the use of non-contemporary features that do not map well to current hardware, but without breaking existing application compatibility.

OpenGL 3.0 is, after OpenGL 2.0 (), the second major release of OpenGL () which, apart from some convenience updates, supports and requires a significantly advanced hardware generation (geometry shaders and instancing).

Further, OpenGL 3.0 introduced a deprecation model which was meant to gradually eleminate the use of non-contemporary features that do not map well to current hardware, but without breaking existing application compatibility.

Release Dates:

  • OpenGL 3.0: August 11, 2008
  • OpenGL 3.1: March 24, 2009
  • OpenGL 3.2: August 3, 2009
  • OpenGL 3.3: March 11, 2010
774 questions
80
votes
4 answers

OpenGL VAO best practices

Im facing an issue which I believe to be VAO-dependant, but Im not sure.. I am not sure about the correct usage of a VAO, what I used to do during GL initialization was a simple glGenVertexArrays(1,&vao) followed by a glBindVertexArray(vao) and…
user815129
  • 2,050
  • 1
  • 17
  • 29
40
votes
11 answers

OpenGL 4.x learning resources

I know there are some question about learning OpenGL. Here is what I know: math for 3D 3D theory Here is what I want to know: - OpenGL 4.0 Core profile (or latter) - Shader Language 400 (or latter) - every part of above (if it do not work…
przemo_li
  • 3,703
  • 3
  • 31
  • 52
35
votes
4 answers

How to do ray tracing in modern OpenGL?

So I'm at a point that I should begin lighting my flatly colored models. The test application is a test case for the implementation of only latest methods so I realized that ideally it should be implementing ray tracing (since theoretically, it…
j riv
  • 3,289
  • 6
  • 35
  • 53
33
votes
3 answers

Where can I find a good online OpenGL 3.0 tutorial that doesn't use any deprecated functionality?

I just purchased the fifth edition of the OpenGL SuperBible. I'm very pleased that they've avoided using deprecated functionality but their examples make use of GLTools. GLTools provides a slew of useful functions for rendering simple 3D objects and…
Jonba
  • 1,077
  • 2
  • 11
  • 12
32
votes
3 answers

Understanding Vertex Array Objects (glGenVertexArrays )

I am confused with the point in generating/creating a Vertex Array Object (VAO) with: glGenVertexArrays(GLsizei n, GLuint *arrays); and glBindVertexArray(GLuint); Because I can still create a buffer object, say for vertices, and describe that…
bluth
  • 481
  • 1
  • 5
  • 10
31
votes
5 answers

gluPerspective was removed in OpenGL 3.1, any replacements?

I'm trying to read some OpenGL tutorials on the net. the problem is that I found some old ones that use gluPerspective(). gluPerspective was deprecated in OpenGL 3.0 and removed in 3.1. What function can I use instead? I'm using C++ with latest…
ufk
  • 26,596
  • 55
  • 202
  • 346
31
votes
1 answer

glVertexAttribPointer raising GL_INVALID_OPERATION

I'm trying to put together a very basic OpenGL 3.2 (core profile) application. In the following code, which is supposed to create a VBO containing the vertex positions for a triangle, the call to glVertexAttribPointer fails and raises the OpenGL…
user269597
29
votes
5 answers

Which OpenGL functions are not GPU-accelerated?

I was shocked when I read this (from the OpenGL wiki): glTranslate, glRotate, glScale Are these hardware accelerated? No, there are no known GPUs that execute this. The driver computes the matrix on the CPU and uploads it to the GPU. All the…
Xavier Ho
  • 13,835
  • 9
  • 45
  • 52
26
votes
2 answers

What does GLEW do and why do I need it?

Okay, so I already know why I need GLEW, but only up to a point. If I am using modern OpenGL stuff, probably from version 3.0 onwards, and/or am using the Core Profile, then GLEW is required as without it compilation produced error such as…
FreelanceConsultant
  • 9,832
  • 22
  • 88
  • 173
23
votes
4 answers

VAO and element array buffer state

I was recently writing some OpenGL 3.3 code with Vertex Array Objects (VAO) and tested it later on Intel graphics adapter where I found, to my disappointment, that element array buffer binding is evidently not part of VAO state, as…
the swine
  • 9,873
  • 6
  • 50
  • 94
20
votes
4 answers

OpenGL Low-Level Performance Questions

This subject, as with any optimisation problem, gets hit on a lot, but I just couldn't find what I (think) I want. A lot of tutorials, and even SO questions have similar tips; generally covering: Use GL face culling (the OpenGL function, not the…
deceleratedcaviar
  • 4,619
  • 2
  • 36
  • 61
18
votes
3 answers

OpenGL & GLSL 3.3 on an HD Graphics 4000 under Ubuntu 12.04

I'm running that configuration : Ubuntu 12.04 Intel HD Graphics 4000 glxinfo give me that parameters: OpenGL renderer string: Mesa X11 OpenGL version string: 2.1 Mesa 8.0.4 OpenGL shading language version string: 1.20 OpenGL extensions: My goal…
T3e
  • 509
  • 1
  • 6
  • 17
15
votes
2 answers

OpenGL 4.1 and 3.1+, What are key differences?

I understand that OpenGL 4 and 3 are fairly similar, especially 3.1 and 4.1. With both being essentially released together, it can be difficult to understand the rationale for OpenGL 4.0/4.1. In previous releases of OpenGL, minor version increments…
Garet Claborn
  • 1,395
  • 2
  • 17
  • 42
15
votes
1 answer

OpenGL fbo blitting inconsistent between Intel and Nvidia

I am rendering a scene in OpenGL in a low resolution into a framebuffer. Then I intend to draw this version onto the whole screen (upscaled with GL_NEAREST). I do this using texture blitting (glBlitFramebuffer). On my Nvidia GPU this works, but when…
Jannis Froese
  • 1,167
  • 1
  • 8
  • 22
15
votes
2 answers

OpenGL Debug Context performance warning

I've managed to implement OpenGL Debug Contexts (awesome, finally!) and most things seem all good and well, but I'm seeing a performance warning that I'm unable to find good information on. [ 0.0330 - 388.6340] OpenGL Version: 4.2.0 Quadro…
AzP
  • 1,002
  • 1
  • 15
  • 25
1
2 3
51 52