Giter Site home page Giter Site logo

nier2blender_2_8's Introduction

nier2blender_2_8's People

Contributors

c4nf3ng avatar marcusbirkeland avatar woefulwolf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

nier2blender_2_8's Issues

Data-Driven Programming

There are ways to make some of the code less tedious to read and write, by putting repetitive stuff into tables. For example, in WMB_Header.__init__(), the extraction of the bulk of the header fields could be reworked into something like

for field, conv, size in \
    (
        ("unknown08", to_int, 4),
        ("flags", to_int, 4),
        ("bounding_box1", to_float, 4),
        ("bounding_box2", to_float, 4),
        ("bounding_box3", to_float, 4),
        ("bounding_box4", to_float, 4),
        ("bounding_box5", to_float, 4),
        ("bounding_box6", to_float, 4),
        ("boneArrayOffset", to_int, 4),
        ("boneCount", to_int, 4),
        ("unknownChunk1Offset", to_int, 4),
        ("unknownChunk1DataCount", to_int, 4),
        ("vertexGroupArrayOffset", to_int, 4),
        ("vertexGroupCount", to_int, 4),
        ("meshArrayOffset", to_int, 4),
        ("meshCount", to_int, 4),
        ("meshGroupInfoArrayHeaderOffset", to_int, 4),
        ("meshGroupInfoArrayCount", to_int, 4),
        ("colTreeNodesOffset", to_int, 4),
        ("colTreeNodesCount", to_int, 4),
        ("boneMapOffset", to_int, 4),
        ("boneMapCount", to_int, 4),
        ("bonesetOffset", to_int, 4),
        ("bonesetCount", to_int, 4),
        ("materialArrayOffset", to_int, 4),
        ("materialCount", to_int, 4),
        ("meshGroupOffset", to_int, 4),
        ("meshGroupCount", to_int, 4),
        ("offsetMeshMaterials", to_int, 4),
        ("numMeshMaterials", to_int, 4),
        ("unknownWorldDataArrayOffset", to_int, 4),
        ("unknownWorldDataArrayCount", to_int, 4),
        ("unknown8C", to_int, 4),
    ) \
:
    setattr(self, field, conv(wmb_fp.read(size)))
#end for

Anyway, you get the idea.

QoL Suggestions

  • Set deform off as default on dummy bones
  • Make connected bones actually connected

Doesn't show up on Blender

I have moved the files to my Blender's "Addons" folder, however, the option to import the .dat files to blender doesn't show up when i look for it on Blender. I might be doing something wrong, could you help me get it to work on my computer?

edit: nevermind, i'm a dumbass. Forgot to install the addon on Blender

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.