All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Freecodecamp video Python platform, I followed everything but getting error of AttributeError:'Player' object has no attribute 'draw' any help why?

I followed the video to a Tee and I am stuck on part 27:29 timestamp to help you understand where I'm at, so far no problems otherwise.
0 votes
0 answers
6 views

Does anyone had experience ads integrations in the game?

I would be glad if someone can share experience of working with advertisers or agency/platform for in-game advertising. I'm searching a bit so I found a few companies that helping with it. But before ...
0 votes
0 answers
8 views

Gpu crashed or d3d device removed [closed]

Greetings fellow Stackoverflow community. Probably everyone who has worked with Unreal Engine 5 has had this error. In general, it is associated with incorrectly configured video card drivers. But as ...
0 votes
0 answers
8 views

Several objects from another level appearing in a level that they shouldn't?

I created a project in Unreal, Top Down Character. By default, the scene looks like this: I thought of creating a main menu to take the player to the other scenes of the project I intend to do. For ...
-2 votes
0 answers
38 views

Easy raycasting game [closed]

You know Wolfenstein 3D from 1992, yeah, I really like that style of games, where It's 3D, but It's really just 2D. I would like to create a game, similar to Wolfenstein 3D, with raycasting. But I do ...
0 votes
0 answers
31 views

Why does holding the jump button cause the player to go higher each time they hit the ground?

Why is it that when I hold the jump button, my player character keeps going higher and higher each time it hits the ground? Here is my code: ...
0 votes
0 answers
28 views

More performant 2D raytracing than Radiosity?

Currently if you want real-time 2D ray-traced scene lighting, you're limited to a few options: geometry based SDFs or Scene Based Radiosity. However 2D Radiosity is really the only choice if your game ...
0 votes
0 answers
36 views

How to find the distance to the middle of the road from the car's current position?

I have the car's current position Vector3 and an API that gets me the closest point on the middle of the road to any Vector3 ...
0 votes
0 answers
11 views

CryptographicException: Bad PKCS7 padding

I'm using Unity 2019.4.3f1. I noticed that sometimes the game doesn't launch properly, and figured out, there is an error message like this: ...
  • 1,133
0 votes
0 answers
25 views

How do I calculate the position and rotation where 3 given vectors would intersect 3 given points

I have 3 normalized directional vectors and 3 points. The 3 vectors are all attached to the same object, and I would like them to keep their angles relative to each other. I want to find a location ...
1 vote
0 answers
20 views

How to create basic spatial sound?

I am working on a very basic first person project. Given a sound source's X Y Z coordinates and the camera's X Y Z as well as the angle the camera is facing, I would like to know how these values can ...
  • 21
0 votes
0 answers
41 views

How can I make a reliable time-based object upating system?

So an object has a position, velocity, and is affected by gravity. ...
1 vote
1 answer
41 views

What's the purpose of this cross product and dot product in triangle clipping code?

I have this code that inserts a triangle into the drawing list. The PHD_VBUF structure stores one x,y,z vertex. If the vertex is behind the front plane, then ...
  • 31
1 vote
1 answer
10 views

Destroy and instantiate player prefab

I am new to game development. I am trying to change the player prefab every X seconds. For that, I am destroying the previously spawned prefab and instantiating a new prefab. But I don't know how to ...
0 votes
0 answers
14 views

Graphical issue when using a depth pre-pass

I have implemented the Z pre-pass technique into my engine, leading to a 2x performance improvement in a test scene. However, the technique darkens the objects (but not the skybox), introduces z-...
  • 5
3 votes
1 answer
34 views

Add opacity control to SoftLight blending shader

Just a heads up: I have very little experience with shader languages so please excuse if this is a trivial question. I got a SoftLight shader from this blog (Archived here). It blends the given sprite ...
  • 141
0 votes
0 answers
22 views

Best way to handle collisions between moving entities on tile map?

I am developing simple 2D game. I render tiled map and several moving entities, one of which is the character controlled by a player, and other ones are NPCs that are moved by simple AI strategy - ...
  • 137
0 votes
1 answer
27 views

glm::eulerAngles gives unexpected output for quaternion

I used the euler->mat4->quat to give the right result, but euler->quat gives the wrong result - is there something I did wrong? ...
-1 votes
0 answers
36 views

Problem with lane switching in endless runner game [closed]

I'm working on an endless runner game like subway surfers but can´t get the code for switching between lanes right. Can anyone help, please? Code so far: ...
  • 1
0 votes
0 answers
48 views

calculate projectile velocity from moving shooter

I have a task which i have a moving ship that can shoot in any direction i want. i have to shoot to standing or moving nearby objects. the problem is, I can't correctly calculate true shoot direction....
  • 113
0 votes
1 answer
33 views

How to execute early depth test

I have trouble applying early depth test in my engine, to prevent fragment shader to be (fully) executed for fragments that will be overwritten anyway, because other fragments, drawn later, will be in ...
  • 5
0 votes
0 answers
51 views

Are there OpenGL functions that are only available for specific platforms?

I want to load the OpenGL functions for my project myself. Are there any specific functions besides wglGetSwapIntervalEXT that require me to query the spec for its ...
0 votes
1 answer
64 views

Is there a clear distinction between Game Loop and Gameplay Loop?

I'm wondering if Game Loop and Gameplay Loop are equal tho I feel like Game Loop has a larger scope than Gameplay Loop, or Gameplay Loop is called Game Loop for short. Anyone knows the origin of the ...
-1 votes
0 answers
26 views

making a simple puzzle game using unreal engine [closed]

I want to make a simple 3d puzzle game. I don't know how to use blueprints and don't know C++. Just want to make a simple game in 2weeks using pre-made assets.
0 votes
0 answers
45 views

Why does my AI rotate on the y axis?

I have a simple sensing script to sense when my player is close to the enemy but when my player gets close to the enemy, it turns -90° on the y axis. Here is my script: ...
-1 votes
1 answer
57 views

Help with understanding Vector3 math

I was making a 3rd person player controller in Unity. Would Vector3 inputDirection = orientation.forward * verticalInput + orientation.right * horizontalInput; be ...
1 vote
0 answers
23 views

Relaitve Velocity Obstacles

I am reading Reciprocal Velocity Obstacles for Real-Time, Multi-Agent navigation and I have trouble to understand the main part of the paper: Let's take an example,...
  • 131
0 votes
0 answers
29 views

Collision Data stored in a grid - how to handle non-uniform cell sizes?

I have a collision system that works on a grid. Each cell contains a function that determines the height at a point within that cell. For example, a cell can have a ...
  • 667
0 votes
0 answers
34 views

Group voxels into object?

I'm working on Voxel editing software, and I need to have the ability to group voxels into objects. As for simple editing, I'm using the following data structure: Chunk - represents a fixed 3d grid ...
18 votes
2 answers
2k views

Development pattern for interactive in-game tutorials

Interactive in-game tutorials often interrupt game flow and override standard behavior in a way that can be difficult to implement cleanly. For example, imagine we have an action game and we want a ...
  • 4,210
0 votes
2 answers
97 views

How to procedurally compose shaders? [closed]

I read several times that shaders can be composed by the engine on the fly, depending on graphical settings. How is this generally done?
  • 5
1 vote
1 answer
57 views

cyclic dependency error in roblox survival game

Description In my game, I have have 3 module files: "PlayerList.lua", "PlayerData.lua" and "WorldData.lua". PlayerList.lua = a list of PlayerData classes (requires ...
  • 11
1 vote
0 answers
27 views

How to get the correct display mode refresh rate as a float in Java?

The following example prints 59 on my system, because the return type of getRefreshRate is int. ...
  • 111
0 votes
1 answer
73 views

Most efficient method to render hundreds of thousands to millions of stationary particles

I am making an app to visualize data, I am new to Unity but have an extensive background with Blender. I have written my script to read in data and plot those points. In this example its ~528k points. ...
  • 101
1 vote
0 answers
23 views

Getting leaves' stem to stick out of the branch with Unity's tree creator

I am using unity's tree creator to create... well you can guess. However the leaves' stem doesn't exactly stick out of the branch... I've tried to play with parameters like ...
1 vote
1 answer
22 views

glPatchParameteri(GL_PATCH_VERTICES, 4) causes access violation

I'm trying to create a tessellated terrain, for this purposes I'm following the LearnOpenGL tutorial: https://learnopengl.com/Guest-Articles/2021/Tessellation/Tessellation However, when I set the ...
0 votes
1 answer
34 views

Rendering 3D Scene Without PBR heedlessly

I am a beginner in computer graphics so I might have some terminological errors in my question. For an art project, I have a scene of modified planes with textures on them. The textures are taken from ...
  • 3
0 votes
0 answers
23 views

Sandbox mode for game asset plugins in rust game engine

I'm evaluating switching from C++ to rust for my hobby project, a game engine. The game would allow for users add their own scriptable content and game assets. This means I would need to provide an ...
  • 111
0 votes
0 answers
14 views

Making changes to tree prefab does not update the terrain trees

I am using this package as my terrain trees. I have added Oak_Tree as a prefab for tree on the terrain editor (On tree brush). When I make changes to Oak_tree prefab (by opening it from a .prefab file ...
  • 101
0 votes
1 answer
59 views

Google Play requires new apps to have API level 33 (starting on Aug, 21, 2023). Can these apps be installed and played on phones with lower API's?

Today (March 21, 2023), Google sends out an email to developers as follows: Starting August 31, 2023: New apps and app updates must target API level 33 to be submitted to Google Play (Wear OS must ...
1 vote
0 answers
24 views

How would you authenticate requests for player specific data in a server authoritative game?

I am creating a server authoritative game that uses a public game service API to manage player specific data in the game. The client will authenticate with the auth server, get a token, then use that ...
0 votes
2 answers
39 views

Unable to access an instanced health system

I am having an issue with a health system I am making for my game. I have been at it for 3 days now and have not made much progress. For reference, I am following this tutorial by code monkey: Code ...
0 votes
1 answer
48 views

A*Pathfinding generating wrong path

I'm building a maze game where there's an enemy ready to pursuit the player if the player gets in his range, I'm using A*Pathfinding algorithm to do so, and I build the maze in a procedural way, where ...
0 votes
1 answer
37 views

Score count-up speed based on music

I'm trying to implement a score count-up that is synced with the tempo of some short music jingle, but I'm failing on calculating the math for it. Let's say I have a total score of 2000 that I want to ...
1 vote
0 answers
28 views

Godot root motion is calculated incorrectly?

I'm trying to set up root motion in Godot but it's not giving the expected result. This is the original animation: After setting up the AnimationTree to use the root bone, the character correctly ...
  • 111
0 votes
1 answer
23 views

Unity's Animation Rigging Override on Rig with Optimize game objects enabled

I’m working on a top down third person shooter game and was trying to add recoil animations that we can easily tweak through code for all of the different guns available. I wanted to do this through ...
7 votes
1 answer
5k views

Enemy is losing 2 health instead of 1

I am trying to componentize all of my scripts and I would like the enemy to lose 1 health (enemy max health is 3) every time the player collides with the enemy. Right now the enemy is losing 2 health ...
0 votes
1 answer
15 views

See connected signals for instantiated Node while in Debug mode

I'm trying to debug an issue with my game, where the function that should be connected to a signal is not being called. I have a created minimal repro of the situation by: Create a fresh Godot 4 ...
  • 281
0 votes
1 answer
32 views

How to enable V-Sync in Java?

I have used the BufferStrategy, but my code runs still way too fast. xrandr reports that TearFree is "on" and the ...
  • 111
1 vote
2 answers
140 views

Define 2D polygon area and check if point is inside at runtime

I'm trying to write a GDScript (using Godot 4) function that creates a new component at a specific Vector2 position. This works quite well with the following code: <...
  • 281

15 30 50 per page
1
2 3 4 5
1103