Newest Questions
57,729 questions
0
votes
2
answers
119
views
When should an object with a collider have a rigidbody?
I had some questions about Physics / Rigidbody in Unity.
I have a 2D sprite with a collider. The 2D sprite is simply a card that I place on a table with the mouse. I use the collider for raycasting (...
0
votes
1
answer
126
views
Weird artifacts after baking in Unity
I am trying to bake a scene with these settings:
and getting artifacts like squares and noise on walls:
I did try to solve it for quite a while, checked this whole documentation, tried higher number ...
1
vote
1
answer
59
views
D3D11 type conversion rules
My understanding is that, in general, we can supply data to the GPU in some format (in D3D, as defined by DXGI_FORMAT_xxx) and it will be implicitly converted to ...
0
votes
0
answers
49
views
How to detect which physics body of skeletal mesh has overlapped?
I have a skeletal mesh with a Physics Asset assigned to it as such:
This skeletal mesh is used within an ACharacter with collision settings as such:
And an actor which has the overlap event as such:
...
0
votes
1
answer
69
views
Rendering Sprite from tightly packed atlas onto RenderTexture
I'm currently working on a Unity BepInEx Plugin that should allow users to customize certain textures in the game. As part of this, I need to extract sprites from a sprite atlas into individual ...
0
votes
0
answers
69
views
Applying greyscale shading to objects in a Python 3D renderer
I need help with how to apply greyscale shading to objects in a 3D renderer I made in Python. The code is pasted below:
...
0
votes
2
answers
127
views
Why is my rigidbody not moving when I press the buttons? I can't see any reason it shouldn't
The "Car" in question is a plane. The question is pretty self explanatory.
Here's the Car in the Hierarchy:
Here's the car in the inspector:
And here's the PlayerMovement script:
...
0
votes
0
answers
46
views
Can a single large SSBO in vulkan store different types of structs?
I was using tinkering with vulkan and was wondering if a SSBO can store a mix of structs of different kind like shown in picture and pass offsets of the said structs to access them in shader.
0
votes
1
answer
75
views
Difficulties for GPU rendering of a cone using parametric equation
I'm trying to render a cone at the gpu for some effects. I'm using the parametric equation provided here. I ended up with the shader below intended to work with an unorderedaccessview target (DX11). I'...
1
vote
1
answer
90
views
Drawing textures to a RenderTexture + rotating in 90° intervals
For context: I am currently working on a BepInEx Plugin for the Unity-based game Hollow Knight: Silksong. The goal is to be able to replace the base game sprites with custom ones. The game uses Sprite ...
1
vote
1
answer
70
views
D3D11 batching with texture arrays
When employing texture arrays how does typically communicate the associated indices when rendering to batch as much work as possible per draw? The only approaches I can think of are:
Supply texture ...
0
votes
1
answer
76
views
How to make volumetric scanning effects
I have an effect where a character has a small tool that emit a sort of scanning effect to detect some property of an object. My FX is simple as it uses a pyramidal mesh whose top is positioned where ...
0
votes
0
answers
44
views
How to handle draw events without synchronization issues
So in my game I'm using a message queue for everything, very similar to an event manager or event queue pattern. I've seen that lots of people use them, and they decouple when the event fires and ...
0
votes
2
answers
87
views
How would I make a "slideshow" cutscene?
I'm making a 2D game using Unity and I want to implement cutscenes that change over at certain lines.
...
1
vote
1
answer
101
views
Is there a way in Unity to detect which gameobjects are making it take longer to enter/exit play mode?
I have a scene with quite a few gameobjects in it and for the first time since using Unity, when I enter/exit play mode (or even close and reopen the scene) it takes about a minute to complete this. ...
-1
votes
1
answer
135
views
How to promote an indie game on Android?
I have developed my first indie game (space survival genre) for Android phones, and I want to ask: which promotion channels are best to start with?
0
votes
0
answers
89
views
FPS improves when parents of skinned AI are disabled before play, but not when disabling them during play
I am playing a scene in Unity editor. If I play the whole scene, the FPS is 125.
Next, there are 2 test cases.
Case 1: If I disable some big game objects first, and then play the scene, the FPS is ...
0
votes
1
answer
146
views
Rotation and unique identification
My question relates to content rotation and data management of the emerging objects in a database.
I assume a networked game, with a server-client model. Unspecified objects in the game world are ...
0
votes
1
answer
122
views
Why does early z not work with fragment shaders using discard
I am currently trying to understand why using discard inside of a fragment shader disables early z.
I am using a simple cutout shader, which discards fully ...
1
vote
1
answer
111
views
Objects move with different speed on different devices
I was making a 2d top-down game, but when I tested it on two devices (Samsung M31 and Samsung S25) there was a problem with player speed - it was faster on S25 and slower on M31. I tried using some ...
2
votes
1
answer
89
views
How to switch to a testing branch for a DLC in the Steam client?
I created a password protected branch for my DLC in Steamworks under the DLC app page / Steamworks / Builds.
How can I switch to this branch from the Steam client?
Going to my game / Properties / ...
1
vote
1
answer
88
views
Phong shading: missing specular lighting, skipped face
I'm implementing my first rasterizer, and I've run into a 2 issues with Phong shading that I have no idea how to debug. First, specular lighting seems to be completely missing. Second, there is an ...
0
votes
0
answers
116
views
How is 2.5D achieved with 3D Objects in a 2D scene?
I would like to make a 2d top down scene with 3d Objects. I could make a 3D scene and just tilt the camera 45 degrees on X and that would give me basically the same thing(I think). But I started with ...
0
votes
1
answer
54
views
How to Render Moon Phases from a Texture2D in Unity Using a Script?
I have a Texture2D of the Moon, and I want to render different moon phases so that it visually matches the examples shown here Celestial Programming : Moon Phase Image Rendering, I've tried several ...
0
votes
0
answers
71
views
LootJS/Forge GLM injecting items fails due to mod-internal overwrite (Apocalypse Now/Lost Cities)
I am trying to have modded items in the chests of lost cites mod, and there is this problem I am facing, in which a mod called Apocalypse Now automatically injects its mod items into the chests ...
1
vote
1
answer
110
views
Why isn't my Rich Presence showing on Steam?
I followed all the steps in the docs:
Called the API:
SteamFriends()->SetRichPresence("steam_display", "#Status");
Uploaded richpresence ...
0
votes
0
answers
47
views
Static event not working on scene reload(SceneManager.LoadScene();)
(Maybe good to know, this game is part of a game dev course where we had to make a Vampire Survivors like game)
I thought SceneManager.LoadScene() reloaded EVERYTHING in a scene, like a clean state, ...
3
votes
1
answer
138
views
What is this rotation/translation tool thingy called?
I am currently working on filling out some tasks for a task board and I realized I have no idea what this thing is called. It's an axis thingy that you can grab to translate and rotate an object. I ...
0
votes
1
answer
174
views
Spawn enemy in empty space
I'm new to Godot and following a tutorial, which spawns enemies randomly. However, I'm trying to improve on this by checking that the enemies don't spawn on top of the player and cause an instant loss....
2
votes
1
answer
109
views
Can't Get Unity New Input System To Work
For context I am very much a beginner.
I have been trying to get the player to move using Unity's new Input System following this tutorial. It's only a year old and others in the comments seemed to ...
0
votes
1
answer
87
views
Unreal Engine fails to load WindowsPlatformFeatures module
After upgrading to Unreal Engine 5.6. I got this error when packaging the game:
...
2
votes
0
answers
106
views
How to fix LOD cracks with Marching Cubes?
I'm creating voxel planets using Marching Cubes (MC). To handle nearby (high-resolution) and distant (low-resolution) blocks, I use an Octree data structure.
NOTE: The implementation uses compute ...
1
vote
1
answer
158
views
What is the difference betwen emotions, experience, theme, and pleasure in the context of the Book of Lenses?
I am reading the third edition of The Art of Game Design: A Book of Lenses by Jesse Schell, and I encounter multiple concepts presented as different, but I do not see much difference. Currently, these ...
0
votes
0
answers
37
views
Meshes are not visible after adding them to an actor scene component
I wrote a Python script (for the editor) to attach a mesh to a scene component of an actor (vegetation_root_component).
In the logs everything looks fine, but no ...
1
vote
2
answers
168
views
How to make health bar or speech follow but not rotate with character container?
I have a top-down character object that is a Container of various parts.
This character can have elements that should move along with it (think a health bar, a speech bubble) that should NOT rotate ...
2
votes
0
answers
64
views
How can I disable the built-in gyro control in Cardboard VR?
When I create a project in Unity, enable Google Cardboard VR support, and build a project on Android, the camera is controlled by a gyroscope, although I did not write any controllers.
Even if I ...
4
votes
1
answer
524
views
How can I design a reward system that keeps players motivated in my mobile educational app?
I have a mobile app that allows for younger students / children to practice the multiplication tables.
2 x 2 = 4
3 x 2 = 6
To make the app more encouraging, I am planning to add some gamification in ...
1
vote
1
answer
113
views
Tile visual surface isometric conversion
I'm new to isometric display. I want to convert screen 2D coordinate to my world 2D coordinate.
For display, I convert world 2D coordinate like this:
...
4
votes
1
answer
708
views
SquidSquad - how to use WildernessGenerator and Biomes
I'm starting to create a roguelike, and stumbled upon SquidSquad, which has an amazing collection of algorithms and other stuff related to roguelikes.
However, for some parts, documentation is really ...
0
votes
0
answers
185
views
Terrain vs mesh : which one is better in terms of performance and storage size?
I have heard many conflicting opinions about the pros and cons of using terrain vs mesh in Unity. Some people say that terrain has better performance while others say mesh does. So, I am not sure ...
1
vote
1
answer
145
views
Problem with SDL2 optimization (tree structure)
while I was trying to optimize SDL2 rendering phase as much as possible, I reached a wall. I tried to search on the internet but I could not find any solution. So, I need help.
Let me explain the ...
0
votes
1
answer
82
views
Where is UnityFramework.framework located in unity xcode exported Project
I want to use Unity as a library for iOS platform. I exported the build from Unity for iOS. But I am unable to locate UnityFrmework.Framework. Is there any step i am missing?
Unity Docs states that: ...
13
votes
4
answers
6k
views
Preventing meta communication in a massive multiplayer game
In developing a 4x multiplayer game where players should cooperate to implement any of the four Xs. I am interested in containing all information about the world and characters (players location, ...
1
vote
0
answers
139
views
How to port web-based video game to other consoles?
I'm rather new to video game development, as I have only released one indie game on the web. Every time I have demonstrated the game at a public event, it has always received some kind of reception. ...
0
votes
1
answer
193
views
Resource management in ECS?
I'm new to ECS. And I'm trying to create my own game in ECS. I want to ask what's the common way to do some resource management. For example, it's very common to load and unload images from disk in ...
1
vote
1
answer
189
views
How to properly change resolution dynamically in SFML?
I am working on creating an options menu through which I can change resolution and toggle full screen mode. I am allowing only those resolutions that have aspect ratio 16:9, as my game was originally ...
1
vote
3
answers
275
views
Handling status/effects on a turn based RPG game
I have managed to create a state machine for my game core, like on turn start, on turn end, and another one. Now lets talk about effect/status.
For generic effects such boosting stats for certain ...
0
votes
0
answers
82
views
Specifying a "default value" for parameters when binding functions to delegates?
Let's say I have a class UFoo which has a dynamic delegate myDelegate with no parameters. I cannot modify the contents of ...
1
vote
1
answer
172
views
Understanding the math behind procedural aiming animation
I'm creating a procedural aiming animation system in UE5 as a learning experiment.
In order to position the hand for aiming down sights, I'm using a forward vector from player camera to project out a ...
1
vote
0
answers
48
views
Camera is skipping frames after turning a little bit
I'm observing that when I move the camera a little bit it works normally, but if I move more then I'll skip chunks of the screen.
I enabled "press CTRL twice to show cursor" with Powertoys ...