GithubHelp home page GithubHelp logo

io_scene_b3d's Introduction

io_scene_b3d

Blender Import-Export script for Blitz 3D .b3d files

Disclaimer

I don't have much time to maintain this and I get no PR's, so there are more recent forks:

Download

You may download plugin zip in the releases section

Installation

  • Userspace method: click "File" - "User Preferences" - "Add-ons" - "Install Add-on from File". The add-on zip file should contain io_scene_b3d directory, including the directory itself.
  • Alternative method: copy or symlink the io_scene_b3d directory to blender user directory, e.g. to %APPDATA%\Blender Foundation\Blender\2.80\scripts\addons\io_scene_b3d. Then search for b3d and enable add-on in "Preferences" - "Add-ons". Click "Save User Settings" afterwards.

Debugging

  • Userspace method: every time you make a change the script has to be reloaded (press F3, search for Reload Scripts).
  • Alternative method: my shortcut, Shift+Ctrl+F in Object Mode. It resets scene, reloads the script and imports test file.

TODO

Import

  • Animation is not yet implemented in version 1.0. Check master branch for updates.
  • Nodes use original quaternion rotation that affects user interface. Maybe convert them into euler angles.

License

This software is covered by GPL 2.0. Pull requests are welcome.

  • The import script based on a heavily rewriten (new reader) script from Glogow Poland Mariusz Szkaradek.
  • The export script uses portions of script by Diego 'GaNDaLDF' Parisi (ported to Blender 2.8) under GPL license.
  • The b3d format documentation (b3dfile_specs.txt) doesn't have a clear license (I assume Public Domain).

Alternatives

  • Assimp - doesn't read .b3d animation in most cases, maybe I have acquired a very particular set of files
  • fragMOTION - works fine most of the time, but it's a terrible nagware and the only suitable export is .smd

References

io_scene_b3d's People

Contributors

joric 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

Watchers

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

io_scene_b3d's Issues

Exported .B3D Models crash in Blitz3D/OpenB3D/MiniB3D

Yeah so the exporter appears to be broken (even when I go way back into old blender builds and the original gandalf releases etc).
Surprisingly the models import fine with the animation and everything within fragMOTION, but as far as I know everything else that uses the .B3D model format crashes.

All meshes are exported, even if the object is deleted.

The add-on appears to search the entire blender scene for meshes. If you make two objects and delete one, they both get exported.
screenshot_20200212_112108

  • The screenshot is from my fork of prestibags: https://github.com/poikilos/prestibags
  • You may also want to respect the "Selection Only" export checkbox, or split that into another issue. If you fix that first, it would mitigate this issue.

Good work on the plugin so far! I am glad that I can use Blender 2.8 for Minetest models.

Add-On not found

Hi, I've got another problem with your files... When I applied "Install Add-On from file", Blender reported me a successful installation...

Issue

But I couldn't find it in the Add-On list. Did I do anything wrong?

Error in 2.8 branch

hi, the 2.8 branch is not functional, it has an error when exporting


location: <unknown location>:-1

AttributeError: 'ExportB3D' object has no attribute 'axis_forward'
 
    return super().__getattribute__(attr)

File "C:\Program Files\Blender Foundation\Blender\2.80\scripts\modules\bpy_types.py", line 674, in __getattribute__

      global_matrix = axis_conversion(to_forward=self.axis_forward,

File "C:\Program Files\Blender Foundation\Blender\2.80\scripts\addons\io_scene_b3d\__init__.py", line 129, in execute

Traceback (most recent call last):

Can you please mike it import the animations of the model, too?

Hello

I´m modifying character-models in an open source-game.
But some of them ar only saved in .b3d in their model-folders.
No .blend-models there for theese ones.

Now i notices, that import from.b3d imports no character-animations.
Can you please add this feature to this tool?

scaling 10

Hi,

Import and export scale model by 10, and it seems that change the value in the option doesn't change anything,

Thanks so for your work

(sorry if bad english)

Math request

I'm sorry about my method of contacting you. There's no bug.
I wondered if you could help me figure out how to set up my transformation matrix or method to export rotations to blitz from 3ds max. I just can't get my math right. I'm close, but not close enough.

Import error

Hi ( sorry, i don't speak english very well )
When try to import a .b3d archive in Blender 2.79 have this error ( only to import, the export works correctly)

new

Not working for Blender 4.0

When I try to export my file as a .b3d object, it will let me name the file, but after
I click export, when I look for the file in the selected folder, it isn't there.

Blitz3D v1.106 support?

Can we get a version that works with Blitz3D v1.106?

This would be immensely helpful as there are still games that use it and the other methods currently used to develop content for them is so archaic (fragMotion)

One example that is still being maintained today is the following game:

https://sonicworldfangame.com/

Specifically imported .b3ds get exported with bigger filesize for some reason and can cause Memory Access Violation errors when trying to load them into the game, this seems to happen with models that are big in filesize. fragMotion doesn't suffer from this issue but it's very dated and doesn't have vertex alpha texture/material flag.

enum MULTIPLY not found on import

in the import_b3d.py script i had to comment out line 337

   # material.blend_method = 'MULTIPLY' if mat.rgba[3] < 1.0 else 'OPAQUE'

https://github.com/netpipe/LunaGames <- Station.pk3 if you extract it and import the building.b3d file it has nice clear textures in blender but when i goto export it the glass is not transparent anymore in the game engine.

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.