All Questions
56,273
questions
0
votes
1
answer
68
views
Optimal Approach for Transmitting and Rendering Large Pixel Art Game Maps in Unity
I'm working on a pixel art game in Unity, and my backend (Which is actually written on Golang) has generated a massive dataset of tiles for a 1000 by 1000 world (it could be even more). I'm wondering ...
0
votes
1
answer
511
views
How can I make the sound files work again when using the Creation Kit for Special Edition?
When using the CreationKit 64bit for Skyrim Special Edition, the scenes and dialogues break and don't show up properly in game.
What happens and how do I fix it?
1
vote
2
answers
32k
views
How do I calculate speed given x y components of a velocity vector?
I have some code that returns the x and y linear velocities of a moving space ship. How can I combine these to give me total speed?
...
0
votes
1
answer
26
views
Getting the scalar speed from an X and Y velocity [duplicate]
Given a Vector2(x,y) that represents an object's velocity, like so:
...
2
votes
1
answer
58
views
How is a Spherical Harmonics Lightmap generated?
I have successfully generated a single color lightmap using ray tracing.
For each texel in the lightmap, I trace into the hemisphere (using the normal) and capture the incoming light.
This single ...
0
votes
0
answers
33
views
Why do my trigger zones change rotation randomly on gameStart in editor?
I'm now doing a racer on rails like "Outrun". I do have a cool Script from internet that makes the camera and the player follow the Waypoints. The Waypoints are Trigger shapes. I have a ...
2
votes
2
answers
110
views
Calculating average ttk given accuracy and healing
I'm trying to calculate the expected ttk for weapons in my game but I'm having trouble because players can miss and enemies can heal.
Let's say an enemy has 100 health and every second you have a \$p\$...
1
vote
2
answers
427
views
Simple Circuit System
I want to make a simple circuit system in Godot. Here's what I mean by that. (The circuit isn't realistic)
I just want a battery object and a ...
0
votes
1
answer
396
views
What's it like being a game developer? [closed]
I am a 6th grade student and I would like to be a video game designer. In class, we all had to choose a career that we would like to have and interview someone with that career. Finding a game ...
2
votes
1
answer
478
views
Discounts on In-App Purchases
A client asked me about implementing In-App Purchase discounts on the Apple App Store and Google Play. For example, putting an item that's normally $7.99 on sale for $5.99.
I've primarily been working ...
0
votes
0
answers
52
views
Why can't I limit FPS inside Unity editor?
I have an Unity app that requires a stable fps in editor. The fps itself is really high anywhere from 200 to 280 the problem is that is not consistent. I tried to limit it with the code belove but it ...
0
votes
0
answers
9
views
Unreal Engine FDirectoryWatcherModule catching multiple events per file operation
I followed this post to implement a delegate on a directory that notifies me when a change has happened (add file, delete file or remove file).
This works fine, though the issue is that for each ...
-1
votes
0
answers
41
views
Spawning of enemies seems to be broken
I am working on a small video game in HTML, CSS, and JavaScript. The game is almost finished, but I am having a problem with the manner in which my enemies spawn. The following code is in the ...
7
votes
1
answer
563
views
On Android, How can I avoid FPS drops during sensor listener setup/tear down?
When I open my Android app after 5 or 10 seconds it sets up the sensor listener, during which I see clear stuttering and the FPS drops for a second to 40 instead of 60.
Is there a way to avoid this? ...
0
votes
1
answer
25
views
OnCollisionStay outputs strange contactpoints
I am currently trying to make a pen draw on a paint.
I am searching for contact points on the paint but there is too much contact points than expected.
I'm not sure to properly understand how ...
0
votes
3
answers
97
views
What is the best way to implement a scene manager?
I'm trying to create a scene manager system for a small framework I'm writing on top of SDL2. I have implemented a scene management system that works, but I am not sure if it is structured how it ...
4
votes
1
answer
517
views
Limit/Clamp camera movement using quaternions
I'm making a camera object for rendering with OpenGL. However, instead of using the typical "LookAt" method I'm trying to use just a Quaternion for orientation and a Vector3 for position. Instead of ...
0
votes
0
answers
72
views
Seperating axis theorem is bugged
I am attempting to make split axis theorem for 2d collision physics. It does works, but is inaccurate. It is based off of: https://www.gamedev.net/tutorials/programming/math-and-physics/a-verlet-based-...
0
votes
0
answers
9
views
In LibGdx, how to add another music format?
I would like to add multiple music formats to the LibGdx library, like .vgm, .mod, .s3m, .xm and so on. I already have the Java code to do so, but it's hard to integrate it with LibGdx code.
I know ...
2
votes
1
answer
56
views
Detect if a key other than "this" key has been pressed
I'm wondering if there is a way to detect if the key being pressed is NOT matching a specific KeyCode.
I tried using: ...
0
votes
1
answer
41
views
Unity 2d with the Android platform crashes with the urp package
I’m new to developing lights in Unity, I looked at the tutorials and decided to use the URP package. When installing the package, the project crashed at first, but then I restarted and the textures ...
2
votes
1
answer
2k
views
Using UPawnMovementComponent to control a Pawn with Keyboard sharing code between Pawns
I've just started to learn Unreal and reading the tutorial Components and Collisions I have found that they use the UPawnMovementComponent to control their ...
0
votes
0
answers
21
views
Why when switching between scenes the loading transitions is loading empty scene before loading the scene in index 1?
I have two scenes: Opening Scene and Game Scene.
The logic is to play the Opening Scene and then fade out then when the Game Scene has loaded to fade in when the Game Scene is already loaded.
the ...
0
votes
1
answer
67
views
Unity Mirror Networking Audio Behaves Differently on Host and WebGL Client
I am creating a system in Unity using Mirror Networking which will only require one host/server and one client. It is a WebGL build so the client will connect on a browser. I want to send commands ...
0
votes
1
answer
706
views
How to fit game to screen size?
I create a WebGL game. After building project I discovered that the game doesn't fit the screen size
How you can see the canvas is perfectly scaled but the game didn't
I don't know what I changed but ...
1
vote
0
answers
70
views
Use of a Global Shaders in Unreal Engine to apply some pre-processing operations
I'm a little experienced in Unreal Engine, but I don't know the Unreal's graphics programming from a very low level. More in details I would like to know how could use an Unreal's Global Shader to ...
7
votes
1
answer
742
views
How can I create a six sided tillable perlin noise image?
I'm attempting to create a tillable hex shaped terrain map using c++.
As part of the process I'd like to use perlin noise, but it seems that in order to make it tillable I'll need to generate it 5 ...
1
vote
1
answer
2k
views
Unity baked lighting - blotchy shadows, bleeding and/or stiching
I have spent days trying to get baked lighting to look good. I use a simple low-poly style. No matter what I do, I get this type of effect (blotchy shadows and odd dark lines):
Here are my settings:
...
0
votes
1
answer
47
views
Custom Mesh with single texture - suspected uv issues
I created a script that allows me to change my meshes configuration while the app is running. I don't know meshes all that well and am running into issues with texturing. How do I need to set my uv's ...
0
votes
2
answers
1k
views
Resize font when screen resizes desktop Libgdx
I create my font using the following code:
...
21
votes
2
answers
7k
views
What is a "normal" in game development
I'm new in Game development and probably this is a silly question.
I had a look online but haven't found a clear answer, I did it bit quick but enough to evaluate that this is a confusing topic ...
0
votes
1
answer
45
views
How to render a portion of a texture (upscaled) without affecting the border with SDL2?
I noticed that render a portion of the texture, upscaling it, it affects is border values with the proximity of the outside remaining parts of the texture (when not using Neareast neighbour ...
0
votes
1
answer
69
views
How to Code Rhythm Sync
I'm trying to make an object's movement automatically sync to the music in Unity. I want a way to get the "key points" (when there is a loud beat) and make the object dash at those moments.
...
2
votes
1
answer
888
views
SpriteBatch, trying to reduce draw calls
This my main draw call:
...
0
votes
1
answer
39
views
Unity RB Controller Jitter on a Moving Platform
Brief Description: I have a RB based character controller that I want to move along with my Train platform (non physics based) when the player steps on it.
Main Problem
I manage to make the player ...
1
vote
1
answer
63
views
How can I import an AvatarCLIP animation into Unity?
I have an .fbx file containing a an avatar that is standing still.
I followed the steps in this GitHub repository section "Motion Generation" to create an animation for that avatar. What I ...
0
votes
1
answer
30
views
c++ SFML Window in std::thread ignore animation
I have a main window whose loop is just in the program and a Window class in which separate sf::RenderWindow objects are created and the loops for them are in ...
0
votes
1
answer
783
views
Why is my color on my obj not showing in Unity!
I've been trying to import my full-color obj files to unity for a while now, but I can't get them to be in color. All of the colors show up in Meshlab, but not in Unity. All of the youtube videos I ...
1
vote
1
answer
78
views
Actual Custom Nodes in Godot
So I am creating a plugin for Godot 4, and I want to create an actual custom node.
What do I mean by that?
First to create a custom node I do:
...
0
votes
0
answers
33
views
How does bullet physics filter 4+ contacts in GJK?
If the bullet GJK (Convex vs convex) collision algorithm has more than four penetrating points, then how is it filtering that down to the four it needs?
What I've tried
Staring at the code, but I get ...
0
votes
1
answer
626
views
Calculate Mesh top, bottom, left and right position relative to mouse click position on the mesh
I have a mesh (suppose it can be circle, or rectangular,square or an arc). The geometry of the mesh can be anything. I can click on mesh at any position. From relative to the clicked position, I want ...
0
votes
3
answers
701
views
Collision detection between transformed meshes (not primitives)
I know questions related to collision detection have been asked multiple times, but I find all of them like this and this depend on the assumption that I have some sort of measurement of the object ...
0
votes
0
answers
37
views
Problem with light in Unity2D
I'm new to working with lights in Unity, I watched a lot of tutorials and decided to use URP. It seems like I have everything set up, but when I set the lighting, the light doesn’t fall on the ...
0
votes
0
answers
42
views
Install Unreal Engine 4.22.2 on Ubuntu 22.04
I am trying to setup NDDS on Ubuntu 22.04 which requires Unreal Engine 4.22.2.
Looking at the oldest available versions of Unreal Engine for Linux, I don't find 4.22.2. What do you suggest to do?
The ...
1
vote
1
answer
824
views
How can I make relative movement in GameMaker studio?
I know I can change the hspeed and vspeed properties on my object. Assume I do it for the directional diamond in a squared-style ...
0
votes
3
answers
175
views
A good genetic system?
I was trying to come up with a genetic system for my game. However, after doing the math I found the system I had in mind won't really work.
Characters have 5 stats that can range from 0 to 12. What I ...
2
votes
2
answers
7k
views
Extract a rotation matrix given a camera direction (vector) and a up vector for the camera?
I am having some issues constructing a rotation matrix from a camera direction vector.
The Up vector is computed from the camera direction as such:
...
0
votes
0
answers
26
views
How to trigger a local file download for a screenshot from a Unity WebGL game?
Is it possible for a Unity WebGL app to trigger a local file download - binary data generated in the app, somehow triggering a browser download?
3
votes
1
answer
436
views
Why does scissor test happen after fragment shading?
In OpenGL why is scissor test performed after shading. Wouldn't be more efficient to do the discarding before shading?
Reference pipeline overview, the scissor test is inside the Fragment Processing ...
0
votes
2
answers
1k
views
Create and configure new Niagara Emitters from C++
I’m trying to create a magic system that lets the player add spells and modifiers to a spell stack and combine them following a set of rules, creating new spells in the process (that maybe can be ...