All Questions

Filter by
Sorted by
Tagged with
0 votes
2 answers
2k views

Copying transforms from one object to another

I am working on a virtual production app, and I need to be able to copy the transforms of one GameObject and all of its children to another. I asked previously here how to animate a character moving ...
0 votes
0 answers
3 views

How to rotate a 3d grid?

I have a spatial hashing grid that's mapped out like ...
0 votes
0 answers
4 views

is there better format than PNG to store R16uint depth data as ASTC has precision artifact on Android?Thanks!

is there better format than PNG to store R16uint depth data as ASTC has precision artifact on Android? Thanks!
0 votes
1 answer
16 views

How can I use the velocity of a gameobject to calculate the camera position in Unity?

I am using AddForce() to make a ball move around the scene. The camera follows the ball at a fixed position. This is my camera script: ...
0 votes
1 answer
5 views

Modifying the transform of a modelinstance in libgdx

Using libgdx I need to move back and forth by a very small amount a soldier head: I do the following: But the soldier head is flying up into the y axis out of the screen: ...
0 votes
1 answer
68 views

My Godot 4 2D game is running badly on HTML5 on some PCs

using Godot 4.2.1, My game is a pretty simple top down shooter, I tried exporting to HTML5 on itch.io and the game runs fine on certain PCs but not others ?... when running the game on my computer ...
2 votes
1 answer
476 views

"ModelImporterClipAnimation" Settings don't get applied to FBX

I am trying to edit animation file settings in the FBX file. I managed to load the file and extract animation clip names using the code below, however, I am unable to actually edit any of the settings ...
0 votes
1 answer
165 views

How to make multiple variants of an enemy mob scene?

I'm just starting out in Godot 4. I followed this tutorial on how to create my first game, and I'd like to add some new features to make it more interesting, and start coding some stuff of my own. I'd ...
0 votes
0 answers
13 views

Prioity of Workflows, what should I work on first, middle, last? [closed]

For example, I learned that generally, the Music is one of the last things done in a video game. In terms of priority, and order of workflows, the Sound Effects are also one of the last things ...
0 votes
1 answer
97 views

Stray (orphaned) nodes remain after queue_free() of their parent scene

Godot 4.2.1 I have implemented a simple scene-save system: The Savegame Autoload listens for the S key press. When S is pressed, the ...
0 votes
2 answers
54 views

Prevent rotation after setting Human Pose

I'm attempting to move the fingers of a prefab using muscles with the SetHumanPose method. However, the prefab is rotated 90 degrees on each call to ...
0 votes
1 answer
25 views

Should I remove the listener from UnityEvent similar to normal C# events?

Do I have to always remove UnityEvent listeners in OnDisable(), when I add them in OnEnable() just like I have always did with normal C# events? Does it affect the performance?
2 votes
1 answer
29 views

Escape Block Textures Not Loading After Leaving First Room

Godot Version: v4.2.stable.official [46dc27791] I am trying to have an escape block with a TextureRect that has two different textures--an animated one where it's ...
-1 votes
0 answers
20 views

How to remove these jaggy, banding artifacts? [closed]

How to remove these artifacts? The banding, jaggy parts are what I want to fix. It's mainly using FS and no VS. The background is a texture.
0 votes
0 answers
20 views

Dualshock controller gives no input on android build

I want to create a 3D game for android, and move the first person character with a PlayStation 4 default controler (DualShock4). In the unity editor, I can move, look and jump freely how I want, ...
0 votes
1 answer
622 views

How to pan and zoom an isometric map on a canvas

I'm new to html canvas. So far I am following this code as base for simple isometric tiles. I made an empty isometric grid map that only shows the grid. I want to offset the position of my isometric ...
0 votes
0 answers
15 views

Multiple Shaders With Sprite Batching

I have coded a game in OpenGL and for rendering I used a Sprite Batching technique to draw many sprites in a single call to glDrawElements(). But as soon as I ...
-1 votes
0 answers
21 views

Different results when using makeNoise 3 times vs 1 time

I originally created a noise texture with three calls to makeNoise: ...
0 votes
0 answers
19 views

How to force all TMP UI objects to render together to avoid breaking the batching for UI?

I’m using TMP pro UI. When using an sprite atlas, I noticed TMP objects are breaking batching because they use a different material. Is there any easy solution to force them all to render together ...
0 votes
0 answers
12 views

New Input System and Touch Ended / Pen Lifted / Mouse Up

How does one use the new input system to determine the states: Touch Ended Pen Lifted Mouse Up I've tried subscribing to canceled (isn't always triggered, seems to false trigger). There does not ...
0 votes
1 answer
33 views

How can I use a single texture without it repeating on each face of a cube?

I am trying to show a single image on one side of a cube in Unity. But the texture keeps repeating, even if I set the bitmap texture settings to "clamp" instead of "repeat / wrap". ...
0 votes
2 answers
3k views

Why does the object spawn only on client?

In my game I have an object, let's say food, that whoever consumes it, that player will spawn one more element. I am checking collision in Update. The following code is working fine on server side, ...
0 votes
2 answers
846 views

Rendering to Texture with Transparency in Monogame?

Please forgive me if I'm asking a question that has been answered before, but for the life of me, search as I might, I couldn't find a problem exactly like this anywhere. I'm trying to render a ...
0 votes
1 answer
32 views

Calculating semicircle points of a scaled CapsuleCollider2D

I have a very simple code that draws the shape of a pre-defined capsule. It handles everything well, except the case when the GameObject to which the ...
0 votes
0 answers
39 views

Collision of two rigid spheres with spin

I'm trying to create a particle simulation (solar system kind). Until now my particles have no spin so the collision is rather simple ...
0 votes
0 answers
14 views

How to set view target to a specific camera component

I've been trying to migrate spring arm and camera components from my pawn to my player controller class. Unfortunately, it seems like the controller class already has a ...
0 votes
1 answer
992 views

How to instantiate a child object in UNet without it lagging behind its parent over the network?

When I use NetworkServer.Spawn(ob) t instantiate a game object and make it a child of a transform.parent after it spawns on both ...
1 vote
1 answer
45 views

Visual Effects Experimental Block

Currently I am using Unity version 2022.3.12f1, and I have downloaded the Visual Effects Graph from the package manager (Version 14.0.9). From what I can see from other people's VFX tutorials, they ...
0 votes
0 answers
13 views

how to label parts of an imported Maya model in Unity

I want to import the model you see in the picture to Unity. Now, my goal is to create a script that will remove part of the model at random. So, in the picture I can place two doors in the red areas. ...
0 votes
1 answer
42 views

Why does my game lag while testing?

While I was testing my game yesterday, the fps started at 60 and dropped below. While testing my game today, my game, which normally starts at 60 fps, started with 2 fps. Thinking that the reason was ...
1 vote
0 answers
34 views

Procedural fractal Perlin flow noise for mobile

I'm trying to use the Fractal Perlin flow noise from Chaos Software (shared under the MIT licence) ...
1 vote
1 answer
36 views

Finding objects with tags vs Layers vs Scripts in Unity?

I never know which one I should use. If a bullet flies towards a target, let's say a zombie, should the Zombie have a tag? Maybe an "enemy" tag, or "Damage" tag? Or should I look ...
5 votes
2 answers
1k views

Positioning items / clothes on character

I'm aware that in Unity, when you want to add (e.g.) a weapon to a character, you parent it to the "hand" bone of the character etc... Well I'm trying to add a hat to a character in unity when it's ...
0 votes
0 answers
36 views

Fast way to compare a large set of positions, rotations, velocities, etc. during runtime (possibly every frame)

The Goal I'm working on a vr gesture recognition system. Normally these systems are dependent on "drawn" gestures, but I want something that compares position, rotation, velocity, angular ...
0 votes
1 answer
39 views

How can I make an enemy stay away from the player, but can still see it

I am making a game in Unreal Engine and I wanted to know how can I make an enemy always attack from a certain distance, however, the enemy also has to see the player. I've reached a weird result where ...
1 vote
1 answer
30 views

Age rating of horror aspect in game

I want to add horror aspect to the game i made on unity to make the game less boring. However, after looking at several popular horror game, the age rating of these game is really high which means ...
0 votes
0 answers
18 views

How to render a texture in a unique color using SDL2?

(I apologize in advance for my awful English) I'm writing a personal UI library in C++ using SDL2, and when came the moment to implement icons, I struggled to find how to render them in a unique color....
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: ...
1 vote
0 answers
34 views

How to code Capturing in "Go" Board Game?

By following this series of N3k EN checkers tutorials, I was able to adapt the process to my own 3d models from Blender to code the board game Go instead. Here is the wikipedia article for the board ...
0 votes
0 answers
15 views

Develop a dialogue system for a game in html 5 canvas

similar to rpgs with a popup window and text options. like stardew valley. Are there any common approaches to implement this?
0 votes
1 answer
28 views

Unity New Input System - when is it not experimental?

I am curious which version of unity until the New Input System is not listed as experimental?
1 vote
1 answer
673 views

RayCasting with Mode7

I'm trying to join the mode7 algorithm with RayCasting. For mode7, I'm using a simple rotation matrix to implement the rotation. The result is a little strange and I can't fix it. Do you know what is ...
0 votes
1 answer
65 views

How to compile a node-based material system to usable shader code / data buffers / texture resources?

Let's suppose we're rendering a scene using Vulkan with objects with many different materials that are built using nodes. Within a graphics pipeline, there can be only fixed shader code, so I'll have ...
0 votes
2 answers
282 views

Setters and Getters in ECS?

So I'm currently working on a Game Engine for my University and I came to the point of integrating an ECS. Thing is, I'm currently a bit unsure if it's okay to have setters and getters for specific ...
0 votes
2 answers
999 views

Custom Recipes in Minecraft Modpack (other Error)

I want to have a new Recipe with crafttweaker, which using machines from the create mod, for Netherrack like this Im playing Mc 1.16.5 At the moment I tryed this code in \scripts\MyRecipes.zs: ...
0 votes
1 answer
952 views

Multiple AudioSources or one AudioSource with multiple AudioClips?

I have a character with a bunch of different attacks + sound effects in Unity. One way to architect this is to create a single AudioSource, and then set the AudioSource.clip to a specific sfx each ...
8 votes
2 answers
7k views

How to disconnect all signals of an emitter?

This a follow-up question of this one I want to disconnect multiple signals before using queue_free(). In docs we have: ...
0 votes
0 answers
13 views

GTKRadiant doesn't load any assets for Quake 1

I recently decided to see if I could make any maps for Quake 1, seeing how it got a revival recently from Night Dive's remaster. I downloaded GTKRadiant, and I keep messing with the software's ...
0 votes
0 answers
22 views

Database or arrays

Generally for an RPG, would you say a DB like SQL server and MYSQL is over kill? RDB seems really convenient to pull and call from an inventory item for example, yet I see arguments that it is too ...
0 votes
1 answer
871 views

Unity baked light messes up a set of objects

On a few objects I use a technique where instead of using geometry, I place planes with a Cutout Material on top of each other, creating a 3D illusion with minimal cost. The thing is, it looks great ...

15 30 50 per page
1
2 3 4 5
1142