terrain multitexturing

Blitz3D Forums/Blitz3D Programming/terrain multitexturing

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

the following code gives me a completely black terrain. do you think i may have exported my alpha maps wrong, or does it really matter since they are black and white?

	lightmap=LoadTexture("lmap.bmp")
	ScaleTexture lightmap,512,512
	TextureBlend lightmap,2

	detailmap=LoadTexture("Detail00.png")
	ScaleTexture detailmap,2,2
	TextureBlend detailmap,2
	
	rock=LoadTexture("Rock02.png")
	ScaleTexture rock,5,5
	
	rockAmap=LoadTexture("rock.png",1)
	ScaleTexture rockAmap,512,512
	TextureBlend rockAmap,2
	
	sand=LoadTexture("Sand00.png")
	ScaleTexture sand,5,5
	
	sandAmap=LoadTexture("sand.tga",1)
	ScaleTexture sandAmap,512,512
	TextureBlend sandAmap,2

	EntityTexture terr,lightmap,0,0
	EntityTexture terr,detailmap,0,1

	EntityTexture terr,rock,0,2
	EntityTexture terr,rockAmap,0,3

	EntityTexture terr,sand,0,4
	EntityTexture terr,sandAmap,0,5