Giter VIP home page Giter VIP logo

wdbripper's Introduction

WDBRipper

Build Status Build Status

Extracts the 3D models and textures from the Lego Island WORLD.WDB file.

Most of the files in the sub1 folders can be read, the ones in sub0 cannot. This is something that can be worked on for the future.

As of now, 451 out of 592 .bin files can be extracted!

Requirements:

Usage:

  • Run the executable:
wdb_ripper.exe
  • Or run the python script:
python wdb_ripper.py
  • You can configure the tool with config.txt.

Understanding:

The wdb file is split into many sections in a folder hierarchy, each section for a different model. The ripper currently extracts each of these sections, and saves each of them as a .bin file in their respective folder. You can find these files in ./bin once the tool has been run. There are also loose GIF images in the wdb file not attached to any models, which are stored in ./gif.

Once the ripper has extracted all of the .bin files, the ripper will create 3D wavefront .obj files with .mtl material files plus all the textures as .png for that model. These converted models are stored in ./obj.

More information on the format of WORLD.WDB can be found in ./formats/wdb, the file used to define what variables are extracted for what purpose.

  • Source Files
    • wdb_ripper.py is the main program that takes data read from the bin files, and exports it as .obj, .mtl, and .gif.
    • formatter.py reads the file ./formats/wdb and uses it to interpret the data found in WORLD.WDB and the .bin files. It hands wdb_ripper.py a dictionary containing the structure of the files as described in ./formats/wdb.
    • bin_decode3.py is a helpful tool to visualize what is going on inside a .bin file in terms of the format of data. It uses formatter.py to display the values of each piece of data in the file. You need pygame to run this.
    • color_console.py does not play a role, it was for debug purposes to help make the console output of formatter.py more readable. It was taken from an online example.

wdbripper's People

Contributors

liambrandt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.