XNA Creators Club Online

sample details

Generated Geometry
Sample
submitted
2/19/2007

Description:

This sample shows how 3D models can be generated by code during the XNA Content Pipeline build process.

New For XNA Game Studio 3.1: This sample has been updated for Game Studio 3.1 to make use of the new automatic .xnb serialization mechanism. The ContentTypeWriter and ContentTypeReader helper classes used by previous versions of Game Studio are no longer required (although they still work the same way as before if they are included). If these helpers are not provided, the Content Pipeline will now automatically serialize custom data types using reflection. This sample has been simplified by removing the ContentTypeWriter and ContentTypeReader classes, as these are no longer required.


Sample Overview

The sample renders a simple terrain with a sky behind it. The input data consists entirely of textures: a height-field bitmap describing the terrain, and a sky bitmap. Custom content pipeline processors convert the height-field bitmap into geometry, and generate a skydome mesh for rendering the sky texture.

downloads
Framework

GS 3.0

Vertex Shader Version

VS 1.1

Pixel Shader Version

PS 1.1

Framework

GS 2.0

Vertex Shader Version

VS 1.1

Pixel Shader Version

PS 1.1

Framework

GS 3.1

Vertex Shader Version

VS 1.1

Pixel Shader Version

PS 1.1

var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG