Newest Questions
57,729 questions
2
votes
2
answers
141
views
Pseudo-3D Parallax Shifting
everyone. I am working on a game that relies pretty substantially on "faking" 3D by using different parallaxing and polygonal transform techniques. In a current example, I am working on a ...
0
votes
0
answers
163
views
C++ Assimp Library Animations
I want to use Assimp skeletal animation in a GLUT program using the least possible libraries. I want to do the interpolation of the animation myself. How do I render a frame of the animation by doing ...
0
votes
0
answers
72
views
Best way to structure code for a character dependent on its environment and vice versa
What is the neatest way in a strict OOP language (c++ say) to avoid the following circular dependency. Imagine I create a character class and a world class. A character requests data from the world to ...
0
votes
0
answers
106
views
How do I create a shooting tool that works on both sides?
I am a fairly new user of pygame and i decided to start out with a simple but 'funny' game.
I have successfully implemented jumping mechanics, movement mechanics and a one directional shooting ...
1
vote
1
answer
146
views
How to pre-process the @export variable in Godot4?
Assume I have an export "arena_size". I would like to 'pre-process' this export so that whatever value user inputs in the inspector gets multiplied by 2 Like so:
...
0
votes
0
answers
28
views
TileMapLayer doesn't move along with its parent node
I'm using Godot 4.4.1 and currently learning how to build auto dungeon generator. The dungeon "room" is developed using TileMapLayer.
Room parent are set to ColorRect for background.
I use ...
1
vote
1
answer
97
views
Why does dynamic light flicker/get replaced with a square when rotating the camera?
I am facing the same problem over and over again with Dynamic Lights in Unity and don't know where next to look. I am still learning Unity so maybe I'm missing something trivial because it happens in ...
1
vote
1
answer
341
views
How to use @export to list all the keys of the dictionary in Godot4?
Godot 4.2
@export is rather useful as a time saving feature for node customization. We already have the @export_enum that can give user a dropdown list of choices.
However, @export_enum is "...
1
vote
1
answer
182
views
Why can't I access custom properties clearly declared with _get_property_list()?
I have the following script attached to a simple control node designed to create a custom property "label":
...
1
vote
1
answer
145
views
In Godot, how to show TextureRect texture in the editor mode but unload it before runtime to preserve VRAM?
I'm trying to optimize a bit. Assume we have an in-game "Item" object made from a simple TextureRect (no children).
Naturally, in editor mode I'd like to be able to see that item's icon (and ...
0
votes
1
answer
119
views
Voxel Level Storage
I want to know some methods of storing the voxel data in a game like Infiniminer or Minecraft in a C++ program. What file types can do this easily? The voxel values will be big possibly a trillion by ...
0
votes
0
answers
133
views
What technical factors might cause a CrazyGames rejection for a Godot web game?
I submitted a top-down shooter made in Godot (HTML5 export) to CrazyGames, but it was rejected without any detailed feedback. The name of the game is "Spacy Type" (available to preview here)....
1
vote
1
answer
308
views
How to make a rounded corners Player Icon in Godot 4.2.2?
I'm trying to implement a "rounded square" player character's icon in the UI. The actual .png of the icon is, of course, square, 256x256 px, so the UI element must round its corners "on ...
1
vote
0
answers
54
views
Why did my game get rejected by CrazyGames? Looking for feedback on first impressions [duplicate]
I recently submitted my HTML5/WebGL game to CrazyGames.com, but unfortunately it was rejected without specific feedback.
Here’s the preview link:
https://www.crazygames.com/preview/25901363-36f7-4d64-...
0
votes
0
answers
37
views
HLSL Automatic Root Signature Creation
I know of two different ways to specify a root signature in DX12, and those are:
Creating one with D3D12_VERSIONED_ROOT_SIGNATURE_DESC and ...
0
votes
0
answers
32
views
AABB algorithm in C++ no vec3 [duplicate]
Hi im trying to select voxels in a voxel world that are at the center of the cameras view.
The players camera X,Y,Z position and its rotations are known. The camera works in this program.
I tried ...
2
votes
0
answers
117
views
How to provide skill ratings for many related but disjunct properties (players, decks, etc.)?
My girlfriend and I are designing a small app to track our Magic The Gathering games. We want to use our game data to rate our decks, ourselves and generate game suggestions.
Elo seems like the ...
0
votes
1
answer
62
views
My scene crashed on `MonoBehaviour::VirtualRedirectTransfer`, how can I figure out which class or GameObject triggered this error
I have a Unity scene that works fine in editor, but always crash after being compiled into an executable with .NET/Mono backend, so I enabled stacktrace logging and dump the whole log into a file:
<...
0
votes
1
answer
125
views
How to reduce the size of my terrain?
I made a WebGL game at https://jugglecats.itch.io/startastic (password is "password"), but the game was far too large, making it take a too long to load. Upon inspecting the build report (...
1
vote
0
answers
129
views
Correctly handling input in case of frame drop
My game loop looks roughly like this:
...
0
votes
1
answer
103
views
How to virtualize an 8-ball pool table for an AR game which uses both real and virtual objects using Meta Quest 3 (v77) and Unity 6
I am creating an AR game in where I would like to virtualize an 8-ball pool table. Since semantic labeling is practically useless, I would like to have some manual placement of objects and some ...
0
votes
0
answers
48
views
Error compiling godot 2.0 from source on raspberry pi
I’m somewhat new to 3D game development having briefly played with unreal engine. I tried installing Godot 3.2 from apt but it won’t let me do anything because the openGL drivers are too new for my Pi ...
0
votes
2
answers
87
views
UI tween animation completely different on Phone and in Unity Editor
I have this function that spawns an Icon from a world position and animates it to correct UI position. In editor it works fine but in apk on phone it has a wrong starting position. Now as I understand ...
0
votes
0
answers
82
views
How to use model scale setting when importing into Unity?
Here is the screenshot of a model I downloaded over. In the import settings inspector you can see (my interpretation — correct me if I am wrong please):
Unity detects that its scale is in millimeters....
0
votes
0
answers
194
views
Voxel Raycasting/ Divide A Line In 3D Into Small Portions
I have a voxel game where I want to know which block the players camera is facing. To do this I have a line the distance allowed for the player to interact with the world cast from the center of the ...
-1
votes
1
answer
82
views
How to match UI text size and position between editor and build?
In the editor, it does not matter if I set the resolution in the game view to my pc resolution (1920x1080) or to "Free Aspect".
The only thing that changes is that in "Free Aspect",...
1
vote
0
answers
42
views
attaching meshes to a character model with armature from Blender in Unity
I made a character model with a rig for my game in Unity. The model itself is fine both in Blender and Unity. I decided to add customization of the character's clothing, which means that I need to ...
1
vote
1
answer
112
views
Adjusting movement vector for converting to input vector in an isometric game
I am currently modding in keyboard and mouse support for a Unity game that only supports controllers. The game is in an isometric style, and as such, the game camera is slightly tilted. The original ...
1
vote
0
answers
157
views
ECS architecture in non-gaming scenario : best way to model relationships?
I'll preface the wall of text below by saying that I've next-to-no experience with game design/programming. But I've a situation that might be fairly interesting to folks here.
I'm currently working ...
0
votes
0
answers
47
views
USD File missing Materails in Unity
I have imported NVDIA USD File assets in Unity and for this use the Importer by Unity (com.unity.importer.usd). It successfully showed the USD file in the scene as object but the problem is material ...
0
votes
0
answers
66
views
GPU-friendly coordinates for hyperbolic geometry
Perspective Euclidean rendering makes use of the W coordinates in a 4-component vector by recording distance information into it and let GPU do the scaling/normalization.
Hyperbolic and non-Euclidean ...
0
votes
0
answers
118
views
Looking for a way to handle/define area of effect attacks in a 2D grid based game
I am working on a top down 2D grid based game, where as it is currently, units have a movement and an attack range. An example of this:
The blue squares are tiles the selected unit can move to, the ...
0
votes
2
answers
122
views
Camera Snapping instead of panning
I am trying to make a camera system for a 2D platformer, with three camera modes to begin with:
Follow, normally following the player
Horizontal: Y is set, X follows player
Static: Locked to a certain ...
0
votes
1
answer
320
views
How to implement something like Noita's spell system?
Does anyone have any insight or at least a guess as to how the spell system works in Noita?
The game is done in C++, and it has spells that can be modified with other spells and spell modifiers that ...
0
votes
1
answer
152
views
How much slower are decent ECS frameworks supposed to be, compared to a naive array lookup?
I'm developing an ECS framework in C++ and after doing every optimization I could think of, the comparison with a naive array look up is terrible. It's 10x worse in debug mode and 3x worse in release ...
0
votes
0
answers
94
views
clouds are blurry
Unreal Engine 5
First Person
BLUEPRINT
default level Basic
The default cloud VolumetricCloud looks blurry in the sky can someone tell me step by step how to fix this m_SimpleVolumetricCloud_Inst
I ...
1
vote
0
answers
46
views
What is the best way to move a mask in a shader in a square path in Unity Shader Graph?
I would like to make the square move strictly along a square trajectory. The square will later be used to mask the main sprite.
How to achieve this result? How to move the square along the square's ...
1
vote
1
answer
189
views
Are VAOs in OpenGL just a trick to make fewer bind calls?
From everything I've researched, Vertex Array Objects (VAOs) are essentially just a trick, based on the fact that OpenGL keeps some kind of internal stack, so that when you bind the VAO, which ...
19
votes
2
answers
3k
views
How do you decide a base threshold for leveling up in a game?
This was a question asked during an interview, and I was absolutely stumped.
Let's say that there's a levelling system in the game. If you defeat an enemy, you get "n" XP. By the time you ...
0
votes
2
answers
136
views
My default animation state is stuck on little progress
I'm following CodeMonkeys 'Learn Unity Beginner/Intermediate' and I'm at the animation section. i tried doing it myself after watching it and I am pretty sure I did all the steps. But I reached the ...
1
vote
1
answer
275
views
Creating composite transformation matrix to apply in vertex shader
What I'm puzzled about, is why most tutorials on graphics programming speak of creating a composition of transformation matrices - which are then applied in a single loop (to each vertex).
I did the ...
0
votes
0
answers
64
views
Need a Hand with Liquid Shader in Unity (for VR Bartending Game)
I’m working on a liquid shader in Unity and could really use some help making it look more realistic. I’m going for that nice touch of transparency, reflections, maybe a hint of refraction—just ...
0
votes
0
answers
71
views
How do I use Addressables AssetReference RuntimeKey to compare the loaded assets with the AssetReference
I will use Addressables to load multiple assets of type Bag that share the same AssetLabelReference.
So I will load them using ...
1
vote
0
answers
162
views
What should I do if my Google Play Publisher account has been terminated?
I was making a game, or rather using an asset from the Unity asset store, while making changes to the final version of the game, and as my first experience I decided to publish this game on Google ...
4
votes
0
answers
81
views
Integrating rollback netcode with Havok
I'm developing a mod for a closed source game, which rewrites the netcode and game state handling systems to use GGPO.
Working on the state save/load systems, I'm noticing a lot of issues dealing with ...
0
votes
0
answers
128
views
Determining whether two points in 3D space fall along one another's line of sight
I have a three-dimensional surface represented by a 3D grid of cells. This 3D grid of cells is in turn represented by a 3D matrix, whose entries are nonzero if a cell corresponds to a "surface ...
0
votes
0
answers
46
views
How do I tell the game server that I have updated the hotbar. - Using FabricMC
I'm making a mod in Fabric for easily switching between the saved creative hotbars, fully client side. Right now though, when I try to update the hotbar and copy the items over from the saved hotbar, ...
0
votes
1
answer
232
views
How to position health bars above units in Unity regardless of camera location, angle and zoom?
Here is what I want to achieve, health bars that stay perfectly above the units, regardless of where the unit moves or where the camera is: https://www.youtube.com/live/fZSaPDz-GJc?si=B868wwF5KAPCuEtw&...
0
votes
0
answers
74
views
Even though I increased the detail distance, why is the detail object not visible when the camera moves away?
I bought an asset and it had wheat assets in it and I wanted to use it to plant in the field in my game, but they are not visible when the camera moves a certain distance away. There is no change even ...
0
votes
0
answers
70
views
Bicubic filtering of texture with arbitrary data
I want to add bicubic filtering to my software raytracer. I have a texture that can contain arbitrary data. I want to sample that texture by bicubic interpolation (bilinear isn't smooth enough). Here ...