Project PLASMA FPS 2004: Thread 3

Blitz3D Forums/Blitz3D Programming/Project PLASMA FPS 2004: Thread 3

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.

Ruz,

The demo does not move the character. When I attempt to do so the character moves backwards so I have to inverse the z value.

To better illustrate, when the camera and entity are moving in the same direction, with the bot positioned slightly ahead of the camera, you see the front of the bot, when you should see the rear.
;modified RedBron Demo
Graphics3D 800,600,16,2

SetBuffer BackBuffer()

redguy=LoadAnimMesh( "scifiguy.b3d" )
redguywalk=ExtractAnimSeq (redguy,0,18);sequence 1
redguystill=ExtractAnimSeq (redguy,19,19);sequence 1

campivot=CreatePivot()
PositionEntity campivot,0,0,0

camera=CreateCamera(campivot)
PositionEntity camera,0,10,-6

light=CreateLight()

For loop =  1 To 100
cube=CreateCube()
PositionEntity cube,Rnd(-50,50),0,Rnd(100)
EntityColor cube,Rnd(255),Rnd(255),Rnd(255)
Next

AmbientLight 220,220,200

ScaleEntity redguy, .1,.1,.1
PositionEntity redguy, 0,0,0
EntityShininess redguy,1

;If KeyDown(50)

Animate redguy,1,.4,1
;EndIf

While Not KeyHit(1)


PointEntity camera,redguy  
         
MoveEntity campivot,0,0,.1
    
MoveEntity redguy,0,0,.1

UpdateWorld()

RenderWorld()

Flip

Wend
End
As far as performance goes they perform well ~75fps until I turn distance checks which drop the frame below 20%. No optimizations have been made.

PS: I also toyed with the textures and came up with some pretty spooky ones hehe. Ruz, great work!