Questions tagged [coordinates]
Numeric representation of the location of an entity in the game space. There are multiple forms of coordinate systems to cater to a variety of methods to map position.
353 questions
0
votes
0
answers
56
views
GPU-friendly coordinates for hyperbolic geometry
Perspective Euclidean rendering makes use of the W coordinates in a 4-component vector by recording distance information into it and let GPU do the scaling/normalization.
Hyperbolic and non-Euclidean ...
2
votes
0
answers
68
views
How to convert a quaternion to another coordinate system where y and z are inverted?
I have quaternion representing a camera pose in a coordinate space called "World Frame 2":
x+ = right
y+ = up
z+ = out
...and I want to convert it to another space called "World Frame ...
0
votes
0
answers
53
views
OpenTK (C# OpenGL) Coordinate mistake
I am trying to make a 2D renderer using OpenTK and I am having trouble with the coordinate system. I have followed an opengl sprite tutorial and the Size vector is ...
1
vote
0
answers
206
views
Converting a Transform from Unity's Coordinate System to Unreal Engine's
I am trying to convert a transform from the Unity Coordinate System to the Unreal Engine Coordinate System (and others).
Ideally, I want to take a position, rotation (in Euler angles), and a scale as ...
0
votes
0
answers
61
views
Physics in a wrapped world
I'm working on a 2D game that takes places in a wrapped, toroidal world. Having implemented dynamic chunk loading and unloading in this setting, and a camera, I'm beginning to dread the idea of ...
0
votes
1
answer
125
views
3D-lighting considerations
I'm considering how a graphics-engine lights any given environment, at the level of code.
So I guess perhaps the simplest way to light a scene is just to provide a Value-figure (i.e. Value as in the ...
0
votes
3
answers
374
views
How do large physics based games (space engineers) deal with coordinates
I have recently been looking into physics engines and low level computing. At some point id like to make my own engine down the road.
Something I can't seem to find an aswer for is how physics based ...
0
votes
1
answer
192
views
How to live on sphere?
What I want to achieve
I want to generate sphere planet world, seamless of course, for RTS game like Planetary Annihilation: TITANS, which means I want:
place walking agents on sphere, move them on a ...
1
vote
0
answers
154
views
How to use screen space coordinate of the mouse to set a model position in game?
I'm trying to make a movement system in my game where you click the mouse and your model moves towards where you clicked on the landscape, my understanding is the normalized screen coords go from [-1,...
1
vote
1
answer
145
views
Mouse coordinates to world space offsetting?
so i'm trying to make a mouse to world space function, and I seem to always end up with the rays cast offsetting.
I've looked at numerous tutorials, tried numerous examples. Tried with ...
0
votes
1
answer
67
views
Which coordinates should I use to generate a 2D lightmap properly?
Recently I noticed that my 2D lightmap rendering has an issue - lighted area is getting rendered as far from the actual light source as the world coordinate of the light source grows. E.g. when world ...
1
vote
1
answer
164
views
remaking Pong in Godot but the opponent AI cannot locate the ball's coordinate correctly
I'm following a detailed YouTube tutorial on remaking Pong in Godot 3.0 but I have ran into an issue regarding the way the AI opponent reacts to the incoming ball, what's happening is that the ...
0
votes
0
answers
107
views
Isometric building system and coordinate calculation
I am a Unity newbie and trying to implement a simple building system in a prototype of the game.
The scenario is:
Clcik on the UI Button
Move the coursor to the desired position
Click left mouse ...
0
votes
1
answer
208
views
Normalized coordinates not translating to screen coordinates the way I need them to
I am making a simple game in C# using pictureboxes. I want to move a picturebox on a form. Once this picturebox is placed in a new location, I normalize its X,Y coordinates between [0, 1] and then ...
0
votes
1
answer
65
views
Checking if I am looking through a window using angles
I am developing a mod for a game with a Lua api.
I am trying to detect if I am looking through from behind a window when I shoot an enemy. For context, when I shoot through this window I apply a ...