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.

learn more… | top users | synonyms

5
votes
4answers
778 views

How does a wow server handle which player position to set to each nearest players?

I already understood how game developers could create very large game levels, bypassing the floating point precision limit. This was my very first mind boggling question, and I understood it when I ...
3
votes
1answer
1k views

Generating spherical world from heightmapped terrain

I am using a standard heightmapped procedural terrain in my project. However, I want the terrain to appear spherical when the user zooms out. This is an attempt to simulate the appearance of a ...
1
vote
1answer
924 views

Scaling and new coordinates based off screen resolution

I'm trying to deal with different resolutions on Android devices. Say I have a sprite at X,Y and dimensions W,H. I understand how to properly scale the width and heigh dimensions depending on the ...
2
votes
2answers
895 views

Converting from different handedness coordinate systems

I am currently porting a demo from XNA to DirectX which, as I understand it, both have coordinate systems with different handednesses. What are the things I need to bare in mind when converting ...
2
votes
2answers
157 views

Transition Player Position

I'm currently working on a Java MMO with a pretty solid start, but I've come across an issue I need a little help with. I'm working on player positions. Meaning their X/Y on the screen, if the ...
3
votes
3answers
649 views

What are heterogeneous coordinate systems and reasons for using them?

The book I'm following for a computer graphics course only talks about homogeneous coordinate systems. But today, our teacher asked: What are the reasons for using heterogeneous coordinate ...
1
vote
3answers
126 views

Finding which side one point is from another point

I have a simple question I think, if point a is to the right of another point I a dirx to be 1, otherwise -1. Likewise for a diry var, if it's above the other point I want it to be -1 otherwise 1. ...
2
votes
2answers
3k views

gluLookAt vs glTranslate + glRotate and camera transformation matrices

I'm getting my hands dirty in OpenGL and something is bothering me a bit. It's my understanding from reading about the subject that a call to gluLookAt basically multiplies a matrix on the stack that ...
1
vote
2answers
745 views

How do i get the X,Y and Z of the way my unit is facing?

I have the yaw and pitch of my unit at my disposal, I know if I use polar to cartesian conversion I'll get the X and Y of each one of those two, but I need them combined to give me the x,y and z of ...
3
votes
3answers
717 views

Spot the difference game design help

I'm thinking of making a spot the difference game. But immediately I stumbled over a problem. I'm thinking of storing a "difference area" in the form of a x,y coordinate. However, because on a ...
6
votes
1answer
7k views

Blender - exporting .obj with texture coords

I'm writing a game which uses obj files. I created an object in blender and I applied texture without UV coordinates and my question is: how to export this object to obj file, but with texture ...
3
votes
2answers
455 views

Path-finding algorithms for Polar coordinate based maze?

Following on from my question about moving a sprite in a circle, assuming that you have a maze which is shaped like a a set of circles with holes in them and barriers between them. Location of a ...
3
votes
1answer
536 views

How do you get an object to orbit around a certain point on a 2d plane?

I had a concept for a game come to me this morning but I can't figure out how I'd go about implementing the movement. The general idea involves the left and right controls causing a sprite to go ...
3
votes
2answers
3k views

HTML5 canvas screen to isometric coordinate conversion

I am trying to create an isometric game using HTML5 canvas, but don't know how to convert HTML5 canvas screen coordinates to isometric coordinates. My code now is: var mouseX = 0; var mouseY = 0; ...
2
votes
1answer
169 views

Integration of homogenous wave

I have a 2D matrix; each of its elements describes a homogenous coordinate in 3D wave (the values of wave coordinates are changed in time). The wave rendering is done with texture. I need to make an ...
6
votes
3answers
3k views

Left-Hand and Right-Hand Coordinate Systems

In Blender and other 3D modeling tools, the coordinate system is right-handed, while in Unity 3D and Orbiter Space Flight Simulator, they are left-handed, why this could happen? Why they don't simply ...
3
votes
1answer
152 views

Coordinate based travel through multi-line path over elapsed time

I have implemented A* Path finding to decide the course of a sprite through multiple waypoints. I have done this for point A to point B locations but am having trouble with multiple waypoints, because ...
1
vote
1answer
274 views

What to do to UV coordinates, when swapping Z/Y coordinates (axis) of the geometry?

In my Maxscript exporter I have the ability to flip the Z/Y axis by simply swapping the Z and Y co-ordinates. When swapping the axis this way, what is the correct thing to do to the UV coordinates? ...
-1
votes
1answer
1k views

Isometric screen to 3D world coordinates efficiently

Been having a difficult time transforming 2D screen coordinates to 3D isometric space. This is the situation where I am working in 3D but I have an orthographic camera. Then my camera is positioned at ...
2
votes
1answer
3k views

Converting 3D coordinates to 2D and back?

I'm wondering if there is a simple way to convert 3D coordinates to 2D coordinates. Also, if it's possible, to convert in the reverse direction. I'm using OpenGL(GLUT) in my C++ project. I am also ...
5
votes
4answers
272 views

detecting the coordinates where a bullet hits a mesh

I have a lot of complex objects in a scene and I'm looking for an efficient way to find which object a fired bullet hits, and to find the hit coordinates. It would be best if there was a lightweight ...
1
vote
1answer
166 views

Is there a memory read/write or performance difference when applying affine transformations on a movieclip rather basic elementary math

I am using Actionscript 3.0 to make games and I fall into the category of programmers who use ball.x+=5; ball.y+=5; in order to move a ball by 5 pixels horizontally and vertically. Well, now i seem ...
1
vote
1answer
145 views

Degrees to Coordinates

Hey, I'm creating my second game ever, but this time - using Java. Before I used Pascal and CRT module! =D It's 2D game where you need to drag the ball with mouse from location A to location B. Right ...
2
votes
1answer
523 views

What are the texture coordinates for a tetrahedron

EDIT This is the WebGL code for initializing the tetrahedron points. You may want to skip to the second code block, because you may be able to answer without this. //Making a tetrahedron with ...
2
votes
2answers
416 views

Swapping axis labels between 2D and 3D coordinates

My game world is 3D. The map is only 2D, however. It is natural to think of the map as having an X and Y axis. And it is natural to think of the world has having an X, Y and Z axis, where Y is ...
9
votes
2answers
710 views

Half-Life 2 BSP Lightmaps

I'm writing a BSP viewer for a university project. So far I have the main geometry loaded properly, and the PVS working. Now I'm trying to apply the lightmaps, but I can't seem to get the texture ...
1
vote
2answers
465 views

Rotating coordinate system

Lets say that you want to rotate simple cube around fixed point in center. Is it possible to use such coordinate system, that you need to use only sine and cosine in order to rotate? I have done ...
1
vote
3answers
516 views

Starting off with coordinate systems [closed]

Where is a good place to start with learning how to program custom coordinate systems in a 3d environment? Are there any good books on he topic of gaming coordinate systems? I would like to build a ...
1
vote
1answer
1k views

Converting to and from local and world 3D coordinate spaces?

I've been following a guide I found here (http://knol.google.com/k/matrices-for-3d-applications-view-transformation) on constructing a matrix that will allow me to 3D coordinates to an object's local ...
2
votes
5answers
1k views

Converting 2D coordinates from multiple viewpoints into 3D coordinates

Here's the situation. I've got a set of 2D coordinates that specify a point on an image. These 2D coordinates relate to an event that happened in a 3D space (video game). I have 5 images with the ...
4
votes
1answer
629 views

Most efficient way to handle coordinate maps in Java

I have a rectangular tile-based layout. It's your typical Cartesian system. I would like to have a single class that handles two lookup styles Get me the set of players at position X,Y Get me the ...
5
votes
1answer
472 views

Calculate the Z of a line intersection given the XY coordinates?

I'm intersecting a line in 2D and I calculate the X,Y coordinates of the intersection point. What I need is the Z of the intersection point given the X,Y,Z of the line points, and the X,Y of the ...
1
vote
1answer
302 views

3d environments and managing them on iOS

I would like to start learning 3d game development and currently only develop 2d games. A few basic questions I am interested in are: What is used to create the 3d environments? Are they all done in ...
6
votes
5answers
4k views

Changing coordinate system from Z-up to Y-up

Blender's coordinate system is different from what I'm used to, in that Z points upwards instead of Y. What would be the simplest way of converting all the world data (so that all animations, texture ...
3
votes
1answer
966 views

Ray-plane intersection to find the Z of the intersecting point

I have a rectangle in 3d space (p1, p2, p3, p4) and when the mouse rolls over it I need to calculate the exact Z of the point on the rect, given the mouse coordinates (x, y). Would a Ray-plane ...
4
votes
1answer
1k views

Obtaining a world point from a screen point with an orthographic projection

I assumed this was a straightforward problem but it has been plaguing me for days. I am creating a 2D game with an orthographic camera. I am using a 3D camera rather than just hacking it because I ...
5
votes
3answers
4k views

Why / how does XNA's right-handed coordinate system effect anything if you can specify near/far Z values?

I am told repeatedly that XNA Game Studio uses a right-handed coordinate system, and I understand the difference between a right-handed and left-handed coordinate system. But given that you can use a ...
5
votes
2answers
1k views

Coordinates from 3DS Max to XNA 3.5

My problem is this. I have a simple box made in 3DS Max 2009, the Box is 10x10x10. I've tried to load it on XNA and traslate the camera for 15 units, but I can seem to find the values needed to see ...
5
votes
1answer
573 views

Tile coordinates

Simple question I have here. Say my tile map is based on 32x32 tiles for an 800x600 image so let's say 25 tiles across and 19 down. So now I have that cell 0 of any row contains the first 0-31 ...
2
votes
1answer
349 views

Why isn't my world coordinate mapping back to the proper local coordinate?

I'm using XNA and am having a simple issue which I can't figure out. I'm just messing around and want to get a firm grasp of local/world space coordinates. Matrix rotateCharacter= ...
5
votes
3answers
597 views

Is there any algorithm for creating 3D lightning?

Is there any algorithm for generating lightning? Lets say, you input the starting and ending coordinates (x,y,z) and out comes an array of coordinates to show where the lightning goes. It doesn't have ...
19
votes
4answers
5k views

How to deal with differences between 2D screen coordinates and Cartesian coordinates

Most 2D screen/bitmap coordinate systems have the positive Y axis pointing down (with the the origin in the upper left corner). This is counter to how most people think geometrically with the ...