All Questions
54,926
questions
1
vote
1
answer
154
views
In C#, is there any performance reason to implement ECS?
The formal ECS specification was developed to address gaming in a JavaScript environment.
In any C# translation, this implies all of the classes' members must be public.
My concern is that too many ...
1
vote
1
answer
50
views
What am I doing wrong with this BC7 reading?
I need to import a BCn image without any existing libraries. Thus, I have to write my own reader. This has gone fairly well so far for BCs 1-5 (don't need BC6), but now BC7 is causing a problem.
As ...
0
votes
1
answer
49
views
Idiomatic Way to Create Card Instances in Unity
I'm extremely new to Unity, and I'm trying to figure out if this design makes sense. I'm creating a card game in which multiple instances of the same card will exist. I'm trying to determine if the &...
0
votes
1
answer
41
views
Detecting whether sprite is outside the camera's view
I want to detect when the game object is not visible anymore.
I search for the size of the SpriteRenderer, and convert it to screen space. Then, I check if the ...
0
votes
0
answers
26
views
Is there any good way to get the current player's speed or player object in minecraft forge 1.19.2
I am making a mod that tells you your current speed on the screen. My current issue is how to get the speed.
My attempt consists of my knowledge that the ...
0
votes
1
answer
86
views
Would it be okay to try to reverse engineer Spore as an experiment and publish the results on-line?
Game in question is Spore. I'm fascinated by space and this game has been my favorite for years.
Now, I would try to reverse engineer as much as I can as an experiment because I am interested in ...
0
votes
0
answers
30
views
Edge Shader in UE5 with Triplanar Mapping
I am designing a LEGO brick shader in UE5 and wanted to add a scratch normal map to it. But I only want that scratch normal map to apply to where there is an edge to a mesh. The material uses ...
3
votes
1
answer
182
views
How do I implement HP bar using OpenGL?
I got simple hp bar container from open game art, rendered the texture and now I am wondering how to fill it and change the amount of filling.
I decided to render red rectangle over the container and ...
1
vote
0
answers
49
views
Raycasting floor/ceiling textures sliding
I'm writing a raycasting engine in C++ and SFML.
I have the wall texturing done and I'm trying to get floor and ceiling texturing right.
I almost got it but the textures are "sliding" when ...
0
votes
1
answer
21
views
After adding a new Assembly File the "Volume" class is no longer found
I added a new assembly file to a folder containing my Unity scripts. After setting the Assembly Definition References all Classes of other assemblies are found except ...
0
votes
1
answer
46
views
I cannot see my whole substance painter in any window
I cant really say anything else about it, every time I launch the program now, regardless of how, my windows show up like so:
0
votes
1
answer
37
views
How do I find the gradient of a noise value which has been re-evaluated on a curve
I have a function Evaluate(), which is used to remap a noise value based on a curve/spline to make the noise more interesting. There are 3 inputs: the noise value ...
0
votes
0
answers
46
views
Procedural placement of objects with constraints
I need to procedurally place some objects on a 2D plane based on constraints like:
Two objects should not be placed on the same line.
On specific object should always be placed on the border of the ...
0
votes
0
answers
44
views
Which is better to use C# and Shader to move textures?
We could use C# code Material.SetTextureOffset to move a texture, and ShaderGraph can do the same by Time and ...
0
votes
0
answers
49
views
Screen Space Reflections bug in OpenGL
I tried to implement screen space reflections in my OpenGL project using a raytracing algorithm. But something is wrong in it.
Here's a video of the visual results so far.
As you see, when I try to ...
0
votes
1
answer
49
views
1
vote
1
answer
50
views
How to instantly break method call?
I'm making 2d Mobile game using JavaScript.
I have method that controls every character (Dumb AI) on battleground. It using recursion to call another action. I want to add debuff system and had little ...
0
votes
0
answers
73
views
Why is the player being pushed backwards when shooting bullets?
I am trying to get a player to be able to shoot bullets, but it causes the player to push backwards and the bullets don't correctly work. The bullets shoot, but then the bullets will only disappear ...
0
votes
0
answers
31
views
Can't load the textures when using Mac's .app format with stb_image & OpenGL
When I test the game, I run the game with $./main, it loads the textures and everything is fine.
However, when I put the executable in MacOS's Apps folder and the ...
1
vote
1
answer
91
views
How to properly port 30 FPS physics with integers to 60 FPS and maybe floats?
I've inherited a code base in which everything is coded to run at 30 FPS and uses integers.
I would like to upgrade the frame rate to 60 FPS, naturally I thought about using floats but it ain't that ...
0
votes
1
answer
26
views
"An ID3D12Resource object is referenced by GPU operations in-flight on Command Queue": When Should I Create my Buffers?
When trying to re-create my vertex buffers, my app crashes and I get this error:
D3D12 ERROR: ID3D12Resource2::: CORRUPTION: An ID3D12Resource object (0x000001DDEBA98FC0:'Vertex Buffer Default ...
0
votes
0
answers
26
views
How do I send data from client to server using LiteNetLib
I started with the example client and server from here and modified the client to send a response back to the server... which never arrives. What am I doing wrong? How do I do this?
Server:
...
0
votes
1
answer
89
views
Replace Input.GetKey(KeyCode.Mouse0) with New Input System
I was implementing the new Input system for my game, when I saw that I still had a script in my player that wouldnt allow me to start the scene, because the script still operated with the old input ...
0
votes
1
answer
23
views
How to implement "Auto Generate Animation" and "Visualize" buttons in custom Button inspector?
I extended the Button class with my own variables. I also had to create an Editor script since Unity manually draws the Button's fields into the Inspector. I just need to know what the functions that ...
0
votes
1
answer
49
views
What transformation is occuring in Unity to the child with a sprite renderer, when adjusting the parent's z scale?
When I adjust the child's z scale, nothing happens normally. but the parent makes the child appear stretched
UPDATE: Here are my examples
This is the child inside of the scaled parent.
And this is ...
0
votes
1
answer
66
views
What is the process of making a chracter creator like black desert in godot/unity?
example
I get the point of switching heads or other body part models as long as they are all attached to the same bones then the animations will work, but what about changing the color of lips, ...
0
votes
1
answer
133
views
Changing GameObject Position with the new InputSystem Unity 2D
I am making a little top-down 2D RPG right now and I'm struggling with the range of my attacks. The problem is that my range is stuck on the right side of my player. This is of course really annoying, ...
2
votes
1
answer
133
views
How to abstract VAO as a class in c++
I read the khronos docs on Vertex Array Objects, and it says that VAOs do not copy any data but refer to VBOs and EBOs/IBOs. So i created an abstraction class vbo which creates a vertex buffer from a ...
0
votes
1
answer
35
views
Player goes through obstacles with colliders
My Player just goes through stuff he actually shouldnt be able to go trough like enemies or map borders, which all have collider components attached to them.
It's really annoying because I haven't ...
-1
votes
1
answer
22
views
Cube moving in a laggy way
The movement on its own works perfectly fine, the problem is just that when I move diagonal, then the cube (the Player) is kinda lagging around and you can see its pixels moving to the edges of it. ...
0
votes
1
answer
69
views
How to make laser made by line renderer get a effect of continuous damage?
I tried to implement a way of laser attacking. the character will shoot a laser implemented by the line renderer. the laser can detect an enemy using raycast hit, but it seems can only damage once. ...
0
votes
0
answers
47
views
Is FFXV's LOD system similar to Unreal Nanite's LOD system?
I was reading this article and it seems the LOD system in FFXV is similar in that the texture is not swapped, but the number of polygons changes depending on the distance. Is Nanite the same, or is it ...
0
votes
0
answers
89
views
In Bevy ECS, what is a good way to have entities reference each other?
I am wondering if there is a better way than storing the entity ID. For the sake of example, let's assume I have a world with many entities who implement the component Name. Every x amount of time I ...
0
votes
0
answers
31
views
How to play animation clips (.anim files) through a script (without Animator, Animation Controller)
I'm making a custom sprite-based animation system.
basically an "animation component" (legacy) with more features.
I want to create my animations within the Unity animation window, which ...
0
votes
2
answers
144
views
How to deal damage every 2 seconds while enemy is touching the player, rather than every frame?
I have made an up and down movement RPG prototype and I wanted to have a fighting system.
I made it so that the enemy follows the player and that I get damage every time he collides with me. The ...
0
votes
1
answer
37
views
How can I calculate the translation used for rotating an object with a quaternion in Unity, to use for OpenGL?
In Unity, whenever I rotate an object, it also performs a translation. If I simply try to draw a quad with the quaternion used in Unity, it appears off because of that missing translation unity ...
0
votes
1
answer
23
views
I can only access the latest instantiated clone. The script only works with the latest instance
I tried to implement a way of attacking. Fire the spear, then retract it. Just like Thor's hammer. But when I fire multiple spears, I can only retract the latest fired one. I don't know what the ...
0
votes
0
answers
57
views
Unity AssetBundle extraction
I'm not sure if it is the right site to question since asset extraction is not a development. If it's inappropriate here please tell.
I'm trying to extract to inspect assets from a game for Android. ...
0
votes
0
answers
14
views
Find which tiles are intersected between two points on an isometric tilemap [duplicate]
I need to be able to find out which tiles are intersected when a line is drawn between two points.
I'm currently working with a isometric perspective which makes things a little more complicated.
I've ...
0
votes
1
answer
89
views
Detect collision occurring on a parent CharacterController from a child object
I'm creating an audio script for my character and it changes the sounds based on the textures it is walking on.
Said character uses a Character Controller component from Unity and I thought of using ...
0
votes
0
answers
59
views
Accumulating strategic resources in Civ5
I want to change the way Civ5 handles resources.
In Civ5 if you have 8 Iron sites worked then you have 8 Iron resource in total. If you build 1 swordsman you now have 7 Iron resource.
What I want to ...
0
votes
2
answers
37
views
How to change from gameplay camera to menu camera when colliding with a game object?
I want to know how to change which camera is outputting to the screen when colliding with another game object in Unity.
I'm making platformer, and at the end of the level I want to switch from the ...
0
votes
1
answer
36
views
AStar taking care of collisions for a rectangle
How can I explore a path with A* (or another) by taking care of a rectangle collision ?
I have a 2d map, where I know for each coordinate if it is an obstacle :
For example, dark tiles are not ...
0
votes
0
answers
19
views
Tessellation Shader is not correctly detecting the camera's position
I am working on developing a LOD for spherical objects in my game, but the tessellation shader is not correctly tessellating the sphere relative to the camera's position. The near faces of the sphere ...
0
votes
1
answer
25
views
Easing curve, find next position given current position and delta time?
I'm want to animate an object using an ease out curve, where it moves fast at time alpha = 0 and slow at alpha = 1 from position ...
0
votes
0
answers
28
views
Convert 3 2D-curves to a 3D-curve and How to calculate weight value of the animation curve in Unity?
I have 3 Hermite curves, including a position at the x, y, and z axes controlled by tangent and weight values. I knew that it is a 2D curve. now I can calculate the tangent from 1st derivative, but ...
0
votes
0
answers
31
views
Need help replicating this unity transformation in raylib [duplicate]
i was hoping i could get some advice on a transformation im trying to perform on some billboards. i have a billboard in 3d space thats being rotated a long the view matrix's up + right axis, against a ...
0
votes
1
answer
41
views
0
votes
1
answer
71
views
How do you upload an AudioClip to a server in Unity?
My current approach is to take an AudioClip, turn it into a byte array, then put it into an UploadHandler, attached to a UnityWebRequest, to send a POST request to a server.
Right now, when I pass ...
0
votes
0
answers
27
views
A* on a pong game model [duplicate]
I am doing this project a pong game(in c#) where one paddle is a ball reactive AI and other should be A* AI with max 0.05s think time.
I have made a ball tracking reactive AI but I dont know how to go ...