Importer for Quake 1 BSP level files. Can import level geometry and textures into the scene. #35778

Closed
opened 2013-06-16 13:59:02 +02:00 by Andrew Palmer · 11 comments

Project: Blender Extensions
Tracker: Py Scripts Upload
Blender: 2.57
Category: Import Export
Script name: Quake BSP Importer
Author(s): Andrew Palmer
Status: Open

%%%-- Quake 1 BSP Importer for Blender --
by Andrew Palmer 2013.06 (Quake was released in 1996.06, so I'm a bit late)

Usage -------------------------------------------------------------------------

  1. Extract to blender scripts/addons/
  2. In user settings go to addons and enable 'Import-Export: Import Quake BSP format'
  3. from the File menu, select import>Quake BSP (.bsp)
  4. Choose a valid Quake 1 .bsp file
  5. Assuming everything worked, your scene should contain all the models in the bsp,
 though you may need to move/rotate the camera to see them.

Tips --------------------------------------------------------------------------
You might not be able to see textures, even if the viewport is in textured mode.
To fix this, press 'n' with the cursor in the viewport to open an options panel
on the right. In here, expand the display options and set shading to 'GLSL'.

Everything might be black if there is no Lamp object in the scene. To fix this,
either set the existing lamp to Hemi, or add a new hemisphere lamp (Add>Lamp>Hemi).

The textures will probably look like hell since they are very small by modern
standards and filtering destroys them. To see the map with nearest (non-filtered)
texturing, open the 'System' tab in Blender User Preferences (ctrl+alt+u) and
uncheck 'Mipmaps'.

History -----------------------------------------------------------------------
0.0.3

  • added scale option (scale geometry on import)
  • added create materials option (use textures from the bsp to create and assign materials)
  • added worldspawn only option (import just the main map geometry, not doors, triggers etc.)
    0.0.2
  • now imports textures from the bsp as materials
  • uvs and materials are applied to faces
    0.0.1
  • import bsp imports all models in a bsp file as objects in a blender scene

Known bugs --------------------------------------------------------------------
Due to my own lack of knowledge of Python and the Blender scene hierarchy, this script
is very slow. On large maps expect it to take a few minutes. This is something I may
improve in a future release.

  • texture name lookup for each face is stupid
  • there is probably a more efficient way to extract the mesh to memory
  • too much fudging the vert and uv lists to get them to look right

I also heard that it doesn't work properly with Blender for Mac. I have no idea
why. If someone sends me a free Macbook, I can probably fix it ;)%%%

**Project**: Blender Extensions **Tracker**: Py Scripts Upload **Blender**: 2.57 **Category**: Import Export **Script name**: Quake BSP Importer **Author(s)**: Andrew Palmer **Status**: Open %%%-- Quake 1 BSP Importer for Blender -- by Andrew Palmer 2013.06 (Quake was released in 1996.06, so I'm a bit late) Usage ------------------------------------------------------------------------- 1. Extract to blender scripts/addons/ 2. In user settings go to addons and enable 'Import-Export: Import Quake BSP format' 3. from the File menu, select import>Quake BSP (.bsp) 4. Choose a valid Quake 1 .bsp file 5. Assuming everything worked, your scene should contain all the models in the bsp, ``` though you may need to move/rotate the camera to see them. ``` Tips -------------------------------------------------------------------------- You might not be able to see textures, even if the viewport is in textured mode. To fix this, press 'n' with the cursor in the viewport to open an options panel on the right. In here, expand the display options and set shading to 'GLSL'. Everything might be black if there is no Lamp object in the scene. To fix this, either set the existing lamp to Hemi, or add a new hemisphere lamp (Add>Lamp>Hemi). The textures will probably look like hell since they are very small by modern standards and filtering destroys them. To see the map with nearest (non-filtered) texturing, open the 'System' tab in Blender User Preferences (ctrl+alt+u) and uncheck 'Mipmaps'. History ----------------------------------------------------------------------- 0.0.3 + added scale option (scale geometry on import) + added create materials option (use textures from the bsp to create and assign materials) + added worldspawn only option (import just the main map geometry, not doors, triggers etc.) 0.0.2 + now imports textures from the bsp as materials + uvs and materials are applied to faces 0.0.1 + import bsp imports all models in a bsp file as objects in a blender scene Known bugs -------------------------------------------------------------------- Due to my own lack of knowledge of Python and the Blender scene hierarchy, this script is very slow. On large maps expect it to take a few minutes. This is something I may improve in a future release. - texture name lookup for each face is stupid - there is probably a more efficient way to extract the mesh to memory - too much fudging the vert and uv lists to get them to look right I also heard that it doesn't work properly with Blender for Mac. I have no idea why. If someone sends me a free Macbook, I can probably fix it ;)%%%
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

%%%The correct version is 2.67 - it was developed with Blender 2.67 and uses bmesh and python 3.3, though it might work fine with older versions that support bmesh and python 3, since it's a simple script.%%%

%%%The correct version is 2.67 - it was developed with Blender 2.67 and uses bmesh and python 3.3, though it might work fine with older versions that support bmesh and python 3, since it's a simple script.%%%

%%%Attached a new version 0.0.5. Tested on Blender 2.68a (r58536)%%%

%%%Attached a new version 0.0.5. Tested on Blender 2.68a (r58536)%%%

Added subscriber: @Broad

Added subscriber: @Broad

Does exist any forks to import also other BSP formats (such as Quake 3 or Quake Live ones)? I suggest that owning a copy of the game should be required to get the extension work correctly.
In case these forks does not exist, shall someone be that good and create them? My programming skills does not fit for making such complex extensions.

Thank you for quick reply.

Does exist any forks to import also other BSP formats (such as Quake 3 or Quake Live ones)? I suggest that owning a copy of the game should be required to get the extension work correctly. In case these forks does not exist, shall someone be that good and create them? My programming skills does not fit for making such complex extensions. Thank you for quick reply.
Author

There are no other forks to import geometry for any other BSP formats, although there might be other plugins that do the same for Quake 3 BSPs, or converters separate to Blender that can convert BSP to OBJ or other standard formats, which could then be imported into Blender.

There are no other forks to import geometry for any other BSP formats, although there might be other plugins that do the same for Quake 3 BSPs, or converters separate to Blender that can convert BSP to OBJ or other standard formats, which could then be imported into Blender.
Member

Added subscriber: @BrendonMurphy

Added subscriber: @BrendonMurphy
Member

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Brendon Murphy self-assigned this 2015-09-17 12:52:54 +02:00
Member

Closing as archived. Mostly over 2 years old.
@AndrewPalmer feel free to create a wiki page to document & link this addon & I would suggest a git account to host the files if your still developing.

Closing as archived. Mostly over 2 years old. @AndrewPalmer feel free to create a wiki page to document & link this addon & I would suggest a git account to host the files if your still developing.

Added subscriber: @LiamHutchinson

Added subscriber: @LiamHutchinson

Added subscriber: @SaintFoxss4

Added subscriber: @SaintFoxss4
Sign in to join this conversation.
No Milestone
No project
No Assignees
6 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#35778
No description provided.