70 likes | 190 Views
Chapter 12 - Combining Images for Better Visual Effects. Presenter: Mark Rae. Three Main Segments. Animating 2D Sprites Animating Textures for 3D Objects Multitexturing. Animating 2D Sprites. Sprite images contain 2 or more frames Only one is shown at a time
E N D
Chapter 12 - Combining Images for Better Visual Effects Presenter: Mark Rae
Three Main Segments • Animating 2D Sprites • Animating Textures for 3D Objects • Multitexturing
Animating 2D Sprites • Sprite images contain 2 or more frames • Only one is shown at a time • Frames within the sprite are shown sequentially • Think flip-books • Useful in 3D games for making HUDs • examples: radar, compass or map
Animating Textures for 3D Objects • Same concept as sprites, just applied to textures • Image still has multiple frames • Cycles through them only showing one at a time
Multitexturing • Layering images on top of one another • Instead of switching between frames, we stack them • Conceptually similar to filters in Photoshop • Layers can be animated to move separately • Book uses this to simulate water • Involves index buffers (ch.11) • Has undergone significant changes from XNA 3.1 to 4.0 • I wasn't able to get this to work
Excellent Resources • http://nelxon.com/resources/xna-3-1-to-xna-4-0-cheatsheet/