Difference between revisions of "Game Programming Class14"

esse quam videri
Jump to: navigation, search
Line 1: Line 1:
New deadline: must be installed by Monday the 11th.
Game Challenge
The games for XNA Arcade need to be in the folder by Weds the 13th.
Please take some time in class and make your sign and save it here
Place your projects @
* \\siam2\ClassFolders\XNAProgramming\Manifest\ForXbox\
* \\siam2\ClassFolders\XNAProgramming\Manifest\ForXNAArcade\
==Animation Tutorial==
==Animation Tutorial==

Revision as of 13:38, 3 May 2010


Game Challenge

Animation Tutorial

Mixing 2D and 3D

I forgot to show you last week that the Spritebatch draw code need to be modified slightly in order top mix 2D and 3D You need to use SaveStateMode.SaveSate if you don't explicitly order everything in your Draw code. Saving states can be SLOOWWWWW and significantly reduce your performance. More info on RenderStates

spriteBatch.Begin(SpriteBlendMode.AlphaBlend, SpriteSortMode.Deferred, SaveStateMode.SaveState);


The XNA basic effect is a simple implementation of a HLSL effect.

HLSL is Microsoft's High level implementation of FFE Fixed Function Pipeline implemented in video hardware.</p> GPU Hardware does two things. The vertex shader runs first and is rasterized to 2D, then the pixel shaders run.

  • Vertex Shader
  • Pixel Shader

Lighting Demo with Basic Effect IntroMeshLights.zip




Creators Club Non Realistic Render

Lighting basics

Per-pixel lighting




Skybox generator

Making Skyboxes