Git Product home page Git Product logo

blender-sith's Introduction

Blender 2.79 addon for the games based on Sith game engine

Addon provides Blender game assets import/export scripts for the games based on Sith game engine:

  • Star Wars Jedi Knight: Dark Forces II
  • Star Wars Jedi Knight: Mysteries of the Sith
  • Star Wars: DroidWorks
  • Indiana Jones and the Infernal Machine
  • Grim Fandango - Importing of text format 3DO models is only supported

Features

  • Import/Export .3do models
  • Edit 3DO mesh & polygon properties in Blender
  • Import/Export .key mesh animations
    Armature animations not supported (yet)
  • Import .mat textures

Requirements

The latest Blender 2.79b, you can download it here.

Installation

  1. Download sith.zip file from the Releases page.
  2. Open Blender and select File > User Preferences > Add-ons > Install Add-on from File
    and select the downloaded sith.zip file.
  3. Enable the addon by clicking the checkbox next to the add-on name.
  4. Click the Save User Settings button in the lower left and close the preferences window.

Usage

Importing 3DO model

  1. Go to File > Import > Sith Game Engine 3D Model (.3do)
  2. Find and select *.3do model file
  3. Import options
    In the opened import dialog window you have import options under Import 3DO section (bottom left). Here you can check/uncheck different options and set path to the folder containing texture files (.mat) and ColorMap file (.cmp)
    iopt
    Note: By default addon tries to find required texture(s) and ColorMap file of the imported model at the location of it's file.
    I.e.: <model_path>/mat, <model_path>/misc/cmp, <model_path>/../mat, <model_path>/../misc/cmp, <model_path>/../../misc/cmp
  4. Then click the Import 3DO button to import model into Blender.

Exporting 3DO model

  1. Go to File > Export > Sith Game Engine 3D Model (.3do)
  2. Select path, name the file
    Note: The file name must not be longer than 32 characters (IJIM 64 characters).
  3. In the export options section select the 3DO file version
    eopt
  4. Then click the Export 3DO button to export object(s) to 3DO file.

Importing KEY animation

  1. First import 3DO model that animation is for
    Note: Which key file belongs to which 3DO model cannot be easy to figured out because single model can have many different animations. One thing to do is opening puppet file (.pup) located in misc/pup folder and see which animations belongs to the same game "actor". Another way is to open up .3do and .key file and see if .3do file contains all mesh names used by the .key file.
  2. Go to File > Import > Sith Game Engine Animation (.key)
  3. Select the *.key file and click the Import KEY button

Exporting KEY animation

  1. Go to File > Export > Sith Game Engine Animation (.key)
  2. (Optional) Set additional export options in the Export KEY section (bottom left)
    ekopt
  3. Select path, name the file and click Export KEY
    Note: The file name must not be longer than 32 characters (IJIM 64 characters).

Importing MAT texture

  1. Go to File > Import > Sith Game Engine Texture (.mat)
  2. Select the *.mat file and click the Import MAT button

Editing

Additional from importing and exporting Sith engine formats addon adds extra UI panels for editing 3DO file specific data.

1. Object 3DO Properties

o3dop The Sequence number is the node position number in the mesh node hierarchy list in the 3DO file. When creating the new model by default this number is -1 and addon will auto-set the node position in the hierarchy list based on the object's hierarchy in Blender when exporting to 3DO file. If the node name is not set addon will take the object mesh name from Blender when exporting to 3DO file.

2. Mesh Face Properties

3dofp

blender-sith's People

Contributors

smlu avatar

Stargazers

 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

blender-sith's Issues

Export error for 2 models

Hello Smlu, I send you a private message in GOG.com concerning Indy modding (HD 3do files) and .CND to .NDY conversion... But I'm here to report a bug, when I try to export "gen_ij.3do" and "gen_im.3do" (even if I don't modify the file). The error message is in the picture:

exportbug

It's the same error for Indy in the minecar (gen_im.3do) but It work good for all others models.

Thanks for all your tools! (Sorry for my language: I'm french)

3do import failure

Whenever I import any kind of Grim Fandango 3DO I am met with some sort of long error.

Broken exported animation

Some exported KEY animations such as ib_stand2.key, ib_rotate_left.key and ib_rotate_right.key are broken in the game due to interpolation issue. Could be reverse issue of #4

Blender 3.x?

I installed blender 3.0.1 on Linux Mint. I can install the addon, and I get this message:

Modules Installed (sith) from '/home/brian/Desktop/JK Stuff/sith.zip' into '/home/brian/.config/blender/3.0/scripts/addons'

Once it's installed, I see a note next to it that says "Upgrade to 2.8x required." But I already have 3.0.1.

When I try to enable it I get this message:

Traceback (most recent call last):
  File "/usr/share/blender/scripts/modules/addon_utils.py", line 387, in enable
    mod.register()
  File "/home/brian/.config/blender/3.0/scripts/addons/sith/__init__.py", line 675, in register
    bpy.types.INFO_MT_file_export.append(menu_func_export)
AttributeError: 'module' object has no attribute 'INFO_MT_file_export'

Any ideas? Thank you!

Trying to enabling addon in last 2.79 release gives errors.

The add-on installs fine in the blender version 2.79 listed under requirements, but when trying to enable it in the Blender User Add-ons Preferences it throws up an error message and doesn't enable it.
image

Traceback (most recent call last):
  File "/var/lib/snapd/snap/blender/20/2.79/scripts/modules/addon_utils.py", line 331, in enable
    mod = __import__(module_name)
  File "/home/retro/.config/blender/2.79/scripts/addons/ijim/__init__.py", line 50, in <module>
    import ijim.model.model3doExporter as model3doExporter
  File "/home/retro/.config/blender/2.79/scripts/addons/ijim/model/model3doExporter.py", line 13, in <module>
    from .model3do import *
  File "/home/retro/.config/blender/2.79/scripts/addons/ijim/model/model3do.py", line 61
    self.material_idx: int      = -1
                     ^
SyntaxError: invalid syntax

image
How are other people getting this enabled to use it?

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.