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 ...

learn more… | top users | synonyms

2
votes
0answers
326 views

Displacement Mapping opengl-es [closed]

I need to do an application similar to this Morfo. And I posted a question here where the answer states the solution is "Displacement Mapping" . And I googled this to do it in opengles. I couldnt get ...
2
votes
0answers
384 views

glFramebufferTexture2D gives corruption with cube map textures

I am using glFramebufferTexture2D with cube map textures but it gives corruption in texture. draw_cube() function works perfectly when i draw that on default framebuffer. GLenum ...
2
votes
0answers
77 views

Everything turning black when pitching down [closed]

Just a quick questions about something that's occurring in my world. Every time I pitch my camera downward, everything starts turning black, and if I pitch upward, everything sort of intensifies. ...
2
votes
0answers
429 views

Per fragment lighting with OpenGL 4.x tessellated model

I'm experienced with OpenGL 3+. I'm dabbling with tessellation shaders and have now got to a point where I have a nicely tessellated teapot/plane demo (quick look here) As can be seen from the ...
2
votes
2answers
700 views

Is this a reliable method of parsing glGetShaderInfoLog()?

I want to get a list of errors and their line numbers so I can display the error information differently from how it's formatted in the error string and also to show the line in the output. It looks ...
2
votes
0answers
486 views

GLSL Bokeh using Quads and Textures [closed]

I'm trying to create a depth of field effect with bokeh sprites in GLSL. Specifically, what i would like to do is, for each pixel: See if the pixel is out of the focal range If it is, draw a quad ...
2
votes
1answer
1k views

Help with a Fast 2D Grid-Based world rendering technique

First I'm going to give you my current situation and explain what I'm attempting. I will then pose my question below. I will attempt to include a "TL;DR" for those of you who prefer things to be ...
2
votes
2answers
559 views

3D Translation using only distance and angles

So I'm starting to foray into 3D game programming, but I've hit something of a snag. I have an object I want to move around. It should always move either forward or backward relative to its local Z ...
2
votes
0answers
1k views

Can one use OpenGL ES from Google Go? [closed]

I've recently used Google's Go language and was impressed by its great support for parallelism. I'd like to try Go for a simple game -- just a test-case -- and I'm wondering if I can use OpenGL ES ...
2
votes
1answer
225 views

How to debug pyglet/opengl bus errors

I'm using pyglet for game development, and sometimes encounter "bus errors". They are not consistently repeatable, and whenever I try to do simple debugging (eg move/remove variables, etc), the errors ...
2
votes
1answer
843 views

Need some help implementing VBO's with Frustum Culling

i'm currently developing my first 3D game for a school project, the game world is completely inspired by minecraft (world completely made out of cubes). I'm currently seeking to improve the ...
2
votes
2answers
7k views

Getting error GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT

I am getting error code GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT when creating framebuffer on Mac (using glCheckFramebufferStatus). I am using same code for rendering on Mac and iOS both. Maybe problem ...
2
votes
1answer
534 views

Problem with arcball

I making graphics viewer, and I want to use "arcball" to manipulate object. I using OpenGL + CML ( for math ). My arcball don't want work, it is skewing not rotating :/ And I don't know why, I use ...
2
votes
1answer
513 views

Xbox Controller Not Connecting in Monogame Project

I have recently been playing around with the support of the wired XBox 360 controller in Windows development. I am developing in C# in Visual Studio 2012. I have created 2 projects. The first ...
2
votes
1answer
699 views

Problem with gluOrtho2D()

I was trying to understand the gluOrtho2D function. I have drawn 4 lines originating from the center reaching up to 4 corners of the screen. You can follow the below code. osize is a variable which ...
2
votes
1answer
419 views

Fog shader camera problem

I have some difficulties with my vertex-fragment fog shader in Unity. I have a good visual result but the problem is that the gradient is based on the camera's position, it moves as the camera moves. ...
2
votes
1answer
342 views

OpenGL Fast-Object Instancing Error

I have some code that loops through a set of objects and renders instances of those objects. The list of objects that needs to be rendered is stored as a std::map>, where an object of class ...
2
votes
1answer
2k views

Opengl-es picking object

I saw a lot of picking code opengl-es, but nothing worked. Can someone give me what am I missing? My code is (from tutorials/forums) Vec3 far = Camera.getPosition(); Vec3 near = ...
2
votes
2answers
387 views

How are red dot/reflex/holographic sights implemented?

In first-person-shooters like Call of Duty, the hologram only appears when it is behind the glass portion of the sight. In OpenGL, would it be implemented by rendering the glass to the stencil buffer ...
1
vote
5answers
1k views

OpenGL 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: ...
1
vote
4answers
2k views

searching for “university kind” free online course about OPENGL [closed]

I know there are a lot of free university courses, but I'm trying to find one about OpenGL. Do you know where can I find one, online?
1
vote
4answers
375 views

Are VBOs only for OpenGL 3.x?

Are VBOs only for OpenGL 3.x? I'm using immediate mode and I know it's bad, slow, and deprecated. But then I looked at display lists but they are deprecated too. I guess the VBO is the only one left ...
1
vote
3answers
135 views

How to handle wildly varying rendering hardware / getting baseline

I've recently started with mobile programming (cross-platform, also with desktop) and am encountering wildly differing hardware performance, in particular with OpenGL and the GPU. I know I'll ...
1
vote
3answers
2k views

Is a Single Texture Cube Map Possible?

I'm currently developing a test project to explore OpenGL 3 texturing abilities. I have a simple cube, made of 8 vertices and 36 indices. I want each of the cubes faces to have a different texture, so ...
1
vote
5answers
5k views

OpenGL Insanely Slow [closed]

I'm learning C++, and I'm writing my first OpenGL program. Unfortunately, it seems to be defaulting to Software Rendering (CPU uses bounces, GPU uses stays at 1%). I'm using SDL as the Windowing ...
1
vote
3answers
3k views

Will I have an easier time learning OpenGL in Pygame or Pyglet? (NeHe tutorials downloaded) [closed]

I'm looking between PyGame and Pyglet, Pyglet seems to be somewhat newer and more Pythony, but it's last release according to Wikipedia is January '10. PyGame seems to have more documentation, more ...
1
vote
3answers
201 views

Is it possible to gain performance by omitting vertex normals in the GPU pipe?

I am working on a rendering problem where I want to render as many raw triangles to the screen as I can with either OpenGL or DirectX with the absolute fastest performance possible. I wondered about ...
1
vote
1answer
1k views

Image loaded from TGA texture isn't displayed correctly

I have a TGA texture containing this image: The texture is 256x256. So I'm trying to load it and map it to a cube: #import <OpenGL/OpenGL.h> #import <GLUT/GLUT.h> #import ...
1
vote
3answers
609 views

OpenGL are strips/fans faster for rendering or just data bandwidth

When we send data for drawing we can mark it as TRIANGLE_STRIP or TRIANGLE_FAN to reduce the number of vertices we have to specify. Now, does this actually improve the rendering speed on the graphics ...
1
vote
2answers
752 views

Rendering (rasterization / ray tracing / others)

I'm completely new to this graphics and game development. I have read about Rendering (drawing a 3D graphic on a display 2D) and there are many ways of rendering, Rasterization, Ray tracing, ...
1
vote
2answers
2k views

OpenGL ES 2.0: Perspective Projection for 2D Games

Prespective Projection has features that could be very well used even in 2D games. At least two very beneficial characteristics that come to my mind are: Using Perspective Projection to substitute ...
1
vote
1answer
490 views

GL_INVALID_OPERATION in glEnd

I'm having problems drawing a simple sprite. When I draw: void CSprite2D::render() { CHECKGL(glLoadIdentity()); CHECKGL(glEnable(GL_TEXTURE_2D)); ...
1
vote
1answer
69 views

OpenGL Post Processing Introducing Artifacts on Certain Systems

Playing around with God-Rays in my framework, I was greeted with the following artifacts on my laptop: The artifacts themselves act almost like noise, flickering around the image rapidly. They also ...
1
vote
3answers
227 views

Rendering order

In this thread Rendering a model with transparent or translucent uv map applied doesn't work , I asked about what was wrong with my model that the transparency wasn't working. I've got an answer ...
1
vote
2answers
497 views

I enabled and setup glBlendFunc, but my texture has a white outline. What am I doing wrong?

You can see most of my source code in this question: Instead of the specified Texture, black circles on a green background are getting rendered. Why? Now I have the problem, that my texture has a ...
1
vote
1answer
946 views

rotating spheres

I want to continuously rotate 2 spheres, however the rotation does not seem to work. Here is my code: float angle = 0.0f; void light(){ glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); ...
1
vote
3answers
625 views

What should I use to handle input? [closed]

What should I use to handle input? I am wanting to use OpenGL so that my games are cross platform. DirectX provides input libraries, and OpenGL does not. Because my games need to be cross platform, I ...
1
vote
1answer
97 views

Why are my objects rotating with my camera?

I am working with this C# library that wraps OpenGL. I am trying to understand why my objects in the scene are rotating as I yaw my camera (view matrix). Here is an image where I have 4 separate ...
1
vote
2answers
928 views

glGenVertexArrays causes crash

My code keeps crashing at runtime, I have done some creative debugging and determined that it was the glGenVertexArrays that was causing the crash, I've looked around and come across some answers that ...
1
vote
1answer
166 views

Does opengl performs Visibilty algorithms based on z-index?

Does OpenGL performs Visibilty algorithms based on z-index? Or we have to write our own algorithms. Mainly I'm referring to z-buffer algorithm. Is it in-built?
1
vote
2answers
3k views

What is the best method to update shader uniforms?

What is the most accepted way for keeping a shader's matrices up to date, and why? For example, at the moment I have a Shader class that stores the handles to the GLSL shader program & uniforms. ...
1
vote
2answers
2k views

Calculate object coordinates from window coordinates using inverse projection matrix

What I am trying to to is placing 3D Objects (A Sphere) in the world when I click there. I am using a perspective projection so the first step after calculating the canonical clip coordinates from ...
1
vote
3answers
2k views

Set a variable inside a GLSL fragment shader that persists for the render

Is it possible to set a varying variable inside a fragment shader and have it persist? I'd like to use the depth component of the first fragment and use it on all the others, making the fragments all ...
1
vote
4answers
2k views

How to pass one float as four unsigned chars to shader by glVertexPointAttrib?

For each vertex I use two floats as position and four unsigned bytes as color. I want to store all of them in one table, so I tried casting those four unsigned bytes to one float, but I am unable to ...
1
vote
2answers
5k views

How to implement explosion in OpenGL with a particle effect?

I'm relatively new to OpenGL and I'm clueless how to implement explosion. So could anyone give me some ideas how to start? Suppose the explosion occurs at location $(x, y, z)$, then I'm thinking of ...
1
vote
3answers
883 views

Shaders not linking correctly

I'm writing a rather simple "ShaderManager" which aids me with loading shaders in Open GL, altough I am having a few issues: The shaders don't link correctly The the attributes don't bind Here's ...
1
vote
2answers
553 views

What is the better approach to redraw a static background scene for game?

Take for an example I have the background scene of a game which should remain static for an interval.Then for every time redrawing the scene,is it better for me to store the color buffer for every ...
1
vote
2answers
408 views

Should SIMD be used by people who are new to game development?

I have been learning game development, using C++ and OpenGL, for about 4-5 months. Before that I used to program in C# and the .NET platform(about a year). So, I consider myself new to game ...
1
vote
2answers
386 views

Does Blitz3D use its own 3D engine or does it wrap OpenGL?

How does Blitz3D work? I mean internally, does it use OpenGL with basic wrappers or it using some open source 3D engine that itself wraps OpenGL?
1
vote
2answers
580 views

OpenGL Camera causes spatial distortion

I'm trying to implement a 3D camera of the "Orbit around the origin" variety in a game engine I'm developing in order to learn about 3D graphics and game programming. I have a basic handle on the ...