Tagged Questions
3
votes
1answer
98 views
GLSL default shaders
I've been arming my engine with error checking code. I'll try to describe this situation to my best abilities. Whenever i load a shader and there's an error (file doesn't exist, compilation error, ...
0
votes
2answers
95 views
GLSL shader compilation
When i'm compiling a shader does it have to be complete? Can i use glCompileShader on a shader without a main() function? The OpenGL reference documentation has a nice writeup on program linking ...
0
votes
1answer
61 views
handling buffers in OpenGL
I'm reading through the OpenGL docummentation for version 3.3 core. I'm having issues understanding proper buffer deletion.
ATM i have an object that loads itself into OpenGL memory in the ...
-3
votes
1answer
78 views
Getting the normals of a hemisphere?
I'm trying to calculate the normal for a hemisphere. I'm kinda new to opengl.
I draw the hemi-sphere by this code:
for(float phi = 0.0; phi < 1.567; phi += factor) {
...
5
votes
1answer
131 views
Difference between the terms Material & Effect
I'm making an effect system right now (I think, because it may be a material system... or both!). The effects system follows the common (e.g. COLLADA, DirectX) effect framework abstraction of Effects ...
3
votes
3answers
790 views
Should I use Game Engines to learn to make 3D games?
HI i am a software engineering student in his second-last year.
I am proficient with C,C++,C# and java programming languages, and being a student of engineering I have studied calculus, vectors etc ...
1
vote
1answer
379 views
How can I create an orthographic display that handles different screen dimensions?
I'm trying to create an iPad/iPhone game using GLES2.0 that contains a 3D scene with a heads-up-display/GUI overlaid on the top. However, this problem would also apply if I were to port my game to a ...
2
votes
3answers
539 views
Draw contour around object in Opengl
I need to draw contour around 2d objects in 3d space. I tried drawing lines around object(+points to fill the gap), but due to line width, some part of it(~50%) was covering object. I tried to use ...
-2
votes
3answers
231 views
Having a hard time finding a graphic engine programmer
I'm looking for a graphic engine programmer that knows both OpenGL and software rendering code to hire for a very short period (2 days). It's urgent and I'm willing to pay a very high amount of money. ...
5
votes
2answers
339 views
OpenGL 2 and back vs 3 and forward: What are the key differences for 2D graphics?
OpenGL contexts before and after OpenGL 3.0 are rather different. So far I've really only worked with buffers on either side anyway, I do know the most notable difference is lack of Immediate Mode.
...
1
vote
3answers
243 views
How to find the bottleneck of the graphical pipeline
I've been wondering about this issue for a while. How to find the bottleneck of the graphical pipeline. Recently I've been using a program to draw massive amount of polygons in a simple scene with ...
1
vote
1answer
1k views
OpenGL 3D Camera
And here I am again, looking for help with my OpenGL camera once again. This is starting to get embarrassing. Anyway, here's the deal: I think my OpenGL First Person free roaming camera is starting ...
12
votes
4answers
2k views
Real time shadow casting in a 2D isometric game
I'm writing a small 2d isometric engine in C++ and I'm trying to implement real time shadow casting. I followed a simple approach described on this page and here is the result (light is located at the ...
6
votes
1answer
662 views
Rendering 2D grass
My current project, using Java and OpenGL, has a fairly standard overhead tilemap in the style of the Zelda games.
I'd really like to add "real" grass to the grass tiles so that there are actually ...
2
votes
2answers
3k views
OpenGL ES 2.0: Vertex and Fragment Shader for 2D with Transparency
Could I knindly ask for correct examples of OpenGL ES 2.0 Vertex and Fragment shader for displaying 2D textured sprites with transparency?
I have fairly simple shaders that display textured polygon ...
2
votes
2answers
674 views
OpenGL ES 2.0: Picking Individual Polygon Sprites from within VBO
Say, I send 10 polygon pairs (one polygon pair == one 2d sprite == one rectangle == two triangles) into OpenGL ES 2.0 VBO. The 10 polygon pairs represent one animated 2D object consisting of 10 ...
5
votes
2answers
1k views
OpenGL ES 2.0: Using VBOs?
OpenGL VBOs (vertex buffer objects) have been developed to improve performance of OpenGL (OpenGL ES 2.0 in my case). The logic is that with the help of VBOs, the data does not need to be copied from ...
7
votes
4answers
3k views
Vertex Array Object (OpenGL)
I've just started out with OpenGL I still haven't really understood what Vertex Array Objects are and how they can be employed.
If Vertex Buffer Object are used to store vertex data (such as their ...
5
votes
2answers
450 views
OpenGL or OpenGL ES
What should I learn? OpenGL 4.1 or OpenGL ES 2.0?
I will be developing desktop applications using Qt but I may start developing mobile applications in a few months, too. I don't know anything about ...
3
votes
3answers
354 views
Can you sync screen update on vertical retrace with OpenGL?
In OpenGL, is there a way to ensure I get exactly, no more nor less, 60 (or whatever rate my monitor is set for) frames per second?
Of course given that the new frame can be calculated in less than ...
13
votes
1answer
434 views
Is there any performance benefit to sharing shaders between programs?
OpenGL allows you to share the same shader between multiple programs. Aside from saving small amounts of memory and a shader handle, are there any GPU-side performance benefits to doing this?
2
votes
1answer
254 views
ATI driver bug and rendering to a texture 2d array in OpenGL
I am trying to render to a texture2Darray in OpenGL, with a similar setup as descriped in this post. My question is, if anyone has gotten this to work on ATI hardware? Or is there still a bug in the ...
3
votes
4answers
1k views
What's wrong with this OpenGL model picking code?
I am making simple model viewer using OpenGL. When I want to pick an object OpenGL returns nothing or an object that is in another place.
This is my code:
GLuint buff[1024] = {0};
GLint ...
-5
votes
2answers
768 views
How to Make A Fast Graphics Engine? [closed]
Assuming I were to develop a graphics engine for a modern PC game that used only DirectX or OpenGL, which techniques could I use to make sure it ran quickly?
Edit:
I'm looking for any approaches ...
7
votes
7answers
1k 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 ...