Hi everyone. I've just started with this dark basic thing, and I have a few questions. I've already gone through a bunch of tutorials and I have a pretty good feel for the language, but I'm having trouble finding information on texturing.
For one, I've made a model in Lightwave 3D and exported it as a 3ds object. The model contains texture information, and the texture is in the same folder as the model, but when I open it in darkBasic it only shows orange (the texture is of a brick wall). I tried applying the texture through darkBASIC itself instead of relying on the 3ds info, but the same thing is happening. So I thought to myself "could it be resolution?", I changed the image to the same res as the game, no dice.
Can anyone give me any help? (code below)
Also, how do I apply bump maps in dB?
sync on
sync rate 30
hide mouse
`Setup Player
make object cube 1,20
set object collision to boxes 1
`Setup Room
Load Object "C:\Documents and Settings\mike\Desktop\objects\bricks.3ds",2
set object collision to polygons 2
Xrotate object 2,-90
Scale object 2,500,500,500
position object 2,object position X(2)+20, (object position y(2) - 20), object position z(2)+20
`Load Texture
Load Image "C:\Documents and Settings\mike\Desktop\objects\brick2.bmp",1
Texture Object 2,1
do
SET CAMERA TO FOLLOW (object position X(1)), (object position Y(1)), (object position Z(1)), (object angle Y(1)), 50, 20, 20, 2
oldX# = object position X(1)
oldZ# = object position Z(1)
if Upkey()=1 then move object 1,5
if Downkey()=1 then move object 1,-5
if Rightkey()=1 then rotate object 1,0,wrapvalue(object angle Y(1) + 10),0
if Leftkey()=1 then rotate object 1,0,wrapvalue(object angle Y(1) - 10),0
If Object collision(1,0)>0 then position object 1,oldX#,0,oldZ#
`Sync Up
sync
loop