Would you know how to create a dash line that moves towards the direction of the target, and if it collides with a wall, goes to the opposite angle? I have seen atan2 but I am not sure what it does, ...

Why there is a model-view matrix, but not a view-projection matrix?
A view-projection matrix would make much more sense to me, since every entity in the scene has his own position and therefore its ...

I am creating a real time animation of tori (toruses), and I've run into a problem where at certain angles of my tori, the geometry is twisting up where it should remain straight.
Here is an animated ...

So, I'm interested in building a Transform class similar to the one used in Unity Engine, but in C++. My intent is for it to be user-friendly to change the position, rotation, and scale of a variable ...

I've been programming off and on for a few years, and have made several 2d games in java. (I also know c# and a bit of c++).
I was wondering where I should start off for rendering 3D scenes in java ...

I am trying to understand the basics of normal mapping using this tutorial : http://ogldev.atspace.co.uk/www/tutorial26/tutorial26.html
What I don't get there is the following equation :
E1 = ( U1 - ...

I am writing a function that extrudes a 2D shape along a 3D spline, as found in 3D modeling software.
I need a way of translating a set of points P so that they all lie in a new plane L (preserving ...

I want to create a 3 dimensional car game. But i have a problem in moving a car in other directions and accelerating.
I have a car model and a road model placed appropriately. To move car forward, I ...

I understand that typical path algorithms are based on nodes in a graph (not tiled nodes or whatever), but i can't get my head around to find an idea how to implement a path finding algorithm for a ...

What is the simplest way to programmatically calculate difference between two points in a 3D game environment?
I am trying to sort a list of light sources by how close they are to an entity, so that ...

I'm making a 2D game with pads and balls, sort of like Pong, in Unity 4.6.1. The calculations, however, won't be (very) Unity-specific. The pads are going to appear in various rotations, and therefore ...

I'd to calculate the cartesian rotate values of "aiming" one point at another in 3D space.
For example, assuming rotation order of XYZ:
Point A is at [0, 0, 0]
Point B is at [2, 2, 0]
If point A was ...

I want to implement the marching cubes algorithm from scratch, but I'm stuck at the polygon generation phase (building edge loops with correct orientation and triangulating them).
Obviously, I should ...

I have 2D-points, which boundaries depict a polygon. The points are at integer positions (no fractions possible).
Now I want to build an enumerator in C# that returns all points that are inside the ...

Given the worldspace coordinates of a collection of arbitrarily positioned objects, how do I translate them while preserving their relative placement? For instance, I have a table and a few bowls that ...

For Dual Contouring, I need to calculate the precise intersection '(zero-crossing point') of any line ('segment', 'ray') with the given isosurface ('distance field', 'density source').
The algorithm ...

I am trying to represent a 3d cone light's direction using only 2 variables. Right now I represent it with two points (6 variables) but I know that the direction in 3d space can be represented by two ...

I am taking a course in computergraphics and we talk a lot about OpenGL and the math you need to do everything OpenGL does "by hand". A Question which was asked in an old exam (I am preparing at the ...