Jump to content
  • Advertisement
Sign in to follow this  
DaWanderer

[.net] C# OpenGL BSP engine code

This topic is 4044 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

RipTorn has graciously hosted my code for a C# OpenGL BSP engine. You can download it from here. The game is a simple FPS that loads Quake 3 BSP files (probably not 100% correctly...). Only 2 weapons available (numeric keys 1 & 2) ;) The GameServer.msi installer will install the server program that will host a game session so multiple players can connect and fight against each other. There are a few different game types including a simple deathmatch mode, an item collecting contest, and a "marked man" mode where you have to be the marked man at the end of the round to win (you get marked by shooting the current marked man). This was my final project for my game programming class. I hope other will find the code useful in some way.

Share this post


Link to post
Share on other sites
Advertisement
That is pretty nice. I noticed you couldn't jump if you were on a slope though.

The code is interesting too, thanks alot for sharing :)

EDIT: Its seems like the GameSetup and ServerSetup Projects are missing.

Share this post


Link to post
Share on other sites
Quote:
Original post by Smit
Its seems like the GameSetup and ServerSetup Projects are missing.


Yeah, I had to cut out some of the files to make in under 10MB so I could send the file through GMail. I still have all the files, though.

There's also a cool bug that I found. Go to the giant columns outside (up the stairs) and jump against them while running; you'll run up them! My code for gravity and jumping tests to see if the difference between your current height and the next height is small enough. I set it to a certain threshold for the smooth incline in the middle of the stairs leading outside, but it apparently works for the columns since they're at a slight angle.

Share this post


Link to post
Share on other sites
Although the new Axiom is still in the process of being made independant from RealmForge, its BSP loader is available here. Any clue what the difference is between yours and Axiom's?

Share this post


Link to post
Share on other sites
the axiom loader is much more complex and has more features(shaders,patches?). but it is also integrated with axiom.

DaWanderers code is very easy to read and to understand and has few dependencies.

Share this post


Link to post
Share on other sites
Quote:
Original post by Rob Loach
Any clue what the difference is between yours and Axiom's?


I based mine off a series of tutorials I found on the web (I can't remember where now...). Perhaps my loader and Axiom's are similar if we used the same tutorials. In any case, if you want to "roll your own", it's good to have a few different perspectives.

I've also sent RipTorn the setup projects for the engine, so they should be part of the package soon if anyone is interested.

Share this post


Link to post
Share on other sites
Well, it's not Managed DirectX, but I guess it's gonna be an interesting piece of code to take a look at nevertheless. Many kudos for sharing it! [smile]

Share this post


Link to post
Share on other sites
Quote:
Original post by Rob Loach
Although the new Axiom is still in the process of being made independant from RealmForge, its BSP loader is available here. Any clue what the difference is between yours and Axiom's?


Thanks for pointing that out, it is awesome news indeed.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!