Loading BSPs

Blitz3D Forums/Blitz3D Programming/Loading BSPs

Nexic(Posted 2005) [#1]
I'm trying to load a BSP made in Valve's hammer editor for half-life 1. I am using the following code:

Graphics3D 640,480

cam = CreateCamera()
CameraRange cam, 0.1,2000

level=LoadBSP( "main.bsp",.8 ) ; load a 'legal' quake3 bsp map
BSPAmbientLight level, 0,255,0 ; make the ambient light green
;BSPLighting level, False ; uncomment this line to turn lightmap off

While Not KeyDown(1) ; if ESCAPE pressed then exit
RenderWorld:Flip

Wend

End

However I keep getting "entity does not exist". I thought it may be because it's textures were not in the same directory as it says in the help. I copied the WAD files from the valve directory and it still doesn't work.

Can someone help me out here?


GitTech(Posted 2005) [#2]
AFAIK, Blitz3D only uses Quake 3 BSPs.


_PJ_(Posted 2005) [#3]
I think it's possible to export the .map files, then import these into "BSP Factory" (I THINK) to create Blitz-useable BSPs.
Somehow I managed (just playing around) to convert a Counter Strike map to Blitzable BSP just to see what I could do with it all.

Check this out too:
http://www.blitzbasic.com/Community/posts.php?topic=37078
http://www.blitzbasic.com/Community/posts.php?topic=37851

I cant find my own thread on this matter (typical)