Skip to main content

Questions tagged [opengl]

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.

Filter by
Sorted by
Tagged with
66 votes
9 answers
112k views

I am starting to learn OpenGL with FreeGLUT using the Superbible and the knowledge I have from my elementary graphics to brush up on my skills. To get more from this experience I want to integrate a ...
20 votes
6 answers
9k views

No, I'm not looking for glPolygonMode. I'm searching for a method, possibly a GLSL shader that would produce that retro-style wireframe look for objects. Any suggestions? Something like Vector Tanks ...
Kornel Kisielewicz's user avatar
3 votes
2 answers
1k views

Which 2d rendering algorithms are popular for mobile game engines (specifically Android) and why? Are the same ones for the desktop and/or console world as effective here?
TomHastjarjanto's user avatar
15 votes
1 answer
10k views

I want to programmatically determine at runtime how much video card memory is being used by my program. Specifically I'm wondering about how to do it on a Windows machine using OpenGL, but am ...
Hitesh's user avatar
  • 253
4 votes
2 answers
2k views

I'm trying to get lighting effects on a textured object; I'm using .obj and .mtl files to define them. No matter what I try my object is either invisible, unlit (plain texture), or completely white. ...
Tesserex's user avatar
  • 2,284
3 votes
2 answers
653 views

A quick search through the web suggests there's quite a few methods of potentially detecting back-culled faces on the CPU. The purpose of the check is to evaluate whether to performing other ...
Rushyo's user avatar
  • 1,113
9 votes
4 answers
5k views

I've noticed that many 3d programs normally do vector/matrix calculations as well as geometric transformations on the CPU. Has anyone found an advantage in moving these calculations into vertex ...
zmdat's user avatar
  • 615
3 votes
1 answer
464 views

It's peculiar this issue is not well understood on NVIDIA forums and project forums. For example, the well known ioquake3 project based on id tech 3 requires to force 'Threaded optimization' off on ...
j riv's user avatar
  • 1,013
2 votes
1 answer
1k views

I'm trying to write some code to do post processing in OpenGL ES2 on the iPhone. All is fine an dandy, except I am having trouble working out how to scale the texture rendered in the rendering step, ...
Scott's user avatar
  • 121
15 votes
4 answers
10k views

I've got a renderbuffer (DepthStencil) in an FBO and I need to get a texture from it. I can't have both a DepthComponent texture and a DepthStencil renderbuffer in the FBO, it seems, so I need some ...
Rushyo's user avatar
  • 1,113
2 votes
1 answer
4k views

The game I'm working on has OpenGL (2.1) vector graphics, and I need to draw up to 1000 enemies, each of which is composed of between 4 and 100 lines. Each enemy can be drawn as a single line loop, ...
Chris Johnson's user avatar
3 votes
2 answers
5k views

I am having trouble with a camera class I am trying to use in my program. When I change the camera_target of the gluLookAt call, my whole terrain is rotating instead of just the camera rotating like ...
paintstripper's user avatar
1 vote
1 answer
1k views

I'm getting some artifacts when I try to use a colour attachment on an FBO. I'm saving my first pass as a texture, then passing it as an input to an anti-aliasing shader. The result is, as below, some ...
Rushyo's user avatar
  • 1,113
6 votes
7 answers
6k views

I want to learn to develop 3D and 2D graphics with either OpenGL or DirectX. I chose OpenGL as it's being used in webGL and works cross-platform. I already know .NET well, and the C# language just ...
rFactor's user avatar
  • 671
2 votes
2 answers
2k views

How can I tell if a glut window has focus? Im using c#/tao, Ill use p/invokes if necessary. Basically I want to ignore input if it doesn't have focus.
Sam's user avatar
  • 139
6 votes
1 answer
2k views

Ok so I have a idea for a neat GPU driven curve renderer, and I realised that the vertex shader can be hardwired to generate points of the curve segment (to be rendered as a line strip) without ...
Justicle's user avatar
  • 712
6 votes
2 answers
1k views

I want to add some nice atmospheric scattering to my 3D game engine but I am very concerned with conserving resources. I am not very familiar with how its done but can someone please give me some ...
Krankzinnig's user avatar
18 votes
3 answers
8k views

How do I update the version of OpenGL on Windows so that I can use anything newer than the Version 1.1 header file that is included in the Platform SDK? Even version 7.0A of the SDK for Windows 7 ...
Steven Behnke's user avatar
8 votes
2 answers
3k views

I have terrain being rendered in my project using VBOs in OpenGL. I would like to apply some Frustum Culling but have no idea how to access each polygon as its drawn to check if it is in view. I think ...
Krankzinnig's user avatar
3 votes
2 answers
1k views

I'm benchmarking some simple code for drawing using OpenGL. In the following code, the number of indices being drawn is 4,644 (or 1,548 triangles per frame = @60fps 92,880 Triangles per second). <...
Olly's user avatar
  • 228
12 votes
8 answers
25k views

So, i'm a student looking to get my foot in the door of game development and im looking to do something 2D, maybe a tetris/space invaders/something-with-a-little-mouse-interaction clone. I pointed ...
Dfowj's user avatar
  • 309
19 votes
12 answers
3k views

I'm a software engineer and I'm hoping to move my career towards game development. I'm reading a book right now on 2D using C++/DirectX. When I get into 3D I know I want to do it correctly. For ...
Phil's user avatar
  • 375
8 votes
5 answers
3k views

Is there a nice way in OpenGL to blur objects without using shaders? Currently, I'm accomplishing blur by rendering the object slightly up, down, left, right, and the four diagonals from its original ...
dcarrigg's user avatar
  • 1,037
23 votes
3 answers
2k views

Do I need to learn C++ to use Open GL?
lampShade's user avatar
  • 367
12 votes
7 answers
6k views

I am looking to the fastest way to create really simple particle effect that will be spammed like hell on the game... Basically, my game looks like a vectrex game, made mostly of lines... I want to ...
speeder's user avatar
  • 1,402
44 votes
10 answers
22k views

I'm new to 3D OpenGL/DirectX world and I found out that OpenGL 4.1 and GLSL specifications were just released today. A friend of mine gave me the Red Book for OGL v2.1 but, as far as I've read, 3.x ...
jorge_codes's user avatar
  • 2,308
5 votes
5 answers
901 views

I'm interested in some performance tweaks for a relatively simple OpenGL ES based 2D iPhone game. What performance tweaks have you found? The performance of the game is pretty good on most devices (...
MrDatabase's user avatar
  • 1,951
24 votes
7 answers
3k views

I am a budding game programmer trying to get into the industry programming for PS3, Xbox 360. The main problem I see is the need to demonstrate my skills to a potential employer, but without access ...
jcurrie33's user avatar
  • 777
3 votes
2 answers
828 views

I'm trying to speed up particles, and one way to do that is by precomputing the texture rotations. What I want to do is load the texture, rotate it and save it to a handle. How would I go about doing ...
knight666's user avatar
  • 5,596
88 votes
15 answers
54k views

I have been using the OpenGL ES on the iPhone for a while now and basically I feel pretty lost outside to the small set of commands I've seen in examples and adopted as my own. I would love to use ...
26 votes
9 answers
20k views

What tips or tricks do you have when it comes to making the OpenGL more efficient?
6 votes
3 answers
1k views

The short and sweet question I'm new to game programming in general, so how do I go about making GOOD QUALITY opensource games? What I have come across There are a multitude of games that I have ...
Immanu'el Smith's user avatar
20 votes
7 answers
7k views

I've been out of hobby Game Development for quite a while now. Back when I did it, most people used Direct Draw to create 2D games. By the time I stopped people were saying OpenGL or Direct3D with ...
Eric Palakovich Carr's user avatar
5 votes
2 answers
3k views

There's a lot of learning material in the DirectX world that uses .fx files to manage shaders, and .fx seems to be well integrated with 3D packages such as Maya and 3D Studio Max What do larger ...
Bob Hazard's user avatar
13 votes
5 answers
2k views

You are making a 3d engine. You want best of multiplatform worlds. Suddenly you realize that if you want to use Direct3D on Windows machines and OpenGL on OSX/Linux, you'll have to sacrifice supported ...
Keyframe's user avatar
  • 2,331
10 votes
1 answer
5k views

I'm fairly new to game development, played around with xna before and just learning OpenGL & c now and I'm interested to know which c/c++ based model animation libraries are out there and which ...
CodeAndCats's user avatar
32 votes
3 answers
37k views

Android uses OpenGL ES, what is the difference between it and OpenGL?
Dr. Snoopy's user avatar
  • 5,115
28 votes
2 answers
12k views

At minimum, an OpenGL Android game has a UI thread and a Renderer thread created by GLSurfaceView. Renderer.onDrawFrame() ...
kvance's user avatar
  • 383

1
85 86
87
88 89
115