Hovercraft program

This is a discussion on Hovercraft program within the Game Programming forums, part of the General Programming Boards category; Hey guys. I really don't have time to be programming these days. This first semester at my new school has ...

  1. #1

    Join Date
    May 2005
    Posts
    1,041

    Hovercraft program

    Hey guys.

    I really don't have time to be programming these days. This first semester at my new school has been, well, hell. I could very easily modify this to make a simple game, something similar to that Hovertank 3D thing on gamingdl.com, but I just don't have the time, and quite honestly my life priorities have changed a lot in the past few years.

    What i've uploaded is just a basic playable test map. You spawn at a spawn point determined in the editor. You drive a hovercraft around using these controls:

    -a/d strafe
    -Up arrow = forward
    -Up + right arrow = forward while turning
    -right arrow= turn in place

    etc

    The hovercraft is quite difficult to control as I have not added skirt friction which would slow it down. If you start to topple over/spin wildly out of control, hit the 'T' key as this will kill all of your momentum. Hit the 'R' key to kill the momentum of the dummy hovercraft.

    The craft has 4 thrusters: 2 port 2 starboard, one set is for strafing the other is for forward/backward and rotation.

    When you start, you will have to rotate in place to your left to see the dummy hovercraft, rotate to your right to see the pits/ramps/wall. You CAN fall off of the cliff into the abyss, so be careful.

    The sim. runs at 100 physics frames per second (graphics frames can be less than or equal to that).

    The model files, .ntmdl, are my own internal format, converted from a .ms3d file. Trying to open it with anything simply will not work, afaik, unless it happens to be identical to some other format (which is actually somewhat possible).

    The test map has a pit with ramps and a jump over a crevasse. It also has a wall you can bounce into. I've included just enough resources (models, textures, and map files) to run this map with this binary. Trying it with aniything else will likely fail. I cannot guarantee that this program won't format your hard drive or install porn on your system.

    The physics is very complicated, it's the fluid mechanics for a hovercraft embedded in an RK4 solver, with body-body impulses and friction, and body to world impulses with friction (linear and angular friction by the way).

    I'm extending the software to less-graphical and more scientific/mathematical fluid mechanics, instead of turning it into a computer game. Right now, the physics is very accurate, but not something that could really be used for testing real vehicles...I'd like to have it be used for testing and designing real vehicles (or at least have the knowledge to be able to do so).

    ihatenature.thejefffiles.com/hover.zip
    Last edited by BobMcGee123; 12-19-2006 at 09:28 AM.
    I'm not immature, I'm refined in the opposite direction.

  2. #2
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Totally neato Bob, but can we change the camera view? I :wub: 3rd person in driving type thingies.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  3. #3

    Join Date
    May 2005
    Posts
    1,041
    no, you can't, and I don't feel like doing it.
    I'm not immature, I'm refined in the opposite direction.

  4. #4
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Okies. Now let me ask something silly: what are the chances of the non-physics part of the source being released?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  5. #5

    Join Date
    May 2005
    Posts
    1,041
    What would you want to see?
    I'm not immature, I'm refined in the opposite direction.

  6. #6
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    The GL and possibly vector math stuff.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  7. #7

    Join Date
    May 2005
    Posts
    1,041
    pic 3 folders you'd want to see and I'll think about it.
    Attached Images Attached Images  
    I'm not immature, I'm refined in the opposite direction.

  8. #8
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    You're so good to me

    Renderer
    Player
    Math
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  9. #9
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    <offtopic> did you take all those regiment pics? </offtopic>
    EDIT: Nevermind - just looked at 32.jpg
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  10. #10
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Out of pure interest I just tried loading a BSP that I made for HL2, using Valve Hammer. Unsurprisingly, it didn't work.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  11. #11
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    I'm assuming it's for windows?

    Also Bob, you should also post this in the "Post your games Here" thread for safe keeping

  12. #12

    Join Date
    May 2005
    Posts
    1,041
    You're so good to me

    Renderer
    Player
    Math
    You got it:
    ihatenature.thejefffiles.com/CodeRequested

    I'm assuming it's for windows?

    Also Bob, you should also post this in the "Post your games Here" thread for safe keeping
    Yes, Windows only, sorry.

    Good idea.

    <offtopic> did you take all those regiment pics? </offtopic>
    EDIT: Nevermind - just looked at 32.jpg
    I'm not immature, I'm refined in the opposite direction.

  13. #13
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Awesome, thanks a lot mate!
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  14. #14
    Registered User IdioticCreation's Avatar
    Join Date
    Nov 2006
    Location
    Lurking about
    Posts
    229
    Hey,

    When it asked for the BSP file I selected presentation map and it returned this error:
    "LoadBSP: Could Not Load File: ?"

    Maybe I'm just stupid. I'm using Windows XP (sp 2)

  15. #15

    Join Date
    May 2005
    Posts
    1,041
    Umm, did you unzip everything first? I really have no clue what could be causing that. I've never had that error happen to me.

    I just re-checked over the code, and the *only* way I can possibly see that happening is that somehow you've actually chosen the wrong file.
    I'm not immature, I'm refined in the opposite direction.

Page 1 of 3 123 LastLast
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Issue with program that's calling a function and has a loop
    By tigerfansince84 in forum C++ Programming
    Replies: 9
    Last Post: 11-12-2008, 01:38 PM
  2. Need help with a program, theres something in it for you
    By engstudent363 in forum C Programming
    Replies: 1
    Last Post: 02-29-2008, 01:41 PM
  3. Replies: 4
    Last Post: 02-21-2008, 10:39 AM
  4. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 11:04 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21