As of May 31, 2023, we have updated our Code of Conduct.

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
3 votes
1 answer
436 views

What is the right process to get compatibility or at least a workaround for the ‘Threaded optimization’ feature of NVIDIA?

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

Post processing texture sizes

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
14 votes
4 answers
9k views

Getting a texture from a renderbuffer in OpenGL?

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,103
2 votes
1 answer
3k views

Draw multiple LINE_LOOPs in one glDrawElements call

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

Camera rotation (OpenGL)

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
976 views

OpenGL FBO Rendering

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,103
6 votes
7 answers
6k views

Can I develop Linux + Windows games using C#, .NET and OpenGL?

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 to tell if a glut window has focus from c#

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
1k views

GLSL shader without a vertex array

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

Atmospheric Scattering

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

Upgrade OpenGL version on Windows?

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

Frustum Culling with VBOs

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

Expected OpenGL performance

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
24k views

Getting Started with 2d Game Dev (C++): DirectX or OpenGL? [closed]

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

3D theory before graphics APIs? [closed]

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 way to blur objects in a 2d game with OpenGL without using shaders?

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?

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

Fastest way to create a simple particle effect

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,382
44 votes
10 answers
22k views

Is learning OpenGL 2.1 useless today?

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 ...
reefaktor's user avatar
  • 2,308
5 votes
5 answers
843 views

What are some low-level performance tweaks for iPhone games written in c?

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

How to get PS3/Xbox 360 experience without having access to Dev kits?

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
735 views

OpenGL: Precompute a texture rotation

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,544
88 votes
15 answers
53k views

What are some good learning resources for OpenGL? [closed]

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

OpenGL optimization tips [closed]

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

How can I get into opensource game development? [closed]

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
6k views

For 2D games, is there any reason NOT to use a 3D API like Direct3D or OpenGL?

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

OpenGL equivalent of .fx files in GLSL or Cg?

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

API agnostic bridges (ie. OpenGL/D3D/Whatever). Do you use them, how you make them. Pro's and Con's [closed]

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

Which c/c++ model animation library for OpenGL [closed]

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
36k views

What is the difference between OpenGL ES and OpenGL?

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

How many threads should an Android game use?

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
81 82 83 84
85