Blender BLB tools [BLB Importer] [BLS Importer]

Author Topic: Blender BLB tools [BLB Importer] [BLS Importer]  (Read 13740 times)

BLB Importer



Features...
  • Textures
  • Positions
  • UV Coords
  • Colors
  • All viewable within Blender

Requirements...
  • Blockland folder must be in "Documents/Blockland"

Issues...
  • Blender does not seem to handle vertex normals, so I cannot apply normals to loaded bricks
  • Does not handle normal cubic format... yet
  • Does not appear to work with 2.67.0, or possibly any version under that

Download
Download all default cubic bricks in SPECIAL format
Please report any issues you come across.

Update history
  • v1.0
  • Released
  • v1.1
  • Texture extension changed to extend
  • v1.2
  • Removed: remove doubles, broke window bricks which rely on faces directly next to eachother

How to install...
1. Download the file, save it to your desktop.
2. Open Blender, Go to File, User Preferences, AddOns, and click Install from File on the bottom left
3. Navigate to your desktop, double click the .zip file
4. Go to Import-Export category, check "Import-Export Blockland brick (.blb) format" to enable it.
5. Go to File > Import > Blockland brick (.blb)



BLS Importer



Features...
  • Everything that the BLB Importer does
  • ...And load Blockland saves into Blender, pretty self explanatory.

Requirements...
  • Blockland folder must be in "Documents/Blockland"
  • Most likely will not appear to work with 2.67.0, or possibly any version under that, heavily based on BLB Importer

Download

Update history
  • v1.0
  • Released

How to install...
1. Download the file, save it to your desktop.
2. Open the file, drag "BLS_Bricks" to Documents/Blockland/
3. Open Blender, Go to File, User Preferences, AddOns, and click Install from File on the bottom left
4. Navigate to your desktop, double click the .zip file
5. Go to Import-Export category, check "Import-Export Blockland brick (.bls) format" to enable it.
6. Go to File > Import > Blockland brick (.bls)

Special thanks..
General - Code that places the build at the center of the grid, huge help.
« Last Edit: November 01, 2013, 09:01:07 PM by Conservative »

This'll come in handy ;D

Here's an example picture of the weird UVs on certain bricks
« Last Edit: October 25, 2013, 02:36:19 AM by Masterlegodude »

That's normal.

Texture extensions don't show up in any normal object mode.

You can render the brick or export it to be converted back into a brick to see what the texture actually looks like.
« Last Edit: October 25, 2013, 03:32:03 AM by Conservative »

You should add a short guide on how to install the importer and also remove that [2.68.0] from the thread title as it works on other versions too. I'm fairly certain the script will work on any Blender version after 2.5.

You should add a short guide on how to install the importer and also remove that [2.68.0] from the thread title as it works on other versions too. I'm fairly certain the script will work on any Blender version after 2.5.
UV coords were rotated what looked to be 90° on images I got from Masterlegodude in 2.67

I'm still trying to figure out how to make a rectangular prism from a cube :(

How to install...
1. Download the importer, save it to your desktop.
2. Click on File then click User Preferences then click Install from File
3. Navigate to your desktop, double click the .zip file
4. Check Import-Export Blockland brick (.blb) format to enable it
5. Go to File > Import > Blockland brick (.blb)
Fixed, no more folder locating, folder dragging and looking at a document

Fixed, no more folder locating, folder dragging and looking at a document
Updated.


nice man really interesting

blows my mind how people make plugins in python, i hate python

nice man really interesting

blows my mind how people make plugins in python, i hate python
I actually learned python and created this in under a week.

I did this by learning python as I built my program; encountering problems, I would research that type of problem and learn more about python as I built the program.

I had never bothered with python beforehand.

Comes from motivation.

Is this proportional to General's BLB converter? or what converter does it work with?

Is this proportional to General's BLB converter? or what converter does it work with?
You need to make the individual colors portion of the brick their own object, and name them "(tex) C R G B A"

They come out as "(tex) [R G B A]" in this importer.

Does not import any portion of the grid or anything like that either, just the brick model.

I've talked to General about handling colors differently and right now, I can't exactly say much, but they may be handled differently at some point.
« Last Edit: October 27, 2013, 10:39:15 AM by Conservative »

You need to make the individual colors portion of the brick their own object, and name them "(tex) C R G B A"

They come out as "(tex) [R G B A]" in this importer.

Does not import any portion of the grid or anything like that either, just the brick model.

I've talked to General about handling colors differently and right now, I can't exactly say much, but they may be handled differently at some point.
Thanks for the help and thanks for the importer :)

Quote
Blockland folder must be in "Documents/Blockland"
forget