Advertisement Jump to content
  • Advertisement
Desert sands
© CAVEMAN (C) 2000-2013 Rockland Software Productions
Image Tools

Desert sands

Norman Barrows
Sign in to follow this  

Sand terrain. 4 tiled seamless texture maps, and practically no moirre' patterns!


distance scale in the game is 1 foot = 1 d3d unit.


terrain is drawn in 300x300 chunks. a chunk is a list of all the terrain textures in a 300x300 area, and for each texture, a list of all the meshes that use it. all textures are 256x256, and a matra of one texture per mesh is used. chunks are genrated on the fly as needed. 10-20 (can't recall offhand) chunks are cached in memory with LRU replacement.


the ground mesh is actually 4 meshes, one for each ground texture tile. a world map determines the heighmap function and texture set used. a "pattern map" determines the texture ID of a given quad. a 10x10 ground quad is heightmapped, moved to its location in the chunk, and added to the static VB and static IB for that ground texture's mesh. once all 4 meshes are generated, their textues and meshes are added to the chunk.


when a chunk is drawn, the game simply cycles through the list of textures, setting each one, then drawing all its meshes, then moving on to the next texture. each mesh get a frustum cull, then gets sent off to directx for drawing. at this time, no sorting on mesh ID or nearest to farthest is done.


this method is required to allow a large (2500x2500) mile seamless world that can change at any time by random events in the simulation or by player actions.


this is all done with just textures and one light in fixed function. no shaders, no multi-texturing, no tex blending, nothing fancy (yet! <g>).


© CAVEMAN (C) 2000-2013 Rockland Software Productions
Sign in to follow this  
From the album:


  • 68 images
  • 2 image comments

Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement

Important Information

By using, you agree to our community Guidelines, Terms of Use, and Privacy Policy. is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!