Import .bsp props into Blender

Discussion in 'Tutorials & Resources' started by B!scuit, Dec 7, 2017.

?

What feature should I focus on next?

  1. UI

    0 vote(s)
    0.0%
  2. Faster conversion

    0 vote(s)
    0.0%
  3. .obj materials

    0 vote(s)
    0.0%
  4. Lightmap editing

    0 vote(s)
    0.0%
  5. WebGL version

    0 vote(s)
    0.0%
  1. B!scuit

    B!scuit L2: Junior Member

    Messages:
    82
    Positive Ratings:
    76
    The update thread for the python script I made for how to import whole .vmf into blender?
    for now refer to the link for a more in detail release post.

    import_bsp_a2.zip
    | bsp_import_props.blend (layer 3 is Mercenary Park props)
    | pl_upward.blend

    | bsp_import_props.vmf & bsp (test map)
    | import_props_a1.py (must be run in Blender)
    | bsp_to_obj_a1.py (drag and drop bsp over script)
    | vector.py (used by bsp_to_obj.py)

    | pl_upward.bsp.obj
    | cp_mercenarypark_unpacked.bsp.obj
     

    Attached Files:

    Last edited: Jan 31, 2018
  2. B!scuit

    B!scuit L2: Junior Member

    Messages:
    82
    Positive Ratings:
    76
    Alpha 2 Screenies
    pl_upward_colourful.png pl_upward.obj.png pl_upward_cart_1080p_wireless.jpg
     
    • Like Like x 4
  3. Pocket

    aa Pocket func_croc

    Messages:
    4,476
    Positive Ratings:
    2,204
    Makes it look like those foamboard models that architects make.
     
    • Agree Agree x 2
  4. B!scuit

    B!scuit L2: Junior Member

    Messages:
    82
    Positive Ratings:
    76
    Latest version of bsp_tool.py
    Only needs vector.py from the a2 release to run (must be in same folder)

    Worldights are now workable dicts
    .objs now have normals and face windings that import into Blender painlessly
    .objs import with uvs (at the cost of increased loading times)
    Striping out the displacements from the export_obj method can shave about 75% off your compile time
    uvs on displacements may be rotated and are projected so they're a little inaccurate (especially for water details)
    Displacements just need a bunch of refactoring so I can build the vertex format better
    I am going off code I scrawled on a brown paper bag at 2am here
    IMG_0165[1].JPG
     

    Attached Files:

    • Like Like x 1