Newest Questions
57,729 questions
0
votes
0
answers
121
views
VFX Graph: Particle Strip Trails Stretching Due to Reused Indices – How to Set Unique Strip Index?
I have a system in Unity’s VFX Graph where:
A source particle collides → triggers a GPU Event
This event spawns a new particle which also triggers a strip trail
I am trying to get one trail per ...
1
vote
1
answer
162
views
Processing an image of land and water into a stylized map
First please excuse my English, it's not my first language!
I'm trying to process an existing image to create a game map, to be clear, this is not a procedurally-generated image. However, I would like ...
0
votes
0
answers
62
views
Same prefab appears very different inside another parent
I am on Unity 6.
I have 2 prefabs: the buildings shown in this picture.
Each of these prefabs includes another prefab, which is the "hexagonal tile".
It's the same "hexagonal tile"...
1
vote
0
answers
43
views
Inertia tensor (rigid bodies) in body space vs. world space
I'm currently trying to better understand the concept of the inertia tensor in the context of rigid bodies, and I was hoping someone could help clarify a few points for me.
From what I've gathered so ...
0
votes
0
answers
144
views
How do I add an outline to a Unity tilemap?
Is it possible to add a nice outline to a unity tilemap?
For example, if my tilemap looks something like the image on the left, I want to make it render like the image on the right:
I found this ...
0
votes
0
answers
61
views
Is there a way to prevent probuilderize deleting faces?
I have used Probuilder to "probuilderize" the interior of a building however when I do this faces get deleted all over the model. I know it is definitely Probuilder causing this as when I ...
1
vote
0
answers
41
views
How to apply a noise texture to an image or sprite in Phaser as a postFX?
I'm trying to figure out if it's possible to blend a (noise)texture with an image by creating a shader, and then apply the shader as a postFX to an image (or sprite). (see attached image)
...
11
votes
1
answer
4k
views
How to protect video game demonstration equipment
A couple months back, I released a new video game on the web. After getting several good reviews from my friends, I decided that I should demonstrate it at some event. After a bit of negotiating, I ...
1
vote
1
answer
581
views
Given two points (A and B), how can I obtain a point a set distance along the line between them?
Let's say I have position A, that is (0,0) and Position B that is (10,5).
Now let's say I know that position C is 5 units' distance from position A in direction to Position B.
Provided that the ...
1
vote
1
answer
221
views
How to delete prefab variants?
I am having trouble deleting a prefab variant from the project panel. I have removed the single instance of it I had in a scene, but when I try to delete it from the project panel it deletes and then ...
0
votes
2
answers
320
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-...
1
vote
0
answers
122
views
Creating a large number of GameObjects asynchronously
I am creating a 2D procedural terrain using many Tile GameObjects. To make this infinite (and more performant), I dynamically load and unload chunks based on the players position and a variable ...
1
vote
1
answer
99
views
Pygame display.Info() / fullscreen not working under Linux
I am experiencing some issues with pygame.display.Info() and the FULLSCREEN property on Linux. The game is displaying at roughly ...
0
votes
0
answers
74
views
Iterative Rotation, Translation, and Scale Around Pivot
I'm coding a VR application that allows the user to point the controller at an object (there's a "laser" the extends from the front of the controller and is used in hit testing) and adjust ...
1
vote
2
answers
225
views
How do you avoid duplicating code when implementing a multiplayer game using client authoritative server architecture?
I am building a real time a multiplayer web game using client authoritative server architecture, phaser, node, aws, etc.
For an example, if I have a player that walks right and picks up food, I need ...
0
votes
1
answer
72
views
How to create array of Depthstencil2D from texture2Darray
I have already done someting like this for texturecube but here I don't understand what I'm doing wrong. I have the first chance exception error message.
Below how I proceed:
create a texture for ...
0
votes
0
answers
47
views
Is there a fix for "maximized window" bug for unity game engine versions before 2023?
So the "maximized window" bug was fixed in one of the 2023 versions of Unity. Previous versions have this setting bugged so setting a project to use "maximized window" results in ...
1
vote
0
answers
66
views
How to add dirt/ground variance to the bottom of my mountain/platform in Unity?
I have a cliff in my game. Currently it sits on flat grass, but I want to add more depth to the visuals. I've added ambient occlusion to the pipeline and it has helped a lot. However, what I really ...
0
votes
1
answer
142
views
Can't make circles collide using Box2D
I'm completely new to Box2D. I'm implementing some tests with Raylib. I managed to implement the collision between static and dynamic rectangles and now I want to insert circles into the simulation, ...
0
votes
0
answers
29
views
Lost preview frames on ID3D10RenderTargetView in DirectX 10
Problem: This code should do a right-shifting trailing effect by accumulating previous frames on g_pSurfaceImg[0] but fails.
Incorrect result: the image that should ...
2
votes
1
answer
201
views
How to adapt the Anya any-angle pathfinding algorithm to handle non-discrete start/target positions?
Recently, I have been investigating the Anya pathfinding algorithm.
Anya is an optimal any-angle pathfinding algorithm.
However, it works only with discrete points on the grid.
Here is an excerpt from ...
0
votes
1
answer
171
views
Godot 4 chip-8 emulator not displaying font correctly
I'm making an emulator for the chip-8 using the Godot 4.3 game engine, It's almost complete and you can play pong on it perfectly fine, But it can't display numbers from the built in font.
Each ...
1
vote
1
answer
96
views
Can we avoid PCF shadow blur in area where it is full shadow or no shadow
I cast shadows in either opened or closed environment for a directional light whose lookat position follows the player position. So the shadowmap is refreshed regularly so that I cannot store a fixed ...
1
vote
1
answer
165
views
How to implement engine sounds for racing games on weak systems without the use of tools like FMOD?
Asking this question because I want to implement performant sound handling on weaker systems. While focusing on such systems are a deadend since everyone has fast devices, I still want to do this as a ...
0
votes
0
answers
58
views
Is kernel bypass or userland implementation of UDP used in gamedev? Should it?
Is it used? I found out about libraries such as DPDK are used for userland implementation of protocols and bypassing the kernel. This (kernel bypassing) is done for really performance-sensitive ...
0
votes
0
answers
96
views
Why is raylib not drawing one corner?
I have simple raylib code here:
...
0
votes
2
answers
93
views
Get the path of a sprite without UnityEditor.AssetDatabase
How can I get complete path of a sprite? describes how to get a sprite path using UnityEditor.AssetDatabase which isn't available in builds. I need a way to get the ...
0
votes
1
answer
96
views
How to get from torque to angular acceleration?
Wikipedia says:
In two dimensions, angular acceleration is a number with plus or minus sign indicating orientation, but not pointing in a direction. The sign is conventionally taken to be positive if ...
2
votes
1
answer
322
views
What kind of delta time system is better?
I'm implementing a timestep system and my code currently looks like this (C#, but that's irrelevant to the question):
...
1
vote
1
answer
135
views
Is there a way to filter/search only the children of a selected gameobject in the hierarchy panel?
I'm not sure if there's a setting or wildcard I'm missing, but when I search in the hierarchy panel the results are presented in alphanumerical order with no reference to the hierarchy of the ...
0
votes
1
answer
233
views
Is it too restrictive to require players to authenticate after 5 levels?
I made a little browser based puzzle game and the most bothersome feedback I got is in regards with the authentication, why do I force people to create accounts to play more than 5 levels.
My response ...
0
votes
0
answers
137
views
My car keeps flipping over (or drifting uncontrollably)
I am experimenting with 3D car physics in Unity and want a good car for a racing game.
I've been trying to implement turning (and drifting) for this car. I want the car to automatically drift at high ...
0
votes
1
answer
102
views
Designing a skill rating system for a game based on reaction speed and accuracy
I am making an online version of Egyptian Rat Screw, which is a card game mainly involving reacting as fast as possible to specific scenarios. I want to have a way to grade a player's skill level ...
1
vote
1
answer
65
views
How to make tiling properties work with additional texture slots in a Unity Surface Shader?
I have created a custom shader based on Unity's standard surface shader,
but tiling and offset properties don't work at all.
Only the albedo texture slot's tiling works.
How do you make tiling work ...
0
votes
0
answers
185
views
How do modloaders get created?
This is a fairly general question but I was wondering how modders are able to create software that essentially make a game execute code that it shouldn't know anything about.
Some games are offering ...
0
votes
1
answer
123
views
Can LOD Groups be used for gameobjects that don't have a renderer component?
I am trying to work out how to use LOD Groups with interactive gameobjects. As a simple example lets say I have a prop which when the player is a certain distance away it plays a sound. The problem I ...
0
votes
0
answers
27
views
Defining camera settings to optimize the use of a shadowmap texture
In my engine I have the possibility to switch from isometric or first person camera, with a far/close camera point of view. In isometric mode the camera point of view can also be in either the -X or +...
0
votes
0
answers
62
views
Use alpha map instead of PNG
When I browsed the files in Insaniquarium, I found these images:
The first image "smallswim.gif" is sprite animation
The second image "smallswim_.gif" is (I think) alpha map
So ...
0
votes
0
answers
68
views
How to use sensors and ray casting for collision detection in Pygame (using a custom Mask/sensor class)?
I am making a Sonic game in Pygame and I have recently gotten my hands on a Python class that uses pygame.rect and pygame.mask in unison to create sensors that can be used to accurately detect the ...
0
votes
2
answers
115
views
Why does the skinning equation from a Collada file return a weird animation?
I'm trying to make an animation from a Collada file, but I'm not having any success in animating it correctly. I assume it's an error in the Quartenions class, either during creation from matrices or ...
1
vote
1
answer
217
views
Collision detection and physics in a 2d pixel platformer
I'm reworking physics in a 2d action platformer I'm developing (no engine, c++ / sdl). Here's the general movement logic for all characters:
I calculate the offset I need to apply to the character
I ...
0
votes
1
answer
51
views
Difficulties with matrices settings for cascaded shadows
I have added cascaded shadows to my pipeline. The whole process seems to works fine as shown in the picture. But I should obtain a progressive “zoom” from the first cascade (red) to the last (blue) ...
3
votes
1
answer
156
views
How to determine drivers placement in a race with shortcuts and offroading?
Thinking of doing a little Micro Machines clone in SFML/C++.
I know Micro Machines 'ai' was handled by having 2d array positions (or tiles) marked as being 'on-track' or 'off-track and directing the ...
3
votes
2
answers
266
views
Distribute my game in a sandboxed/jailed environment to assure users it’s safe
I’m looking for a way to distribute my game while providing users with some assurance that it is not malware. My game does not require access to the full filesystem, my game only needs to display ...
1
vote
0
answers
48
views
Horizontal Lines artifacts on Direct3D 9 Render
I'm encountering an issue in my Direct3D 9 application where horizontal lines appear at fixed 16-pixel intervals on a render target surface. Here's the setup:
Environment: Direct3D 9, Windows, ...
3
votes
0
answers
139
views
How to achieve a procedural/modular dirt path like those in The Last Campfire?
I’ve played The Last Campfire recently and got really inspired by it, so I’m trying to recreate some scenes from the game just to improve my 3D art skills.
But there’s one thing that I’m a bit lost.
...
2
votes
1
answer
147
views
How to plan the animation of a complex combat between two groups of units?
I'm working on a turn-based tactics game in Unity3D/C# in which players control Detachments composed of multiple Units. Each Detachment occupies one hex on a map, and may contain up to one each of ...
0
votes
1
answer
204
views
Is it possible to make a game with a fully simulated world, with dynamic characters and environment?
Context
I really enjoy playing Skyrim. I have installed mods that make the game feel more immersive, like weapons breaking, survival mechanics, no visual information, pitch dark dungeons, etc, etc...
...
2
votes
1
answer
431
views
Is await/free in gdscript a potential memory leak?
Consider a situation where a coroutine in node A awaits a signal from node B. If node B gets freed without sending the signal, obviously the coroutine in node A will never finish executing. Does it ...
0
votes
0
answers
125
views
What to do about server and client state desync when client prediction gets too far ahead?
Im implementing my own version of client prediction and server reconciliation for a custom pawn in unreal engine 5, since i couldnt use the default unreal character for my needs, as it forces you into ...