Texturing a cube

Lazlo

New member
Joined
Mar 2, 2005
Messages
3
Hi

I trying to set the texture to a cube, but when I render it the box just gets the textures main color.

I use the following code to create and set the texture to the box


Code:
Mesh = Mesh.Box(Device, SizeX, SizeY, SizeZ) 

Texture = TextureLoader.FromFile(Device, CurDir() & "\Textures\" & TexturePath, 0, 0, 0, 0, Format.Unknown, Pool.Default, Filter.Linear, Filter.Linear, Color.Blue.ToArgb)
 
Back
Top