Coder Social home page Coder Social logo

ndevenish / blender_ioedm Goto Github PK

View Code? Open in Web Editor NEW
43.0 20.0 25.0 2.87 MB

Experimental Blender Importer/Exporter for .EDM modelling files

Home Page: https://ndevenish.github.io/Blender_ioEDM/

License: MIT License

Python 99.46% Shell 0.49% Makefile 0.06%

blender_ioedm's Introduction

EDM model files - Blender Import/(Export) Addon

This is a HIGHLY EXPERIMENTAL, totally UNOFFICIAL attempt to build a blender addon to allow importing/exporting of .EDM model files, as used in the flight simulator DCS world. It has been engineered by careful studying of the binary file format, intuition, research, much guesswork, and many, many crashes of the model viewer.

Firstly, an important note:

This tool may only be used for private purposes and may in no way be used for extracting models which may directly or indirectly be used for commercial gain or promotion of any commercial product i.a games, films, media, or artwork.

e.g. it should be obvious that this is for modding for DCS world and any intellectual property of ED remains the intellectual property of ED.

In its current state, it allows simple importing functionality whilst the fine details of the file structure are worked out, and basic exporting. Much of the data is reasonably easy to interpret, but translating the concepts to Blender is still a WIP. Also, there may be advanced modelling features used in DCS world modules that the author does not own, but a universal importer is less a goal than understanding the file format well enough to build a simple exporter.

What Works

  • Parsing and reading raw data for every .edm file included in DCS world (this is reading only, not importing into blender)
  • Basic importing of geometry with diffuse texture layers - textures are assumed to be in the same folder or a subfolder named 'textures'
  • Importing simple rotation, translation and visibility animations
  • Connectors, and UI integration to mark empties as such
  • Exporting basic meshes with simple animations and single diffuse textures

What Doesn't Work

  • Exporting anything in a hierarchy is WIP and really fails badly
  • Scale animation, and non-quaternion rotation animation isn't exported
  • Bone-based animations are not handled at all
  • Multiple argument animations per object - decisions on the best way to represent this in Blender need to be made (NLA? Custom Action attributes?)
  • Complex translation of material layers, including specular, bump maps etc
  • Not all geometry ends up properly placed when importing

Further Information

For further information and installation instructions, please see the documentation at https://ndevenish.github.io/Blender_ioEDM/

blender_ioedm's People

Contributors

ndevenish 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  avatar  avatar

Watchers

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

blender_ioedm's Issues

Nothing works anymore in any versions

Hi there,

For some reasons, I cannot install Blender EDM in any versions of Blender ( 2.68 to 2.8, all tested ), and when it was installed, any import is bound to fail.

I've heard about some new stuff since DCS 2.5.5 that would prevent importing, but that would not explain why it cannot be even installed anymore ...

Any ideas ?

Thanks !

Plugin not working with actual DCS Version (2.x)

Hi ndevenish

As it looks like the plugin does not work properly with the current DCS version. Since I would like to adapt my Cockpit for VR to DCS it would be great if there was some way to extract it from DCS. Can anyone help me?
You could contact me on reddit.com: Hawkeye_CH (with underscore)

Kind regards

Hawkeye

Can't install the ad-on

capture d ecran
Hi, I can't install your EDM import add on... Do you have an idea to fix this ?
Tx

Blender 2.77a
macOS 10.13

Writing hierarchical animations broken

test/MonkeyCannon.blend currently looks like this:

mcannon

Which pretty much matches what the blender import looks like, which is partially good news, at least. Also, the texture seems to be messed up but that might be a modelviewer artifact when some textures are missing?

File format change due to __VERSION__ change

I'm doing a C++ import library to get a better understanding of the file format, I'm not a Python coder and TBH I hate the language. Anyway model::rootnode->property["VERSION"] can now be 2 or 3.
if( VERSION == 3 ) then unknownA is NOT present so just start to read the bounding boxes.

Bounding box too big

On the basic Suzanne test:
bug_boundingbox
The bounding box is being calculated on object bounding boxes, perhaps something is going wrong in the axis reordering?

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.