Results 1 to 10 of 16

Thread: Cave flying technique

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Cave flying technique

    I want to show a technique i used in this video (using my nxPascal):
    http://www.youtube.com/watch?v=0BrFwCob8xI

    Commonly it is believed that manipulating hardware accelerated graphics in pixel level is slow. Therefore a whole genre of "caveflying" games were forgotten for years.

    I'm using OpenGL's framebuffer object extension. To make explosion hole in map texture, i'm drawing a black circle through framebuffer. Using substractive filter it is able to remove alpha channel from that part of the texture. For collisions there is a separate boolean array so i don't have to read from texture at any point.

    If i set to full timer mode at Sleep(1), i'm getting 800-1200 fps while using 1680x1050 resolution, and while firing button is held down. Removing sleep(), makes fps go above 4000 but also giving frightening noises from my monitor... I mean this technique is extremely fast for this.

    Attached Files Attached Files
    Last edited by User137; 04-09-2011 at 06:56 AM. Reason: New file for water demo

  2. #2
    that is pretty cool indeed!

    Any chance of sharing some source code?

    cheers,
    Paul

  3. #3
    Co-Founder / PGD Elder WILL's Avatar
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    6,107
    Blog Entries
    25
    That's impressive! I'd love to have a tutorial on how to do that here on PGD or in the next issue of Pascal Gamer Magazine.
    Jason McMillen
    Pascal Game Development
    Co-Founder





  4. #4
    Looks good and +1 for sharing code
    Imagine I've written something clever here inspiring you to make something awesome. If that happens give me credits

  5. #5

  6. #6
    PGD Staff / News Reporter phibermon's Avatar
    Join Date
    Sep 2009
    Location
    England
    Posts
    524
    Excellent effect! there are all kinds of ways of using this in a game, worms of course springs to mind

    Love it! what graphics card was used in the example video? Would you say that the CPU bound checks on the boolean array were the limiting factor?

    (and are you sure that the noise you're hearing at high framerates is coming from your monitor and not the voltage regulators on the motherboard/GPU? it's a high pitched 'screech' like you get when you turn on old Tv's right? despite the high frame-rate numbers, the monitors refresh rate will not vary)
    Last edited by phibermon; 09-08-2011 at 01:07 PM.
    When the moon hits your eye like a big pizza pie - that's an extinction level impact event.

Bookmarks

Posting Permissions

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