Top "2d" questions

2D computer graphics is the computer-based generation of digital images—mostly from two-dimensional models.

Python: One-liner to perform an operation upon elements in a 2d array (list of lists)?

I have a list of lists, each containing a different number of strings. I'd like to (efficiently) convert these all …

python arrays matrix 2d operation
How to know if a line intersects a plane in C#?

I have two points (a line segment) and a rectangle. I would like to know how to calculate if the …

c# geometry 2d computational-geometry
Why do 2D transformations need 3x3 matrices?

I want to do some 2D drawing and thus want to implement some matrix transformations. With my light mathematics background …

matrix 2d homogenous-transformation
How to read a .pgm image file in a 2D double array in C

The question is quite simple: How to read a .pgm image file into a 2D double array in C. I …

c arrays 2d double pgm
How to make a smooth camera follow algorithm?

I am making a game with LibGDX (Java). I need the camera to follow a fast moving character. The easiest …

java opengl 2d libgdx smooth-scrolling
2d Sprite Animations without using XNA or other third-party libraries

I want to create a simple game, similar to what can be created with RPG Maker. What I am primarily …

c# animation 2d sprite
Setting up a 2D view in Three.js

I'm new to three.js and am trying to set up what amounts to a 2D visualization (for an assortment …

javascript graphics three.js 2d perspectivecamera
Realistic 2D terrain map generation

I am looking for some algorithms which allow me to generate a realistic 2D terrain map. By realistic I mean …

2d generator terrain
Working with the coordinate system and game screen in Unity 2d?

So I've developed games in other platforms where the x/y coordinate system made sense to me. The top left …

unity3d 2d game-engine
Sprite and animation making tool for android game

I am new at Android game development. I want to know how can i create and Animate the game characters …

android graphics 2d