Questions tagged [opengl]
Open Graphics Library - API for 2D and 3D computer graphics
60 questions
-5
votes
1
answer
255
views
What is the ideal data structure for 2D and 3D graphics in WebGL or Metal? [closed]
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 ...
8
votes
1
answer
705
views
How can I optimize a program's performance when no profiling tools are available?
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 ...
6
votes
2
answers
2k
views
Abstraction of VAOs, VBOs and Models
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 ...
-3
votes
1
answer
1k
views
What would be a good way to abstract OpenGL-Concepts in a game engine? [closed]
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 ...
7
votes
0
answers
222
views
Incorporating existing 2D OpenCL/OpenGL application in 3D scene
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 ...
6
votes
1
answer
522
views
OpenGL: Why are things bound instead of being passed directly as parameters?
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, &...
6
votes
2
answers
8k
views
What is GLFW in relation to OpenGL
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 "...
-1
votes
1
answer
1k
views
2D Animating in OpenGL [closed]
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 ...
3
votes
4
answers
3k
views
What are the advantages of matrix multiplication over individual variables (graphics)?
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: ...
1
vote
1
answer
1k
views
How to better isolate JOGL or LWJGL3 dependency from game clients?
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 ...
2
votes
1
answer
98
views
Is there a way to make the default way a class is accessed a field within the class?
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, ...
3
votes
2
answers
16k
views
OpenGL vs OpenCV for beginner [closed]
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 ...
2
votes
1
answer
1k
views
OpenGL's relationship to OpenGL ES (3.0)
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.....
0
votes
1
answer
471
views
2D Game Data Structure in OpenGL ES 2.0
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 ...
4
votes
1
answer
893
views
Using a “spherical frustum” for 3D projection
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 ...
97
votes
2
answers
20k
views
Why have hardware-accelerated vector graphics not taken off?
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 ...
3
votes
1
answer
2k
views
Simulating a projector in openGL
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 ...
0
votes
1
answer
1k
views
How to move a car around an environment with hills in C++? [closed]
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 ...
2
votes
1
answer
2k
views
Use Android NDK for portability with iOS?
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 ...
2
votes
1
answer
7k
views
3d point cloud render from x,y,z 2d array with texture
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 ...
19
votes
4
answers
17k
views
What is the relationship between OpenGL, GLX, DRI, and Mesa3D?
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 ...
5
votes
2
answers
2k
views
Linux OpenGL programming, should I use GLX or any other?
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 ...
4
votes
2
answers
1k
views
What are the advantages of GLSL's compilation model?
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 ...
18
votes
3
answers
4k
views
How would you unit-test or perform the most effective automated testing on graphics code for OpenGL?
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 ...
4
votes
1
answer
3k
views
(How can I / Am I allowed to) Use Google Maps as a Texture on an OpenGL object?
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 ...