BSP Help

A place for all things OpenMoHAA

Moderator: OpenMoHAA developers

Post Reply
DeadlyDan
Private
Posts: 9
Joined: Sat Mar 22, 2008 9:28 pm

BSP Help

Post by DeadlyDan »

Hey guys,

I've been interested in delving into different types of BSPs lately. And with the help of your work so far i managed to write a Q3A BSP loader in C#.

Basically, i'm not too experienced in the actual rendering side. I've delved into the basics of rendering 2d quads and such but i'm not sure how to approach the rendering side.

Any help you could give me is greatly appreciated, i'm trying to expand my experience, i've also looked into loading CoD1 BSPs and MoH:AA since i found some information on the format itsself.

I've managed to load the binary data directly into structs just like C++, i wasn't sure if it was possible at first since the nature of C#.

I'm hoping that once i finish the Q3A BSP stuff i can adapt it to MoH:AA. Here is the source code so far, you can use it if you like i've just been exploring it myself. I'm not the best at programming but i do try:

http://pastebin.com/f4edb0ffc

I also tried in C++ to load a MoH:AA BSP. I'm only loading very basic stuff and i'm no where near as skilled as you guys. Here's me using billboards to display vertex positions of Southern France. See if you recognise it :P

Image
wombat23
Sergeant
Posts: 54
Joined: Wed Feb 06, 2008 6:48 pm
Location: Zürich, CH

Post by wombat23 »

SF my favourite map.. wouldn't have recognised it from the picture though :oops:

pretty cool you're trying to understand the BSP format. i'm sure you're going to learn much
tourist-tam
Lance Corporal
Posts: 18
Joined: Wed Apr 16, 2008 12:18 pm
Location: Edinburgh, Scotland

Post by tourist-tam »

Pretty cool. :)

Have been think about doing the same thing for a long time, but for that I would have had to pull my finger out .... :S

anyway, I am curious to see how you are getting on with this.

Tam
DeadlyDan
Private
Posts: 9
Joined: Sat Mar 22, 2008 9:28 pm

Post by DeadlyDan »

I've revisted this after a long time of being baffled by it. It now seems so simple.

I've rewrote pretty much all the code and i'm using SlimDX (Direct3D in C#) with shaders etc.

Here is my current progress, i'm now working on loading in the lightmaps and textures :)

Image
DeadlyDan
Private
Posts: 9
Joined: Sat Mar 22, 2008 9:28 pm

Post by DeadlyDan »

Since my last post i've made substancial progress, i'm loading all the shaders, skybox, fog, lightmaps and fonts.

Image
Post Reply