Try my new website: www.urcho.com - the new SIMPLE social network
blitz code snippets Sign up | 357 members | 125 snippets
Search for:

Username:
Password:


Terrain shadows by jfk EO-11110

[back]
Author: Archive | Viewed: 1195 times | Language: BlitzBasic 3D | Category: 3D Effects
Author Comments:
This is a method that is aligning a small terrain on a bigger terrain (like a towel) and takes an orthographic render from above the player. The small terrain will then be mapped with this render, so it becomes a shadowmap. This method is not object oriented and therefor its pretty fast. It expects all Objects to be indexed in certain arrays. People may combine their meshbased terrains with blitz terrains to make use of it. Currently it allows only one light, a miday sunlight. Sorry for the lot of globals, you will sort it :) Download with Media (1 heightmap image and 2 textures) from: www.melog.ch/dl/csp_bb_terrainshadow_05_1.zip
Login or create an account to comment on this snippet