Newest Questions
57,678 questions
0
votes
0
answers
7
views
Resolution-independent rendering of crisp 2D graphics (SD2, non-pixel-art)
I’m a beginner developing a 2D game in SDL2 using C with a visual style similar to Geometry Dash (simple shapes, clean high-resolution graphics, not pixel art). I want the game to scale correctly to ...
0
votes
0
answers
57
views
What is &256 function C++ [closed]
I see in noise functions a lot the function "&256" I think it's used to wrap a remainder from 0 again for values larger than 256. Is this what the function does? For example
In c++
Int A ...
0
votes
0
answers
10
views
Transform is not available in SystemBase Script (Unity Entities)
My player is baked entity in subscene while main camera is outside on scene. For some reason system cannot find transform of camera, GameObject was found though.
<...
-1
votes
0
answers
56
views
Values for Hermite Curve used in Perlin Noise
I need to know if the Perlin noise code I'm making that will use the hermite curve needs values between 0 to 1 or -1 to 1 in its permutation table or whatever is correct. I read the hermite curve uses ...
2
votes
0
answers
59
views
Changing prediction to interpolation on client connected to the authoritative server
Let's assume the following situation:
I have a server, that sends a snapshot of current game state to all the clients at a fixed time. Server is authoritative, all the physic calculations are done on ...
3
votes
0
answers
87
views
Displaying pixel art at any resolution with subpixel movement
The Goal
I have a game in Unity which utilizes pixel art. I'm not following the standard rules of pixel art, however. I'm ok with sprites having different sized pixels, pixels rotating, and pixels not ...
9
votes
5
answers
4k
views
How can I encourage players to play optimally against bosses?
I am making a shoot em up game with an aerial view. It’s main gimmick is that, instead of working like a machine-gun, your character throws a boomerang that hit the enemies both on the way there and ...
0
votes
0
answers
55
views
Hashing gradient vector and unshuffled permutation table in perlin noise generator
I'm implementing perlin noise in C++. I have a permutation table for the gradients vectors and want to shuffle them with a 2 number hash that has 2 purposes. The hash uses the integer portion of the ...
-1
votes
0
answers
44
views
Perlin noise permutation table
I read that the permutation table in classic perlin noise uses values from 0 to 255. I want to know if the quantity of elements can be increased. I think it uses 256 values (0-255). I'm going to make ...
1
vote
1
answer
150
views
How to speed up collision detection if there are hundreds of objects?
Let's say I have like 500 Asteroids and I'm using SAT to determine whether a collision with the Spaceship object has happened. This would require an insane amount of CPU cycles, so it makes sense to ...
1
vote
1
answer
34
views
Gizmo scaling with arbitrary reference coordinate system
I am currently implementing gizmos in my engine (or rather continuing the implementation I made a year ago). I had implemented a way to choose whether transformations are applied based on local space ...
0
votes
1
answer
26
views
Does SceneManager.LoadAsync(name) load the whole asset or only the prefab?
I have an asset called "Ocean" that contains 100 fish, and one of the prefabs for these fish is called "Dolphin".
My game has 100 scenes, and each scene contains 1 different fish ...
1
vote
1
answer
203
views
Overriding property setter
In Godot 4.5 beta 5, I am trying to override the text setter on a Label node. Following the documentation, I did:
...
0
votes
0
answers
23
views
How do you setup a ramp with an existing tile-set in Unity?
(Beginner questions)
How do you setup the ramp with the tiles in unity?
The graphics and the behavior?
I've been checking this free tileset:
In the image it has connected ramps
I cannot seem to get ...
0
votes
1
answer
14
views
Having trouble creating a ModGUIConfig with a custom category
I'm working on a mod for 1.7.10 Forge that needs a complex config for the user to set up, but only the "general" category shows up (from ...
1
vote
0
answers
47
views
how to implement the vines in animal well
the vines in animal well display pixel perfect deformation when the pc moves through them. they also display rope physics but do not appear to be implemented by jointed segments of physics rigidbodies ...
0
votes
1
answer
41
views
How to format a godot::String with an array parameter in a gdextension?
I'm writing a gdextension and trying to format a string using an array as one of the parameters.
Example:
...
0
votes
1
answer
81
views
How can I implement a fish character with a “chargeable tail” mechanic
I’m trying to replicate the fish physics from Fish Volleyball.
If you want you can try demo of the game or watch video preview
The unique part is that the fish doesn’t jump normally — instead, when it ...
-1
votes
0
answers
46
views
Roblox CobaltPlus elevators don’t work in my games [closed]
I’ve been creating elevator games for over two years and suddenly in 2025, it just stopped working… Can someone know how to fix it? When I clicked on the buttons it doesn’t do anything… It worked in ...
0
votes
0
answers
39
views
Aligning OpenStreetMap data with Cesium 3D tiles
I have my OpenStreetMap data exported using QGIS as a gltf file, and I'm trying to align it with Cesium 3d tiles for my high resolution model.
The problem is that both have different coordinate ...
0
votes
0
answers
75
views
Minecraft style selector noise algorithm [closed]
I'm looking for information on how a minecraft style noise selector works for high and low point blending of generating voxel terrain. The algorithm is supposed to use a map or two of perlin noise and ...
0
votes
1
answer
59
views
URP Maximum Sample Index (16) with Light Cookie Input
I just recently imported a new asset package, all of the materials use the URP lit shader, no custom shaders. However, now I can't build the game because I keep getting the same errors:
...
3
votes
2
answers
81
views
Number system with restricted set of sequence configurations
I am trying to design a novel number system for a game.
To do this, I want to create a mapping from a set S of symbols to the integers, where not all sequences of symbols from S are allowed, but they ...
2
votes
1
answer
83
views
Is there an equivalent to GL_TEXTURE_WRAP_R on GL ES 2.0?
I've been trying to write code that can run on multiple GL versions, since I mostly only use very basic features, and one of the versions I am targeting is GL ES 2.
Since I know you're supposed to ...
3
votes
1
answer
62
views
Should physics substepping include the entire update or only collision resolution + constraint resolving?
I'm working on a simple physics simulation and I want to use substeps to improve stability. I’m unsure whether I should apply substeps to the entire physics update or just to collision resolution.
...
1
vote
1
answer
43
views
Change sprites for multiple image in one function
I am trying to make a digital clock (24:00 type), where each number is an individual image, that should change. So, I want to change sprites for multiple images in one piece of code.
But when I ...
0
votes
1
answer
67
views
Mipmaps and LOD Behavior in Skybox Shaders
Is it beneficial to use Generate Mipmaps for a texture used in a skybox shader?
I need to use tex2Dlod to fix the edge seams ...
1
vote
2
answers
167
views
Simplest free algorithm for generating caves and ore in 3D voxel game
I'm trying to find an algorithm that does not require giving any form of credit to use (like perlin noise) and can be used for generating caves under a height map that can make holes in the terrains ...
0
votes
0
answers
61
views
How to Implement Ray Casting and Aim Assist Scaling in UE5 Using C++ for FPS Mechanics?
I'm developing an FPS shooter in Unreal Engine 5 and currently working on the aiming mechanics for keyboard and mouse (KBM). I want to implement an aim assist system that uses ray casting to detect ...
0
votes
0
answers
48
views
My terrain object is not getting spawned more than 3 times [closed]
I made a valley with terrain maker in unity , attached a empty gameobject to it, gave it a box collider. Gave my valley a rigid body and also gave my player(cube) a rigid body and a box collider. I ...
0
votes
1
answer
27
views
Best way to sync PhysicalObj to player headset position?
I’m in the process of designing a threejs-based webxr engine for simple VR games. Right now, I’m working on implementing physics with cannon-es, but I’m struggling to figure out how to sync the player’...
0
votes
0
answers
86
views
Why does this code behave strangely with different camera angles?
Relevant to this issue are two MonoBehaviour scripts: Actor and Player. ...
1
vote
1
answer
236
views
How does real Perlin noise work?
I find lots of articles but they cut parts out to simplify the process. I am trying to write a function to generate real 3D Perlin noise without skipping steps like averaging the 4 corners ray somehow....
0
votes
0
answers
123
views
Why does a sprite with a larger texture render faster?
While drawing a map for a game in Pygame, I encountered a strange problem. Loading my grass sprite, which is a little over a kilobyte, and placing it, the FPS dropped by half. However, replacing the ...
0
votes
0
answers
44
views
using Unity URP/lit shader with skinning and DOTS
I'm using:
Unity: 6000.0.51f1
Entities: 1.3.14
Entities Graphics: 1.3.2
URP: 17.0.4
Shader Graph: 17.0.4
I'm fairly new to both DOTS and Shaders, but when trying to use DOTS with URP combined with ...
1
vote
0
answers
85
views
Necessity of node-graph-based rendering in simple game engine
I'm working on a C++ game engine for my own projects. It's divided into two parts: one which handles basic functionality like logging, cross-platform abstractions, filesystem utilities, etc., and ...
0
votes
1
answer
136
views
Open model file format that supports skeletal animation
I'm looking for a file format to store and load 3D models with skeletal animation data, which is free to use and distribute without licence restrictions.
I've evaluated formats like glTF and Collada (....
7
votes
1
answer
1k
views
Why are collision manifold points created inside objects instead of on their surfaces?
Suppose you have two overlapping spheres \$A\$ and \$B\$, with centers \$c_{A}\$ and \$c_{B}\$ and radii \$r_{A}\$ and \$r_{B}\$. Let
\$n = \operatorname{normalize}(c_{B} - c_{A})\$ be the collision ...
0
votes
0
answers
50
views
Instantiated child scene does not rotate with the parent as pivot
Version 4.4
I am starting to learn Godot by creating a game in which my ‘Player’ scene is instantiating and adding a ‘Ball’ scene as its child on starting the game. I position the Ball at a distance ...
0
votes
1
answer
72
views
OnTriggerEnter called without a Rigidbody
I use Unity and the player controller in the game is acting strangely. It has a Character Controller but no Rigidbody. I use CharacterController.Move to make him ...
0
votes
0
answers
45
views
What am I missing to get my animation working
I use Godot 4.4 and gdscript. I have a 2D isometric character with hundreds of sprite sheets for different angles and weapon status. Its not feasible to do this in ...
0
votes
0
answers
53
views
How to edit maps from campaign to make them work in the Assault Coop mod in Far Cry 1?
How can I edit maps from campaign to make them work in the Assault Coop mod in Far Cry 1?
There are some campaign maps in the Assault Coop mod, but not all the maps.
For the moment, I opened the maps ...
0
votes
0
answers
57
views
Is there a string-pulling algorithm that works directly with (3D) portals without checking LOS?
I'm working on a project where audio propagates through a series of rooms and portals. This is modeled by finding all paths from a source to listener and then merging their contributions into a final ...
0
votes
1
answer
129
views
How to correctly set up peering bits for terrain sets/autotiling?
I'm trying to set up autotiling for this tileset in Godot:
I set the peering bits like this:
However, when I try to place the terrain tiles, all I get is this mess:
What am I doing wrong?
1
vote
0
answers
46
views
How can I dynamically make a distance field shape of the lit part of the moon to use it as a halo in a custom skybox shader?
I created a custom skybox shader featuring a black sky with only the moon and its halo. The moon responds realistically to the scene’s directional light (sunlight), which creates a convincing effect. ...
0
votes
1
answer
80
views
Color is changing in multiplayer without explicit syncing
In netcode for GameObject, network object script is used to make it networkable which means if the object instantaited it will appear on all clients. Network Transform allow you to sync the transform ...
3
votes
1
answer
180
views
Arc Slot Layout and Card Display Overlap
I'm struggling with a persistent problem in my Godot 4.4.1 project involving "power slots" arranged around a table or arena background. No matter how I structure my nodes and update my code, ...
0
votes
0
answers
38
views
Is a shader easier or scripting easier in terms of creating a panel behind objects
My unity project is 2D universal.
My goal here is to create a comic-like panel with outlines behind objects that have certain tags. This panel should follow the rotation and size change of said ...
0
votes
0
answers
19
views
How do I make smooth 2 way shooting in pygame? [duplicate]
I have been trying many thing to make my code work to make a player shoot a small box both ways (left and right) without being able to change the direction of the projectile mid shot.
I would be very ...
2
votes
2
answers
114
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 ...