Saltar al contenido ForoHackers

Computer graphics: start here

Gráficos por computadora
#2975 · · Citar · Denunciar

Computer graphics is the craft of turning numbers into images: shapes, light and colour described in memory, then drawn on a screen or printed. It runs games, films, maps, interfaces and design tools. Under all of it sits geometry, linear algebra and a few clever ways of deciding which colour each pixel gets.

Key concepts

  • Transforms: translation, rotation and scale as matrices, chained to move a model from its own space to the screen.
  • Geometry: triangles and meshes, with vertices carrying positions, normals and texture coordinates.
  • The pipeline: vertices are transformed, assembled into triangles, turned into fragments, shaded and written to a frame buffer.
  • Colour and light: RGB, gamma, and a model of how surfaces reflect light.
  • Textures and sampling: images mapped onto surfaces, filtered to avoid shimmering and jagged edges.

Vocabulary

  • Pixel and fragment: a pixel is a dot on the screen; a fragment is a candidate pixel produced by drawing a triangle.
  • Depth buffer: a per-pixel record of the nearest surface, used to hide what is behind.
  • Rasterisation: finding the pixels a triangle covers.
  • Aliasing: stair-step artefacts from sampling a detailed scene on a coarse grid.

What to study, in order

  1. Vectors, dot and cross products, and matrices; rotate a 2D shape by hand.
  2. Draw a line and fill a triangle in plain code, writing pixels into an image file.
  3. Add a perspective camera and spin a wireframe cube.
  4. Add a depth buffer, per-pixel lighting and a texture.
  5. Load a mesh from a file and draw it with a graphics API such as OpenGL or Vulkan.

Related tags

#rendering #gpu #linear-algebra #game-development

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder