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. OpenGL is used for applications ...
11
votes
1answer
236 views
OpenGL Instanced Rendering
I have a very basic OpenGL instanced rendering setup, which is compiling and running, however it is super slow, and even though I spent days of asking and reading how to fix it, I still have no clue, ...
9
votes
2answers
885 views
Quadtree design
I have an application which is used for displaying and modifying huge volumes of point cloud data from lidar files (up to few gigabytes each, sometimes loaded in simultaneously). In the app the user ...
8
votes
1answer
185 views
Sprite drawing class
I have written a very XNA spritebatch like interface for drawing sprites in OpenGL. When begin is called the vertex data buffer is mapped to a float*. The index buffer and vertex buffer are bound in ...
5
votes
2answers
82 views
Optimizing garbage collection for local objects
I am trying to make a 3D application with OpenGL/LWJGL at the moment, but I am now already hitting some limits on the JVM, most likely due to a configuration that needs to be done.
I have the ...
5
votes
1answer
267 views
Making a voxel engine
I've decided a while ago to make my own voxel engine. To start, I coded my own basic 3D engine in Java using minimal OpenGL bindings for things such as SRGB ect. I set up my own VBA and VBOS and had ...
5
votes
1answer
70 views
Type safe program uniform manipulation in OpenGL
I've made an attempt at writing class wrappers around basic OpenGL objects to make managing them easier and more intuitive. Writing a generic one for program uniforms proved to require a little bit ...
4
votes
1answer
220 views
OpenGL first person jumping code
I'm making a game in Java with LWJGL and I just implemented jumping. I don't really think the code is particularly well written or very efficient. Here is the code of my ...
4
votes
1answer
170 views
Shader class implementation
I'm trying to design a Shader class. For now, I'm just trying to get basic outline for handling uniforms. Some design goals I aimed for is to avoid passing a ...
4
votes
1answer
308 views
Speedups for Conway's Game of Life
I wrote Conway's Game of Life in Python with Pyglet. It works pretty well but is very slow when the number of cells gets high. Any easier speedups I can attain with this code?
...
3
votes
2answers
173 views
WIP platformer game
Initial note: You do not need to have knowledge of LWJGL or OpenGL to review this code. The only parts of the code that require LWJGL knowledge are the Game class, ...
3
votes
1answer
308 views
Java reflection and static classes
I try to intercept some OpenGL calls for testing my rendering classes. Reflection is used for replacing the OpenGL backend.
I feel this class is badly written and I need advices for refactoring it.
...
3
votes
1answer
415 views
Is this OK Cocoa OpenGL design? What could I be doing better?
I'm working on a Cocoa project that uses OpenGL. I'm trying to keep things easily cross-platformable for later (which is the primary reason for my GL singleton; I hope to implement Linux versions of ...
3
votes
1answer
288 views
Is this an acceptable implementation of a OpenGL VertexArrayObject class?
It seems to play up sometimes, I'm not sure if this is due to the class itself or the way I'm using it. Can someone confirm that this is a 'good' implementation of a VertexArrayObject class?
...
3
votes
0answers
40 views
my arcBall rotation code
I am trying to visualize a pointcloud centered around the origin. I also want to have a user controlled rotation for which I found the arcball.
Below is my implementation. ...
3
votes
0answers
117 views
OpenGL object wrapped in a Qt widget
I have this object 'wrapper' class, which I will use to implement my Qt OpenGL scene. It is working, but I am looking for a way to:
improve the API
remove extra OpenGL calls
optimize it.
I know ...
2
votes
1answer
721 views
Seperate Rendering Thread XLib(GLX) and OpenGL
I am writing a prototype for something at work. Not very many people here know much about Linux/Unix or Xlib so I can't really ask here at work (most developers are expert Windows programmers). With ...
2
votes
0answers
41 views
Accelerate OpenGL 2d on python3
I used OpenGL to draw about 20 circles. Each circle has 2 lines, ~10 segments, and all of them have different colors and lenght. FPS ~=4. How can I do this faster?
I am using Python 3 on Ubuntu
Sorry ...
2
votes
0answers
129 views
Improving performance of page curl [closed]
I'm using a class written by someone which uses a dynamic page curl without OpenGL, I think. It seems to be working well but it's a little bit laggy. Any help to speed it up would be great because I ...
1
vote
1answer
82 views
I know I set up my Vbo/vba and indices wrong (currently runs, but slowly)
Hoping someone could look through this code for my Chunk class, Mesh class and ChunkManager ...
1
vote
1answer
133 views
WebGL ( Three.js ) simple application ( only js without html/css )
I have done the source code for my lesson, which I shall publish later in web at my website, let's look at it:
...
1
vote
1answer
64 views
OpenGL abstraction layer
I've tried to create a small OpenGL abstraction layer.
I've tried to favor composition over inheritance but somehow it added extra complexity to my code. I probably overused it.
shader.h
...
1
vote
1answer
104 views
common lisp: nested loop beautification (checkboard texture generator)
I've written a small code snippet that generates checkboard texture using cl-opengl.
...
1
vote
1answer
338 views
Small particle engine
I wrote a small particle engine in Java for my Pong clone.
I read that changing a texture is very expensive in OpenGL, so I tried to change the texture as few times as possible. Therefore I change ...
0
votes
1answer
72 views
Issue regarding game velocity
So, this is a thing. I've got a simple little 2D game where a character can run left and right and jump. My problem here is that I've got two velocities, xVel and yVel, that I need to increment as the ...