All Questions
56,276
questions
0
votes
0
answers
8
views
Bounding Box/Rectangle collision glitches
I've been working on this golf game for a couple of weeks and have been trying to create a reliable collision system for whenever a golf ball (mini golf) hits a block. I'm using regular rectangular ...
0
votes
0
answers
22
views
How to Enable Resolution Dialog in unity
I recently discovered that Unity removed the Resolution Dialog feature in 2019. However, Unity has provided a solution for those who still wish to incorporate this functionality into their projects. ...
0
votes
0
answers
21
views
Add a sprite, move with keys, Javascript example?
I have a small image (30x30 px) I want to use as a sprite on a Javascript screen to show students what Javascript can do. (They want to create games.) How do I link the image file to my Javascript ...
2
votes
0
answers
17
views
Multi-OS/Arch NPM plugin for Unity
I need to create a NPM package containing a package for Unity. I need to use native code, i. e. a native library. The package needs to support:
Windows x86 64bit
Linux x86 64bit
Embedded Linux ARM
...
0
votes
0
answers
18
views
Where is the friction coming from in this simple setup?
I'm creating a simple implementation of the classic cart and pole balancing control problem. I'd like to have a 2D interface with the cart and pendulum controlled by the Unity physics, so that I can ...
0
votes
0
answers
49
views
How to choose what type of server to use when creating an online multiplayer game?
I want to develop an online multiplayer game using the Scala language. I am quite new to programming; I have developed some simple multiplayer games(think snake, pong), but they cannot be played ...
1
vote
0
answers
44
views
What specific lighting property creates "the unity look"
Nearly all unity games have specific "unity" look. It is quite obvious that it is caused by the rendering pipeline and shading, but I was wondering which specific part is responsible for ...
2
votes
1
answer
283
views
Hide Children of Node
I am making a addon for my friends, and I am trying to make a custom node. It works, but I have a problem, the children of the custom node is visible in the scene dock.
The ...
0
votes
0
answers
11
views
Pass texture array into shader and paint mesh vertices depending on vertexattributes
Well,
I'm a newbie with shaders, I'm just trying to paint a mesh depending on the vertex attribute passed with one or another texture.
The idea is to achieve this, for example:
For this, I have been ...
0
votes
1
answer
25
views
What transformations are performed under model space?
I am struggling to understand the relationship between model transformation, model space, and world space.
I understand that model transformation transforms an object from model space into world space....
0
votes
1
answer
30
views
0
votes
1
answer
48
views
How to compute XP thresholds when scaling changes for each level range?
I am developing mobile game and I am stuck on an issue regarding proper player stats scaling based on level.
As a parameters for the computation we have:
base XP value
multiple increment values (for ...
0
votes
1
answer
32
views
Scrolling the screen left, right, up and down based on cameras rotation in Unity with C#
I'm making a building game in Unity and C#
I want to be able to scroll the screen in all 4 directions when in building mode.
At the moment, I can rotate the camera and scroll the screen left and right,...
0
votes
1
answer
64
views
Stackable items: what's the point of an item not stacking to infinity?
Pretty much every inventory system that doesn't care about realism and still let's you carry thousands of useless items in your pocket will anyway decide to give items a maximum stack size. Which is ...
2
votes
1
answer
28
views
Setting A Panel texture in GDScript
I am messing around with Godot, and I couldn't seem to find a way to set the texture of a Panel node in Godot. First I tried using the ...
0
votes
0
answers
21
views
How to draw a tile placement grid in a 2d isometric place/world?
I'm working on an isometric 2d tile based game in ruby using SLD 2. The tiles are 40px wide and 20px tall. I'm trying to figure out how to draw the grid (where each cell of the grid is a potential ...
1
vote
1
answer
39
views
Texture loading issue with open gl es on android
I'm programming an app with OpenGL ES on Android in Java. The app uses 9 textures during a render loop pass. A depth, position, normal, albedo, noise, SSAO, SSAO blur and two image textures for the ...
1
vote
0
answers
29
views
Vulkan shadow map artifacts
I am experiencing some weird shadow artifacts.
I suspect it to be some sort of self shadowing/depth bias thing.
My shader for the shadow map is quite simple:
...
0
votes
0
answers
25
views
Godotsteam initialization on Linux
I have a problem in getting godotsteam running on my linux OS (Zorin OS).
Here is what I have done so far:
I have downloaded godosteam addon for using it on godot 4.1.2 from the github official page
...
0
votes
0
answers
13
views
About possibly using Depthstencil 2D array in multiplerendertarget mode
I'm rendering in forward mode my scene with its depth buffer and because I'm using animated characters I'm plannig to find a way to use multiple rendertargets to do the directional shadow pass at the ...
0
votes
1
answer
34
views
What are my options for creating animated planets and stars in Godot 2D?
I'm creating a simple game / digital picture frame as a present. It is split into a picture scene and a planetary scene, which will have slight animations, date, time and maybe some messages.
The ...
0
votes
1
answer
44
views
Getting smallest possible build filesize on Win build (other than optimizing assets)
Disclaimer: I'm currently just exploring techniques and trying to save literal kilobytes just to see if I can. Please don't give me speeches about how development time is not worth it.
So I got a bit ...
0
votes
0
answers
40
views
How to begin my game dev journey after learning C++ [closed]
I have soon finished to learn basics of C++ (from LearnCPP tutorial serie), pretty beginner at it but I don't feel "too lost" while programming small code snippets to practice.
Biggest ...
0
votes
1
answer
22
views
How to achieve smooth camera dragging with the mouse in SDL2?
I am working on a 2D isometric perspective game using SDL2 and I would like to implement the ability to pan the map when the right mouse button is held down.
I was wondering what is best way to set ...
0
votes
0
answers
38
views
Is this gimbal lock I'm hitting even with rotation matrices / quaternions?
I'm spawning a trigger box relative to another object using local offset. The engine I'm using does not provide a native function to make that conversion (at least in a way accessible to me), so I am ...
0
votes
2
answers
50
views
Name of 2D Image From Above
What do you call a 2D game where its view is directly from above looking down?
Does the art style have a similar name? (Ie isometric is a art style, but not the art style name I am after.)
When I use &...
1
vote
1
answer
68
views
Padding in a vec3f array in WebGPU memory layout
I'm trying to write a WGSL structs parser (sort of webgpu-utils thing). In order to better understand the memory layout, I'm using wgsl offset computer as a helper.
Having the next struct:
...
1
vote
0
answers
50
views
Can you append values to an appendbuffer and then immediately read from that same buffer?
I am looking to achieve the following: I have a compute shader that receives a Texture2D as input, where a small percentage of the pixels in the texture are white. ...
0
votes
0
answers
22
views
Unreal 5 Strange Global Illumination Effects
As stated in the title, I am having some strange effects with global illumination. I am using Lumen, and I have no active post process volumes (I have one which is set to "editor only")
I ...
0
votes
0
answers
31
views
How can I reduce beam intensity without significantly reducing light brightness?
I picked up Unreal 5.0 last week and don't what question to ask the oracle Google to help me fix the problem.
This is what I have. (ImgA)
This is the look I am trying to get. (ImgB)
I started with ...
0
votes
2
answers
62
views
Infinite scrolling with mouse
I know we're able to scroll a background image hardcoded or using awsd keys(or arrows) if they're pressed. But what about scrolling it with mouse movement? So I have a piece of panoramic image as a ...
0
votes
0
answers
25
views
I have a question about 3D in Java. How to upload and display non-skeletal animation? [closed]
I have a question about 3D in Java. I need a program to show a 3D model, which is a panel with buttons, a screen and toggle switches. When you click on a button or toggle switch, the corresponding ...
0
votes
0
answers
35
views
Should a free roaming camera movement be controlled by the physics engine (for smooth movement)?
I have a hobby engine (for fun and research) with a free roaming camera implementation that works by modifying the PositionComponent and ...
2
votes
0
answers
39
views
Exported custom classes or enums are unrecognizable
Is there a way to export custom classes in C# in Godot4.2 that don't show during play in remote the class ID but the class name for instance?
Also, exported enums are shown as numbers during play in ...
0
votes
0
answers
37
views
Can WFC generate aesthetically pleasing maps?
Is wave function collapse actually capable of generating aesthetically pleasing tilemaps? Let's very roughly define "aesthetically pleasing" using an example from the world map of "...
0
votes
1
answer
50
views
Why is my enemy in unity 2d not moving?
So I'm trying to make a 2d unity platform game for a school project but I can't seem to get the enemy to move.
can anyone help? much appreciated!
0
votes
1
answer
35
views
NavMesh Runtime Generation In Specific Areas
Unity allows the runtime generation of NavMesh surfaces with the Unity.AI.Navigation package through the BuildNavMesh method. However, this function re-bakes the entire NavMesh in the current scene, ...
0
votes
0
answers
13
views
Is it possible to prevent a graphic raycaster blocking 2D rays in different layers, from a different camera?
I have a graphic raycaster attached to a canvas, with the blocking layer set to exclude all layers except "UI":
...
0
votes
0
answers
34
views
When does normalization happen in the perspective projection matrix
I am currently watching this video where the instructor shows how the perspective project matrix is actually derived.
There are a few things that I am still unclear of. Firstly he says we need to ...
0
votes
0
answers
13
views
Launch4J wrapped jar produces JNILibLoaderBase errors
I created an executable jar file bundled with JOGL, then wrapped the jar into a windows executable using Launch4j in order to pass runtime java parameters. If I run the jar from a command prompt I get ...
3
votes
2
answers
1k
views
In an object-oriented game engine, should there be seperate classes for objects with and without parents?
I am developing a game engine in C++ (for an idea of what kind of design I'm going for, think of ROBLOX, if you're familiar with that) and I need help with a problem I have.
So basically, the objects ...
0
votes
0
answers
49
views
Im trying o make snap in Godot. How do I get ~100 frames for one sprite(the card)? [closed]
How do I get a sprite with ~100 frames that can be changed with a script in Godot.
I am new to Game development.
0
votes
0
answers
26
views
Looking for simple gravity + collision Javascript library for platformer game [closed]
I've been looking all over, but all the libraries I've found seem to fall into two categories: "Everything and the kitchen sink," or "We detect collisions, but don't actually resolve ...
1
vote
1
answer
68
views
2D Sprite components causing text (TextMeshPro) components to be hidden in Unity
Edit: Depending on where my game character is located in the map, some text (TextMeshPro) components get hidden/turn invisible.
I have tried to figure out what is causing this. With the help of a ...
0
votes
0
answers
32
views
Specular lighting does not appear
I'm struggling to add specular lighting on-top of diffuse lighting and not entirely sure where I'm going wrong. I've followed the instructions given in our lecture but it just doesn't seem to be ...
1
vote
1
answer
82
views
How to clean up list entries when objects are destroyed in Unity?
We are developing an economic sandbox somewhat similar to a mixture of The Guild and Kenshi.
In this game, both the player and the NPCs will often create and destroy (consume) various objects.
The ...
0
votes
0
answers
78
views
How to pack files to .dta format for Hidden & Dangerous 2?
How can I pack files back into a DTA file from the game "Hidden & Dangerous 2"?
I want to change several sounds in the game in the file Sounds.dta.
I ...
0
votes
0
answers
48
views
Can layermask be made for colliders in Unity? [closed]
I use collider to import a few objects in Unity. And these are triggers. Actually, what I want is, for example, there is a wall in front of me and a key behind it, and I cannot get it from in front of ...
1
vote
0
answers
20
views
How can I refer to the render target in Unity after postprocessing?
In Unity's Universal Render Pipeline, there is a PostProcessPass class in PostProcessing.cs. What I would like to know, how I ...
1
vote
0
answers
30
views
Is it possible to add new waypoints to Dolly Track in Unity CinemachineVirtualCamera on the go?
I'm making a racing game "on rails" that utilizes generated map (similar to outrun). The map is made out of chunks that appear every time player crosses a Trigger area on the chunk that is 3 ...