sprite rendering
DESCRIPTION
A presentation on the basics of 3D render systems and their application to 2D sprite rendering.TRANSCRIPT
Sprite Rendering
Games, Interaction and Robotics 2011
The Game Loop
Process Input
Update World
Render
Synthesis vs Analysis
Model Image
ComputerGraphics
ComputerVision
Rendering Steps
• A virtual scene is described, usually in terms of 3D surfaces in mathematical form.
• A virtual camera is positioned and oriented to produce the desired view of the scene.
• Various light sources are defined.
• The visual properties of the surfaces in the scene are described.
• The render equation is solved.
Chapter 10. Game Engine Architecture, 2009, A K Peters, Ltd.
Triangle Meshes
An example of a polygon mesh. Chrschn, 2007.
Texture Mapping
A depiction of how UV-Mapping works, showing the classic example of mapping a globe. Drawing by TSchmits, 2008.
3D Projection
Principle of the geometrical perspective projection. Drawing by Joachim Baecker, 2005.
Coordinate Systems
Handedness cartesian coordinate system in 3D. Gustavb, 2006.
Left-Handed Right-Handed
What’s in a Sprite?
What’s in a Sprite?
Transformation Matrix
Transformation Matrix
Transformation Matrix
Transformation Matrix
Composite Transformation
Orthographic Projection
• Projection lines orthogonal to projection plane.
• Distance to viewpoint does not decrease apparent size of object.
Rendering Sprites
Bibliography
1. Game Engine Architecture, Jason Gregory, 2009, A K Peters, Ltd.
2. OpenGL® Programming Guide: The Official Guide to Learning OpenGL®, Version 2.1, 6th Edition, 2007, Addison-Wesley Professional