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 ...
1
vote
1answer
65 views
Problems with 3D Array for Voxel Data
I'm trying to implement a voxel engine in C++ using OpenGL, and I've been working on the rendering of the world. In order to render, I have a 3D array of uint16's that hold that id of the block at the ...
0
votes
0answers
30 views
2D Game Development dynamics in c++ [on hold]
I am new to developing computer graphic applications in c++ using OpenGl. I want to develop games but I really am facing problems when it comes to understanding concepts like trajectory, collisions, ...
2
votes
3answers
148 views
How many times fragment shader is executed?
I have an OpenGL code, with 3 different shader programs.
I have a simple question, I know fragment shaders are executed for every every fragment in the scene.
But is there a way using which we can ...
-1
votes
0answers
42 views
LWJGL - Eclipse error [on hold]
When I try to run my lwjgl project, an error pops . Here is the log file:
A fatal error has been detected by the Java Runtime Environment:
EXCEPTION_ACCESS_VIOLATION (0xc0000005) at ...
5
votes
1answer
107 views
Efficiently rendering to 3D texture
I have an existing depth texture and some other color textures, and want to process the information in them by rendering to a 3D texture (based on the depth contained in the depth texture, i.e. a ...
1
vote
0answers
36 views
OpenGL ES 2/3 vs OpenGL 3 (and 4) [on hold]
I have migrated my code from OpenGL ES 2/3 to OpenGL 3 (I added bunch of defines and abstract classes to encapsulate both versions, so I have both in one project and compile only one or another). All ...
0
votes
0answers
21 views
Can anyone point me to some open source directX rendering engines or frameworks? [on hold]
I'm completely new to graphics API programmming, but not at all new to the theory and principle operation of game engines and rendering engines. That being said, I want to do some experiments of ...
3
votes
2answers
78 views
Are buffers in OpenGL associated with GLSL programs?
I have two different shader programs in my OpenGL code.
1- renders simple font using freetype
2- simple shader which draw primitive shapes.
I sent both of them some data using buffers, I understood ...
1
vote
1answer
54 views
Sprite rotation
I'm using OpenGL and people suggest using glRotate for sprite rotation, but I find that strange. My problem with it is that it rotates the whole matrix, which sort of screws up all my collision ...
2
votes
3answers
245 views
Visitor-pattern vs inheritance for rendering
I have a game engine that currently uses inheritance to provide a generic interface to do rendering:
class renderable
{
public:
void render();
};
Each class calls the gl_* functions itself, ...
-2
votes
1answer
131 views
Detailed Modern Opengl Tutorial? [duplicate]
I am asking for a specific modern opengl tutorial.
I need a tutorial that does not skip to explain any lines of code. It should also include different independent objects moving/rotating (most ...
1
vote
2answers
132 views
Drawing multiple objects from one Vertex Buffer Object in OpenGL/OpenTK
I am trying to experimenting drawing method using VBO in OpenGL. Many people normally use 1 vbo to store one object data array. I was trying to do something quite opposite which is storing multiple ...
0
votes
1answer
85 views
GLSL billboard move center of rotation
I have successfully set up a billboard shader that works, it can take in a quad and rotate it so it always points toward the screen. I am using this vertex-shader:
void main(){
vec4 tmpPos = (MVP * ...
13
votes
1answer
335 views
Normals vs Normal maps
I am using Assimp asset importer (http://assimp.sourceforge.net/lib_html/index.html) to parse 3d models.
So far, I've simply pulled out the normal vectors which are defined for each vertex in my ...
-1
votes
0answers
44 views
Having trouble's understanding NIF model file format?
I'm attempting to develop a 3rd party application to make it easy to import 3d model parts into my mod for Skyrim. The plan was to have a file viewer and preview window of the .nif model but since I ...