Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 32056

OpenGL is a graphics standard and API which targets the desktop and workstation markets. It is designed to be easy to accelerate with dedicated computer hardware, and hence most implementations give greatly improved performance over traditional software rendering. Currently, OpenGL is used for applications like CAD software and computer games. It is also cross-platform. The OpenGL standard is controlled by the Khronos group, which also controls OpenGL ES.

1 vote

Indexed Drawing in OpenGL not working

Firstly, in your call to glDrawElements you pass GL_FLOAT. This should be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT (depending on the type of faces). I imagine you would get an GL …
GuyRT's user avatar
  • 831
2 votes

GLSL Sphere from Vertex

Call glEnable(GL_VERTEX_PROGRAM_POINT_SIZE); You can then write to the built in variable gl_PointSize in your vertex shader. This affects the size of the quad that will be created for the point. If yo …
GuyRT's user avatar
  • 831
4 votes
Accepted

OpenGL 3.3: render to framebuffer w/o depth attachment

You need to attach something to GL_DEPTH_ATTACHMENT if you want to render with depth testing and writing, but it doesn't have to be a texture. If you don't need to read the contents of the depth buffe …
GuyRT's user avatar
  • 831
2 votes
Accepted

What are the possible techniques to optimize the lighting pass in a deferred shading renderer?

Some things you can try: Don't use a separate position buffer. Instead reconstruct position from the depth buffer (bound as a texture). Use GL_RGB10_A2 for your normal buffer. This is two-third the …
GuyRT's user avatar
  • 831
1 vote

Blending semi-transparent images while not stacking their alphas

Depending on the device(s) you are targeting, you may be able to use GL_MAX. It is defined in the gl2ext.h header file. You should check that the device supports the extension called GL_EXT_blend_minm …
GuyRT's user avatar
  • 831
1 vote
Accepted

Jagged text + additive blend in openGL

You are now using blending factors which assume pre-multiplied alpha (usually a good idea), but some of the textures don't have pre-multiplied alpha. You can either: Persuade your image editor to mu …
GuyRT's user avatar
  • 831