I'm trying to load various 3d files (.dbo exported from 3dws and a .x exported from 3ds max), however when I import it, it doesn't display all the surfaces correctly and makes some invisible, I don't know why this is happening. I'm hoping it's something easily solvable. I've attached a screenie and heres my code:
rem | Global Vars
PlayerSpeed = 12
CanJump = 1
CanJumpB = 1
GravitStr = 200
Sensitivity# = 0.5
PlayerJumpVelocity = 0
CameraAngleX# = 0
CameraAngleY# = 0
CameraAngleZ# = 0
SET WINDOW ON
input "Please enter a map filename to load: ";map$
input "Please enter map scale: ";cScale$
scale = val(cScale$)
input "Please enter X pos:"; cX$
mX = val(cX$)
input "Please enter Y pos:"; cY$
mY = val(cY$)
input "Please enter Z pos:"; cZ$
mZ = val(cZ$)
print "Loading World.."
rem | loads map
load object map$, 1 : scale object 1, scale, scale, scale : position object 1, mX, mY, mZ
rem | make player object
make object cube 2, 5 : position object 2, 0, 10, 0 : hide object 2
rem | load player gun
load object "HandGun.x", 3 : set object collision off 3
rem | Make camera
make camera 1 : set current camera 1 : position camera 1, (object position x(2)), (object position y (2)), (object position z (2)) : set camera range 1, 0, 15000
rem | Set ambient lighting
set ambient light 200
sync on
sync rate 60
do
text 0, 0, str$(screen fps())
inc CameraAngleX#, mousemovey()
inc CameraAngleY#, mousemovex()
rotate camera 1, CameraAngleX#, CameraAngleY#, 0
sync
loop
wait key
(in case its not clear in the screen shot, the pistols surfaces are transparent and various surfaces on the map are also invisible)
any help would be great. thanks in advance =)