Originally Posted by
pstudio
That sounds great. However I would still like a speedup. It looks like the ship is going so sloooooooow
It doesn't have to affect gameplay. Just the visual.
Actually it WOULD affect gameplay - this is because the tunnel obstacles will come towards the ship faster
I think I will speed up the tunnel rate as the level difficulty increases though....thanks for the idea.
Originally Posted by
pstudio
I must say I'm surprised. I would have guessed that you were just faking it. No need for doing 3D transformations.
However I'm not experiencing any problems with the frame rate. My old laptop (2.2 GHz dual core and some ATI gfx card) gives me 61 fps and I'm assuming SVEngine is capping my fps.
If I have time, I will fake it myself to use less resources and not do the full OpenGL pipeline thingy...fake OpenGL does make it easier though I can do things easily like this just as I would using real OpenGL:
Code:
FGraphics3d.PushMatrix;
FGraphics3d.Translatef(cShipPosX,cShipPosY,cShipPosZ);
FGraphics3d.Rotatef(FShipAngleL,0,0,1);
// draw body
C := RGBA(0,255,0,255);
FGraphics3d.DrawLine3d(B1,B2,C,OnDrawGlowingLine);
FGraphics3d.DrawLine3d(B2,B3,C,OnDrawGlowingLine);
FGraphics3d.DrawLine3d(B3,B1,C,OnDrawGlowingLine);
FGraphics3d.DrawLine3d(B3,B4,C,OnDrawGlowingLine);
FGraphics3d.DrawLine3d(B4,B2,C,OnDrawGlowingLine);
<SNIP>
FGraphics3d.PopMatrix;
I am glad you are getting 61 FPS though! nice to know
cheers,
Paul
Bookmarks