Some video games use 2D textures instead of 3D models to save work/space. However, these textures seem to rotate so they are always facing the camera. Why?

627 views
0

Some video games use 2D textures instead of 3D models to save work/space. However, these textures seem to rotate so they are always facing the camera. Why?

In: Technology

They rotate so u don’t see that it is flat. Just little tricks developers do to make things look somewhat normal. This trick usually works best for round textures like a ball or cylinder.

Get a piece of paper, and draw a little tree on it. Now, look at it. It looks like a tree.

Now, rotate the paper so that you’re facing the edge. The tree doesn’t look like a tree anymore, it looks like a flat line.

In order for the tree to remain a proper tree, it has to face you at all times. The same is true for panels with 2D textures on them: in order for them to look nice they need to face the camera, otherwise they just look like someone pasted a flat image in to the world.

those textures are just drawn on the screen at the position and size of the object. They don’t rotate at all, the rotation is an optical illusion because everything else rotates, but not the texture.

its the definition of a Sprite

they are done like that so that you as the player dont see them as flat objects regardless of vieing angle, they will always be perpdendicular to your viewpoint

the Original Doom is the best example of this actually, all enemies and pickups in the game world are actually 2 spirtes that will always face you

You’re actually thinking of it backwards. Those 2D textures *don’t* rotate: they’re always drawn flat on the screen. It’s the 3D models that rotate based on your position and the direction they’re facing.