57,642 questions
0
votes
0
answers
45
views
Pygame won't display volume control
I'm making a game in Pygame running in Python 3.10 and the lastest version of pygame, and I can't get to display a volume control for the background music . The music is played correctly, but there is ...
1
vote
1
answer
90
views
How can I make liquid in my vr bartending game
I'm working on a realistic VR bartending game for Quest, and I need some help with making bottles pour liquid into cups. I'm aiming for a system where:
When a bottle is tilted, liquid pours out ...
0
votes
0
answers
38
views
LibGDX NullPointerException from a scene 2D Actor calling Pools.obtain()
fire (Event event) method throws the NullPointerException. Trace:
...
0
votes
0
answers
17
views
Bug Canvas image being stuttered when move follow player?
I tried to code an image to follow the character using canvas but it jerks when moving. Is this a bug? Do you have any solution to fix it?
https://youtu.be/OnT9Pabgi2g
...
0
votes
0
answers
76
views
What is the best way to draw chunks?
I'm developing a voxel engine with OpenGL and C++ and searching how Minecraft-like games set up VAO, VBO, and EBO. I'm also dealing with transparency geometry and depth testing issue.
There are 3 ...
0
votes
0
answers
50
views
How to avoid noise with Volumetric Fog?
I had followed the youtube video by Technically harry to create a volumetric fog effect in Unity.
But when I get close to a object, the noise is very noticeable which I would like to avoid.
I tried ...
1
vote
0
answers
84
views
How to conserve momentum in Unity?
I tend to use a lot of 2D physics based (rigid-body based) character movement in Unity, and despite lots of tweaking, I can never seem to use conservation of momentum.
I’d have to manually program in ...
1
vote
1
answer
78
views
Two Point Alignment Transformations
I'm trying to determine the transformation steps (position, scale, rotation) needed to be applied to an object so that two points, locally positioned in that object, line up with two world space ...
1
vote
1
answer
95
views
How do you create a "View Volume" for beginner 3D graphics?
Observer peers through window into 3D world (in this case three-dimensional Euclidean space). Using analogy of window for simplicity, observer perceives a 2D image from their PoV. A static, 2D ...
0
votes
0
answers
20
views
Share custom lighting data struct with GLSL vertex & fragment shaders
I've reached normal maps as I was learning OpenGL, and I decided to calculate the tangents on the CPU.
The issue is that my lighting uses custom structs and it ...
0
votes
1
answer
51
views
Screen/viewport cursor position to world-space pos
I'm trying to understand how to convert mouse coordinates to world space. There is built in UE blueprint function ConvertMouseToWorldSpace but I think it returns ...
0
votes
1
answer
69
views
What is the preferred memory to store game object into, Stack memory or Heap memory
In the context of game dev, what is the preferred memory to use to store structs like Entities or MapData which are large in size and have lifetimes lasting the entire game run-time.
For example here ...
0
votes
0
answers
60
views
Could anyone review my introductory understanding of 3D computer graphics? [duplicate]
Observer peers through window into 3D world (in this case three-dimensional Euclidean space). Using analogy of window for simplicity, observer perceives a 2D image from their PoV. A static, 2D ...
0
votes
0
answers
41
views
Utility AI Action Atomicity [duplicate]
I have a question about action atomicity in terms of Utility AI.
Let's say my unit has a melee attack and a default movement ability.
When I evaluate different actions that my AI agent can perform, ...
0
votes
0
answers
34
views
Help utilising obj indices [duplicate]
I'm working on an obj parser its mostly complete but ive run into a problem.
I can access all the indices that are in the file but i cant figure out how to use all of them.
i can use the vertex ...