Page 1 of 1

BSP Help

Posted: Sat Nov 21, 2009 1:56 am
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

Posted: Sat Nov 28, 2009 1:05 pm
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

Posted: Sat Jan 30, 2010 3:59 am
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

Posted: Tue Nov 02, 2010 7:33 am
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

Posted: Thu Nov 04, 2010 3:31 am
by DeadlyDan
Since my last post i've made substancial progress, i'm loading all the shaders, skybox, fog, lightmaps and fonts.

Image