A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: [show] realtime 3d / fake 3d (textured) engines

  1. #1
    383,890,620 polygons nGFX's Avatar
    Join Date
    Oct 2002
    Location
    Germany / Ruhrgebiet
    Posts
    901

    [beta] BattleTanks - 3d shooter

    hi there folks,

    long time no post ... but i did promise a new demo for the 3d engine i posted last year ... here it is:

    anyway,
    i rewrote the whole thing (so i think it is about 2-5 times faster than the previous version).
    i've added sprite support (for sprites with one direction and those with multiple directions)
    cam and object moving using offsets ("obj1.move(dx,dy,dz, rx,ry,rz)") calculating the direction of the movement vectors (dx, dy, dz) first.
    dynamic lighting (f***** slow) and backface culling.
    polygons (settings per poly) can be excluded from culling, can be drawn filled, not filled (wireframe), with or without outline.

    so you want to see it ?

    BattleTanks

    this is a demo for the main 3d engine. things working:
    VERY basic hittest (don't expect too much), basic cam tracking :
    the enemy tank moves towards the cam.
    move your tank using the cursor keys, you can fire using the control key (but you can't hit something)
    i personally like the way it looks using quallity="high", so i included 2 buttons (hi/lo) ... but hi is way too slow to be usefull.

    damn, i forgot one thing: i've added the the "mario kart" floor, to create the sense of movement.




    while working on the engine, i discovered the source of another 3d engine i wrote some time ago, so i decided to update this one, too (i don't know if i have posted this before).
    it uses most of the objects written for the engine above (except the polygon object, which is replaced with an object that supports textures (vector/bmp)).
    (and there is no perspective distortion )
    one thing, thought, there is no realtime here (don't expect flash to scale, rotate and move some 30+ movieclips (for the wall tiles) and do all the math fast enough) ...
    (although if you use just 10 faces or so, it should be fast enough)
    ok, the link ist here:

    Fake 3D, textured and tilebased

    (use numpad's + and - to rotate, and numpad's 1 to p to jump to prediefined directions. the green buttons to the left move the cam (pretty useless))


    sincerely <olli/>

    ps: post your machine and fps, please ....
    Last edited by nGFX; 01-13-2004 at 03:24 AM.

  2. #2
    .: Weirded Out :. The_Xell's Avatar
    Join Date
    Nov 2002
    Location
    Under the table and dreaming...
    Posts
    802
    for some reason its not loading properly. It stops at around 127 kb...

  3. #3
    Hype over content... Squize's Avatar
    Join Date
    Apr 2001
    Location
    Lost forever in a happy crowd...
    Posts
    5,926
    That's just getting better and better babe!

    Wow, this is a constructive post fps is a little bit more than your laptop @ 13 fps

    Squize.

  4. #4
    383,890,620 polygons nGFX's Avatar
    Join Date
    Oct 2002
    Location
    Germany / Ruhrgebiet
    Posts
    901
    @The_Xell:
    try a reload, seems to work for me ... if it still hangs, i'll upload it to another domain
    [edit] ... it seems that i know why it hangs at ~127k: it seems to be the place when flash loads the ground bmp (1024*1024) jpg and uncompresses it to memory.

    @Squize:
    thanx, i should make a 160*120 px version ... should run better then
    Last edited by nGFX; 01-12-2004 at 03:29 PM.

  5. #5
    Senior Member
    Join Date
    Sep 2001
    Location
    bleh
    Posts
    276
    hi ngfx:
    i am getting 25-30 fps..
    my cpu - amd 900
    well done mate..
    i will have a good look later..
    steve

  6. #6
    Yes we can tomsamson's Avatar
    Join Date
    Sep 2001
    Location
    Team Titan Secret Lair
    Posts
    4,666
    hey there olli,
    i´ve already told you your tank demo is impressive,now with that great background and moving ground its even better (the coolest side is that it runs the same speed on my machine as the last version i saw which didn´t have those features ).
    great work =)
    as it shows,the game is definately more for the fast pcs but for those,you could even pump it up more
    i get constant 26 fps (1.53ghz,several flash windows open at once).
    i´d love to see those tanks and walls textured
    (maybe have a look at ericlins tutes on texturing (see the link in the other 3d thread on the first page).
    and your other demo is cool,too,very smooth when rotating it,let me run around with that girl now =)

  7. #7
    Phantom Flasher... Markp.com's Avatar
    Join Date
    May 2000
    Posts
    16,034
    30fps on my amd 2.8ghz - nice Can you distroy the other tank at all?

  8. #8
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    Very nice indeed. ~22 fps on my 1.4 GHz AMD, 512Mb ram, latest flash plugin and Internet Explorer 6.

  9. #9
    Senior Member mr_shotgun_2000's Avatar
    Join Date
    Jun 2002
    Posts
    204
    thats AMAZING mate!
    i get about 29 fps constantly running it at high resolution, 2800+ AMD, 512 DDR, and too many applications running!

    how did you make the second engine???
    P.S.you've posted it before

  10. #10
    Manic
    Join Date
    Jan 2004
    Location
    Denmark
    Posts
    154
    Very nice engine, how many MC's does the fake 3d ground use?

  11. #11
    383,890,620 polygons nGFX's Avatar
    Join Date
    Oct 2002
    Location
    Germany / Ruhrgebiet
    Posts
    901
    ...

    mr_shotgun_2000:
    ~mhm, short explanation: just some skewed MCs ...
    not so short : it uses the same method as the rotating textured cube mentioned in the other (great) 3d engine thread (started by Q-Rious) and i think i've seen the fla in the movie section ...
    (more to come, if there is some interest, i can try to explain it in more detail)

    Q-Rious:
    i think you mean the one used in the BattleTanks demo?
    35, distance scaled.

    for the fake 3d : just one.

    thx again, <olli/>
    Last edited by nGFX; 01-13-2004 at 05:34 PM.

  12. #12
    Senior Member mr_shotgun_2000's Avatar
    Join Date
    Jun 2002
    Posts
    204
    I'm all for the explanation mate!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center