Skip to main content

Questions tagged [opengl]

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 applications like CAD software and computer games. It is also cross-platform. The OpenGL standard is controlled by the Khronos group, which also controls OpenGL ES.

0 votes
2 answers
190 views

How can I efficiently render lots of moving objects in a game?

I'm using OpenGL but this question should apply generally to rendering. I understand that for efficient rendering in games, you want to minimize communication between the CPU and GPU. This means pre-...
greenlagoon's user avatar
0 votes
1 answer
82 views

OpenGL doesn't render even though all Objects and Data seems to be correctly set up

No shape seems to show up on screen even though I have meticulously verified everything. The data set I use which is parsed by my code CORRECTLY(I checked that) to be loaded into a generic array ...
Syntax Error12's user avatar
1 vote
1 answer
126 views

How the intersection of BVH boxes can determine whether or not a triangle appears?

I'm programming a Ray Tracer using Rust and OpenGL, I've already made Ray Tracing work in the basics by converting the data to an SSBO and sending it to the Shader in a basic way... The problem is ...
Arthur Sally's user avatar
0 votes
1 answer
196 views

Cross product in any number of spatial dimensions?

I am fitting an ellipse to determine a Kepler orbit for 3 sequential input points along the orbit's path. Let's say that I'm using this for a space simulator. One important thing to note is that the ...
shawn_halayka's user avatar
0 votes
1 answer
82 views

Broken animation in OpenGL using ASSIMP

Working on a small project, currently trying to implement animation. Like most beginners I am simply following tutorials, this one being the LearnOpenGL Skeletal. All code for Bone/Animation/Animator ...
Robert Baillie's user avatar
1 vote
1 answer
117 views

When should binding and unbinding happen in opengl?

I am learning through opengl playlists of the cherno. In the tutorial, He unbound everything including the VAO, VBO, IBO, but he only rebound VAO and IBO. Should unbind buffers? In this post, the ...
Phước Thắng Đinh's user avatar
0 votes
1 answer
47 views

Having trouble setting opengl version to 3.3

I'm trying to understand how different versions of opengl work. I am developing a game aimed to support opengl3.3 here are the specifications of my system: OS: Manjaro linux Renderer: Mesa Intel(R) ...
cuppajoeman's user avatar
0 votes
0 answers
40 views

OpenTK (C# OpenGL) Coordinate mistake

I am trying to make a 2D renderer using OpenTK and I am having trouble with the coordinate system. I have followed an opengl sprite tutorial and the Size vector is ...
flowxrc's user avatar
0 votes
1 answer
81 views

Do I need vertex array object in this case?

In the case of having the vertex attributes (i.e. position, color, etc) hardcoded in the shaders, why do I need to explicitly create a vertex array object (VAO)? If I remove the VAO, nothing is drawn. ...
CroCo's user avatar
  • 255
1 vote
0 answers
56 views

Weird artifacts on heightmap

so i have this compute shader in glsl that creates a heightmap: ...
Barzoius Mecca's user avatar
0 votes
0 answers
127 views

Struggling with stuttering in my 2D C++/OpenGL game

I'm building a 2D game from scratch using C++ and OpenGL, but I've run into a frustrating issue: a simple sprite moving from left to right occasionally stutters. Tracking down the cause has been ...
Liddelfranks's user avatar
1 vote
0 answers
62 views

How to access methods of a character class from outside the application after compiling it into an EXE?

I’m working on a closed-source C++ application: an OpenGL-based simulation game with aircraft (friendly and enemy). I want to integrate autonomous behaviors such as Hierarchical Task Networks (HTN) to ...
Charlie's user avatar
  • 11
0 votes
0 answers
17 views

How to snap an object to a grid? [duplicate]

I am trying to emulate something like Factorio's train system and a core component involves placing rails. One of the game's mechanics has objects snapping to a grid. Another example would be Fortnite ...
user187415's user avatar
1 vote
1 answer
88 views

Icosahedron missing triangles

I'm trying to create an icosahedron (I've been trying to figure this out for about a week). Basically, I followed this article to create an Icosahedron mesh in code, and the positions of the vertices ...
Jax's user avatar
  • 454
0 votes
0 answers
58 views

OpenGL vertex normalization issue on MAC OS;

I am trying to learn OpenGL and this is my attempt to create a hello triangle program but no matter what the vertices are not normalized I when I have the set to 1,0,0 or something the vertex is not ...
Divyansh undley's user avatar

15 30 50 per page
1
2 3 4 5
290