Skip to main content

Questions tagged [opengl]

Open Graphics Library - API for 2D and 3D computer graphics

Filter by
Sorted by
Tagged with
-5 votes
1 answer
255 views

I have been thinking about this here and there for several years but haven't gotten around to having the time to actually implement it. I am getting closer to being able to implement a graphics ...
Lance Pollard's user avatar
8 votes
1 answer
705 views

I am currently working on an OpenGl program whose performance I would like to improve. The performance is okay but not ideal on powerful dedicated GPUs, but is abysmal on integrated graphics (< 10 ...
john01dav's user avatar
  • 889
6 votes
2 answers
2k views

I have gone down the rabbit hole that is abstracting away a working game engine in OpenGL and C++. Before reaching the other side I'd like to ask about my current design, which is - the more I look at ...
Felix's user avatar
  • 387
-3 votes
1 answer
1k views

I have posted the same question to StackOverflow and Stackexchange and both got downvoted to oblivion as "too broad". So maybe this will be a better place for it. I am working on a rendering engine ...
j8a2b0e7's user avatar
7 votes
0 answers
222 views

There is an existing real-time, scientific visualization application that uses OpenCL and OpenGL to render complex 2D graphs. My goal is to incorporate this application into a 3D rendered scene. At ...
Liam Kelly's user avatar
6 votes
1 answer
522 views

In OpenGL you have to bind an object to the context to be used in subsequent calls, instead of just using it as an argument in those calls. For example, in OpenGL you write this glGenBuffers( 1, &...
Hedede's user avatar
  • 177
6 votes
2 answers
8k views

Now this question might sound (/ is) stupid, but I'm just getting into OpenGL. So I installed GLFW source and I'm looking at some easy examples. What I'm noticing is, that the code still contains "...
hgiesel's user avatar
  • 831
-1 votes
1 answer
1k views

I am trying to animate a texture in OpenGL. I feel like it should be easy, as I know how to animate in SDL and other libraries but I am having trouble. I have a x,y,w,h that holds the texture ...
Mithreindeir's user avatar
3 votes
4 answers
3k views

I am learning OpenGL and the tutorials (1, 2) I'm reading teach me that to scale/rotate/translate an object you have to know matrix multiplication. Why? Instead of 3x3 matrix you can use 6 floats: ...
user avatar
1 vote
1 answer
1k views

I'm currently working on a project to develop a relatively small framework with the goal of supporting game development efforts for students in a course. The scope of this project is an OpenGL-based ...
code_dredd's user avatar
2 votes
1 answer
98 views

I'm trying to write a wrapper for the following bit of scala code: val vertBuffer: FloatBuffer = createFloatBuffer(vertex_positions.length) vertBuffer.put(vertex_positions) vertBuffer.flip() However, ...
Jeff's user avatar
  • 21
3 votes
2 answers
16k views

I am a freshman college student currently learning C++ programming. I am good at math and physics, so I am looking to specialize in 2D/3D graphics with OpenGL. My question is about the differences ...
Jacob Perkins's user avatar
2 votes
1 answer
1k views

I'm beginning my journey into graphics programming and want to learn OpenGL. Because I'm green to graphics programming but not to C and C++, a familiar question came up when I looked at OpenGL and ES.....
user27152's user avatar
0 votes
1 answer
471 views

I'm trying to come up with some data structures for rendering my map on OpenGL. It is going to be ~ 100x100 blocks(squares) total, with each block being around 100 pixels. However, the screen will ...
Mariano Sorgente's user avatar
4 votes
1 answer
893 views

I am currently writing a transformation from model space to clip space for use in OpenGL. From what i have seen, programmers typically use a traditional rectangular frustum to define the clipping ...
creXALBO's user avatar
97 votes
2 answers
20k views

I'm working on an app that involves real-time manipulation of vector paths at 60fps, and I'm very surprised by how little information there is on the subject. At first, I tried to implement my idea ...
Archagon's user avatar
  • 1,187
3 votes
1 answer
2k views

I wish to simulate a projector screen in OpenGL, where an image is truly being projected onto the wall in real time. By this I mean if an object were to get in between the projector and the wall, that ...
robert.ecot's user avatar
0 votes
1 answer
1k views

I don't have any code for this since I don't know how I am meant to do this. I have a car and I am able to move it around on a flat plane and I have that working correctly. However, I want it to also ...
user1324894's user avatar
2 votes
1 answer
2k views

I am currently planning to implement a little painting app using OpenGL ES 1.1. I believe this question applies to any OpenGL ES project. I am starting development on Android and I would like to ...
J-F L-R's user avatar
  • 31
2 votes
1 answer
7k views

Need some direction on 3d point cloud display using OpenGL in c++ (vs2008). I am brand new to OpenGL and trying to do a 3d point cloud display with a texture. I have 3 2D arrays (each same size ...
user1733628's user avatar
19 votes
4 answers
17k views

I am starting out doing some low-level 3D programming in Linux. I have a lot of experience using the higher level graphics API OpenInventor. I know it is not strictly necessary to be aware of how ...
ttb's user avatar
  • 299
5 votes
2 answers
2k views

I'm new to OpenGL and found that there are a lot of libraries to do that in C, and I also found that glx is most friendly with Linux X Server, I just want to do basic stuff, and I cannot find any ...
pahnin's user avatar
  • 159
4 votes
2 answers
1k views

GLSL is fundamentally different from other shader solutions because the server (GPU driver) is responsible for shader compilation. Cg and HLSL are (afaik) generally compiled a priori and sent to the ...
Kos's user avatar
  • 1,454
18 votes
3 answers
4k views

I'm writing a game and the accompanying graphics engine on top of OpenGL in C++. Im also a fan of good coding processes and automated testing. Graphics code + testing seems pretty immiscible, since ...
Max's user avatar
  • 2,039
4 votes
1 answer
3k views

Note: I asked a very similar question on StackOverflow but did not get much attention, so was directed to http://programmers.stackexchange.com as licensing issues seem to have more interest here... I ...
John Doisneau's user avatar