I am trying to load a track and walls which I have created in 3DS format along with the fighter craft which comes with Blitz3D. All I want to do is spin the craft above the track for testing ideas.
For some reason the fighter loads perfectly but the track will not display.
I have tried rotating the track (hell even tried SPINNING IT) but it will not show for some reason. I know it must be there as the ship cuts into it as it spins, but there is nothing visable.
The code looks like this:
Graphics3D 800,600
SetBuffer BackBuffer()
camera=CreateCamera()
CameraViewport camera,0,0,600,800
PositionEntity (camera,0,100,-1000)
light=CreateLight()
PositionEntity (light,0,10,-10)
track=LoadMesh ("TestTrack1a.3ds")
walls=LoadMesh ("TestTrack1b.3ds")
ship=LoadMesh ("fighter.3ds")
;PositionEntity track,0,0,0
;PositionEntity walls,0,0,0
RotateEntity track,0,0,-90
RotateEntity walls,0,0,-90
PositionEntity ship,0,0,0
While Not KeyHit(1)
TurnEntity ship,.4,.5,.6
; TurnEntity track,.5,.6,.4
UpdateWorld
RenderWorld
Text 320,500,"Roating car"
Flip
Wend
End
I would put links for the track files on here but I can see no way of adding a hyperlink into this mesage :(
If anyone has any ideas I would REALLY appriecate it.
Thanks
Max
For some reason the fighter loads perfectly but the track will not display.
I have tried rotating the track (hell even tried SPINNING IT) but it will not show for some reason. I know it must be there as the ship cuts into it as it spins, but there is nothing visable.
The code looks like this:
Graphics3D 800,600
SetBuffer BackBuffer()
camera=CreateCamera()
CameraViewport camera,0,0,600,800
PositionEntity (camera,0,100,-1000)
light=CreateLight()
PositionEntity (light,0,10,-10)
track=LoadMesh ("TestTrack1a.3ds")
walls=LoadMesh ("TestTrack1b.3ds")
ship=LoadMesh ("fighter.3ds")
;PositionEntity track,0,0,0
;PositionEntity walls,0,0,0
RotateEntity track,0,0,-90
RotateEntity walls,0,0,-90
PositionEntity ship,0,0,0
While Not KeyHit(1)
TurnEntity ship,.4,.5,.6
; TurnEntity track,.5,.6,.4
UpdateWorld
RenderWorld
Text 320,500,"Roating car"
Flip
Wend
End
I would put links for the track files on here but I can see no way of adding a hyperlink into this mesage :(
If anyone has any ideas I would REALLY appriecate it.
Thanks
Max