All Questions

Filter by
Sorted by
Tagged with
3 votes
1 answer
32 views

Compiling Unity to WebGL gives a Node ESM module error

I'm trying to build my multiplayer game to WebGL in Unity (using Mirror). However, when I press "build", it gives me the following three errors: ...
kalilamodow's user avatar
0 votes
0 answers
35 views

Why do my shaders render differently in the simulator?

I am using simple shaders on the cards in my game. The shader is assigned as a material to a white image the covers the whole card. They render as intended in the scene view, but do not in IOS ...
Devin's user avatar
  • 1
0 votes
2 answers
612 views

What’s the benefit of breaking code down into other classes? [closed]

Sorry if this isn’t the proper spot to ask, but something I struggle to wrap my head around is the benefit of breaking down code into smaller pieces on the surface it seems to make sense I think you ...
Konjointed's user avatar
0 votes
0 answers
44 views

Unity Audio plays with 5-10 second delay

I have wanted to make something like a rhythm game for Android in Unity, and for that I needed to write an audio manager to play my songs and sound effects in-game. I have followed Brackeys' tutorial ...
CheckerT's user avatar
0 votes
1 answer
63 views

Why are my angle calculations not working properly?

I am using this code: ...
Stan's user avatar
  • 3
0 votes
2 answers
37 views

How to correctly add animation for a rotating object with Script?

I have the following structure of my Turret: The Body rotates by Y and Head rotating by X via script to a target, I have created simple Idle animation for turret which rotate Body and Head. The ...
Jabka's user avatar
  • 1
0 votes
3 answers
54 views

Reduce processing time of image to shape

I'm making a simple game engine using Java and have found a major issue. To create accurate collision detection I decided to convert a transparent image into a ...
Grinding For Reputation's user avatar
0 votes
0 answers
32 views

custom metronome is not consistent

In Unity 2022.3.12f1, I made a metronome. Here is a minimal working example: ...
jules's user avatar
  • 1
0 votes
2 answers
88 views

Kinematic "dive bomb" motion toward a moving target

Context: infinite runner, stationary player, obstacles move toward player. I have an asteroid that currently Vector3.MoveTowards a moving target e.g. a "rubble&...
David Fox's user avatar
  • 123
1 vote
0 answers
23 views

What would be a good way to interface a voxel octree to commit multiple changes at once?

I am creating a voxel game that uses octrees for storage. The implementation details are not super relevant, but the entire octree is ordered and contiguous in memory and each branch can be merged and ...
CPlus's user avatar
  • 143
0 votes
1 answer
46 views

What is the best way to create a location in Blender or Unity? [closed]

I am new to this, and the task before me was to create a laboratory location. Here I have a question, what is the best way to implement this? I've heard about Unity ProBuilder, but I've also heard the ...
Stavr's user avatar
  • 3
0 votes
1 answer
19 views

How to remove a shader (or material) from a particle system in Unity?

I bought a Unity asset that has a particle system that displays many small cubes flying around. Then, the creator of this particle system add their own shader (or material) at the end of the particle ...
Job_September_2020's user avatar
0 votes
0 answers
29 views

How to make an authoritative server initialize 3 cards once 2 "Clients" join

I somewhat understand [Command], [ClientRpc], and [TargetRpc]. However, I am currently struggling to determine how to get my SetupInitialHand() method to run. When called from the same area that ...
SmileyTheMimic's user avatar
1 vote
1 answer
56 views

Tiled Map in Unity is Darker than in Tiled Editor

I have a problem rendering a Tiled Map in Unity (.tmx format): the Tiled Map is darker in Unity than in Tiled Editor. I tried to change properties but got same ...
Resorter's user avatar
0 votes
1 answer
32 views

Lower Near Clipping Plane

I've searched everywhere and can't really find a good answer... Even with my near clipping plane set to 0.01 the objects are clipping too close. Tried to get a view where you can see it clipping a ...
Mashimaro7's user avatar
1 vote
0 answers
46 views

Pros and cons of caching uniforms

I am using LWJGL, and I have a ShaderProgram class that abstracts a GPU shader. I have a bindUniform(int location, Object value) ...
Eilan Laken's user avatar
0 votes
0 answers
41 views

Building a game in Unity with Python OpenCV and MediaPipe

In Python, I have OpenCV and MediaPipe for the hand tracking controls for the Unity, and I want to build the game without opening the PyCharm to read the hand. Is there any way to build the project ...
Hans Balea's user avatar
3 votes
2 answers
207 views

How do you effectively induce "berserk" player behaviour?

I have recently been wondering, how can you "induce player behaviour" in a video game An example of what I am thinking of is when a player uses an ability like "rage" or "...
AussieNote's user avatar
1 vote
0 answers
16 views

Voice SDK does not work on the Quest but does in Unity editor

I am making a VR game for the quest with Unity and for a trial I have a microphone with a button that you have to press and say a specific phrase. For that I am using the Voice SDK but I have a ...
Alejandro's user avatar
1 vote
1 answer
55 views

I want to change the direction of my platform from z direction to y direction alternatively

So basically, I want my platform to move first on the z axis from start position to end position, and then from ...
Ken's user avatar
  • 13
0 votes
0 answers
25 views

Suspension vector direction of a raycast vehicle

I'm working on a raycast-based vehicle in a 3D world using a physics engine. It's basically a chassis object that contains a transform (translation, rotation, scale), a dynamic rigid body (with mass, ...
Splo's user avatar
  • 736
5 votes
1 answer
765 views

How to make an authoritative server assign turn order numbers to players once they join?

I'm having trouble developing and understanding Server code. Currently, I'm trying to have each person that joins the Server be given a single digit ID that can then be used for determining turn order ...
SmileyTheMimic's user avatar
1 vote
1 answer
55 views

Sobotka's AgX in Godot 4?

Is it possible to use a custom OCIO called AgX in Godot 4? Has anyone ever tried something like this and succeeded?
ThetaJones's user avatar
0 votes
1 answer
25 views

Set Textures DX12

...
black4's user avatar
  • 175
2 votes
1 answer
81 views

Skill Class design : How to deal with multiple criteria

I'm planning to make a Class for RPG game's character skill. But the problem is that the skills need to be classified by multiple criteria. Below are the criteria for skills. Independent / dependent ...
evol1102's user avatar
2 votes
1 answer
96 views

How to Develop Card Combat System/Manager

I'm looking for some guidance on how to develop a card combat system similar to Legends of RuneTerra auto combat. I'm a bit lost on how to get the proper card info from each drop zone (5 each player) ...
SmileyTheMimic's user avatar
0 votes
1 answer
41 views

Mouse Ray Picking: Z-Coordinate of Projected vector (glm::unproject)

I've run into a curious issue when implementing ray picking in my game engine. It seems the Z coordinate of the Projected matrix has to be ever so slightly more than ...
Josh McCord's user avatar
1 vote
1 answer
79 views

Does OpenGL have any automatic texture interpolation?

An image of a minecraft grass block in gimp: Loading from a texture atlas in OpenGL, gives a much blurrier image: I know that the actual image in my glfw window is larger than it is in gimp. (...
bbqribs's user avatar
  • 13
0 votes
0 answers
48 views

What settings on light components actually work in Rec Room Studio?

In experimenting around with the Rendering settings for a spotlight, I've discovered that the Culling Mask does not actually apply when a room is built. Despite the ...
Echoleta's user avatar
  • 143
0 votes
0 answers
31 views

How to add a toon / cel shader to a URP 3D project?

I'm new to Unity and I've been frustrated for the last 5 days. I'm trying to apply a toon / cel shader to my object which I've imported from Blender. It already has a default material called ...
cak3_lover's user avatar
0 votes
0 answers
31 views

Low AdMob impression number in a newly released app

I posted a new game to the Play Store using AdMob. Currently I have about 1000 ad requests but only 25 impressions. Could it be because it is a newly released application? I only have interstitial and ...
CIOC's user avatar
  • 135
0 votes
0 answers
44 views

How do client anti-cheats prevent mock reports?

I'm mostly thinking about Riot's Vanguard and (what I think Valve does) with different bait memory addresses. How do these anti-cheat systems actually verify that if a packet is sent that it is ...
Aidan's user avatar
  • 101
1 vote
0 answers
31 views

How to pass two RenderBuffers into one RenderTexture?

I have a Unity URP project and in the Scriptable Render Pipeline, I would like to create a RenderTexture and pass the depth and color buffer of the camera object as ...
Fox1942's user avatar
  • 121
-1 votes
1 answer
42 views

Shader compilation error

This is the begin of my vertex shader code: ...
black4's user avatar
  • 175
0 votes
0 answers
30 views

I updated my Unity, now prefab overrides are no longer bold. Is there a way to have this back?

I updated from Unity 2021 to 2023.2.14f and it seems that Unity now marks a property overridden only with a thin blue line at the edge of the inspector. However in the previous version they were also ...
Tudvari's user avatar
  • 731
1 vote
0 answers
24 views

Issue with Bullet3 contact points on triangle edges

I'm trying to build a character controller using Bullet3 with OpenGL. I currently have a kinematic body that uses a Ghost body to get all the manifold contacts. The issue I'm facing is in the ...
Aaron Z's user avatar
  • 43
0 votes
0 answers
29 views

Does the Rec Room Studio Performance Explorer account for static batching?

The Performance Explorer in Rec Room studio appears to be doing the naive calculation for draw calls where it just adds up unique materials on unique meshes. In the above image, all of the meshes ...
Echoleta's user avatar
  • 143
0 votes
0 answers
30 views

Collision between a sprite and a rect in PyGame

I'm trying to make a simple platformer game, which has code to move the camera towards a player as they jump around. Now I have two classes: one for the player, and one for the platform. In the ...
Divyansh undley's user avatar
2 votes
0 answers
68 views

How to choose the normal for collision?

Here two objects collide and I use impulse to calculate the velocity after the collision. But because there are two objects, there are two normals. Calculating impulse only requires one normal. My ...
noodle_run's user avatar
2 votes
1 answer
96 views

Why do you use logarithmic curve to fix distortion of texture?

I'm a noob shader learner, and I came across this question about animated shaders in Unity: Animated textures for models; How to write a shader? After reading the answer, I kind of understood the ...
V.R.S's user avatar
  • 23
0 votes
0 answers
10 views

How to make an .fbx file's Avatar into a separate prefab?

Editor version: Unity 2021.3.21f I've got a default Mixamo Y-bot .fbx, which was changed to allow for specific animations. In the Unity Editor, I created/defined an Avatar from the model. I need to ...
Chad Chaddington's user avatar
2 votes
1 answer
71 views

Pin object to the end of a rope

I'm trying to make a cool simulation where a rope swings with an object attached to its end. I've set up the rope using Verlet integration and used Hooke's law to attach the object. But here's the ...
Ainsley Harriott's user avatar
1 vote
1 answer
39 views

In Godot, how do I reposition the center of my mesh?

When importing a Unity package to Godot via Unidot importer, I noticed that a few imported models have their child rotations and transformations off-center from their expected points. For example, ...
needoriginalname's user avatar
0 votes
2 answers
52 views

400 errors for half my tiles in Map Tiles API

I have this error below for about half of my tiles (see screenshot). What can be wrong. It used to work just fine. I haven't made any edit related to the API to my scene. From my understanding, the ...
samuelnihoul's user avatar
0 votes
0 answers
38 views

I got some wierd bug while building TMX files in Monogame

Today I tried to implement tilemaps to my game that I'm developing on Monogame. Those tilemaps were created by using Tiled map editor. For implementing my tilemaps I used Monogame Extended. I ...
Code Watermelon's user avatar
2 votes
2 answers
116 views

Turn a 2D array into a 3D map

I have a C# script that creates a random 2D array that is a map for a cave system. Sample Map: ...
AndyD273's user avatar
  • 131
1 vote
0 answers
61 views

How to avoid/reduce code duplication in asset loading/caching with templates?

I'm working on an asset manager for my game engine, and I'm a bit stumped on how to use templates (and potentially inheritance) to reduce some code duplication. An asset requires 4 things: a container,...
Konjointed's user avatar
0 votes
0 answers
33 views

How to move a Rigidbody forward using Bullet Physics

I'm currently developing a character controller for my game framework, and I'm utilizing the Bullet Physics engine for the physics simulation. In the process of adjusting the velocity, I aim to enable ...
Wagner Andreas's user avatar
3 votes
0 answers
44 views

What are all the special naming conventions that Unity considers in the asset importer?

Scanning through some Unity documentation, it's apparent that the Unity Asset Importing workflow has some built-in special behaviors that are triggered by asset naming conventions. For instance, with ...
Echoleta's user avatar
  • 143
0 votes
0 answers
41 views

Scrolling camera with a tile map stored in JSON and PNG

I'm trying to get a scrolling camera into my SDL2 game and I'd like some advice. The way I'm implementing my map is as follows: I use a tileset to build a map in the Tiled map editor, and I'm ...
Derek Kwon's user avatar

15 30 50 per page