Skip to content

Commit 380ec73

Browse files
committed
Refactor to sith
1 parent 097e5d1 commit 380ec73

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+836
-343
lines changed

LICENSE

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
MIT License
22

3-
Copyright (c) 2019 smlu
3+
Sith Blender Addon
4+
Copyright (c) 2019-2022 Crt Vavros
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 64 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,82 +1,75 @@
1-
# Indiana Jones and The Infernal Machine Add-on for Blender 2.79
2-
The add-on provides import/export scripts for game resources e.g. models (.3do) and animations (.key).
3-
In addition, it can also import game materials (.mat).
1+
# Blender 2.79 addon for the games based on Sith game engine
2+
[<img src="demo/blsthbn_sm.png"/>](demo/blsthbn.png)
43

4+
Addon provides Blender game assets import/export scripts for the games based on Sith game engine:
5+
- Star Wars Jedi Knight: Dark Forces II
6+
- Star Wars Jedi Knight: Mysteries of the Sith
7+
- Star Wars: DroidWorks
8+
- Indiana Jones and the Infernal Machine
59

6-
<img src="https://github.com/smlu/blender-ijim/blob/master/demo/inmcar.png" width="80%"/>
7-
<img src="https://github.com/smlu/blender-ijim/blob/master/demo/gif/in_hat2.gif" width="80%"/>
10+
## Features
11+
- Import/Export .3do models
12+
- Edit 3DO mesh & polygon properties in Blender
13+
- Import/Export .key animations
14+
- Import .mat textures
15+
16+
<img src="demo/gif/in_hat2.gif" width="50%"/>
17+
<img src="demo/gif/kych.gif" width="50%"/><img src="demo/gif/diswim.gif" width="50%"/>
818

919
## Requirements
10-
Blender 2.79, you can download it [here](https://download.blender.org/release/Blender2.79/latest/).
11-
To import game resources into blender they need to be extracted from `*.GOB` and `*.CND` files first. Use `gobext` and `cndtool` from [this](https://github.com/smlu/ProjectMarduk) repo.
20+
Blender 2.79, you can download it [here](https://download.blender.org/release/Blender2.79/latest/).
1221

1322
## Installation
14-
1. Download `ijim.zip` file from the [Releases](https://github.com/smlu/blender-ijim/releases) page.
15-
2. Open Blender and select `File > User Preferences > Add-ons > Install Add-on from File`
16-
and select the downloaded `ijim.zip` file.
17-
3. Enable the add-on by clicking the checkbox next to the add-on name.
18-
4. Select `Save User Settings` in the lower left and close the window.
23+
1. Download `sith.zip` file from the [Releases](https://github.com/smlu/blender-sith/releases) page.
24+
2. Open Blender and select `File > User Preferences > Add-ons > Install Add-on from File`
25+
and select the downloaded `sith.zip` file.
26+
3. Enable the addon by clicking the checkbox next to the add-on name.
27+
4. Click the `Save User Settings` button in the lower left and close the preferences window.
1928

2029
## Usage
21-
### File naming convention
22-
The maximum file name length, including the file extension in Jones3d engine is limited to 64 characters.
23-
Therefore all longer file names have to be abbreviated.
24-
Some of general abbreviations:
25-
&nbsp;&nbsp;&nbsp;&nbsp; **dflt** - default
26-
&nbsp;&nbsp;&nbsp;&nbsp; **bk** - back
27-
&nbsp;&nbsp;&nbsp;&nbsp; **by** - boy
28-
&nbsp;&nbsp;&nbsp;&nbsp; **com** - commy
29-
&nbsp;&nbsp;&nbsp;&nbsp; **fr** - front
30-
&nbsp;&nbsp;&nbsp;&nbsp; **ib** - ice boss
31-
&nbsp;&nbsp;&nbsp;&nbsp; **ij** - indy jeep
32-
&nbsp;&nbsp;&nbsp;&nbsp; **in** - indy
33-
&nbsp;&nbsp;&nbsp;&nbsp; **inv** - inventory
34-
&nbsp;&nbsp;&nbsp;&nbsp; **ir** - indy raft
35-
&nbsp;&nbsp;&nbsp;&nbsp; **lb** - lava boss
36-
&nbsp;&nbsp;&nbsp;&nbsp; **mc** - mine car
37-
&nbsp;&nbsp;&nbsp;&nbsp; **mo** - monkey
38-
&nbsp;&nbsp;&nbsp;&nbsp; **by** - boy
39-
&nbsp;&nbsp;&nbsp;&nbsp; **ol** - old lady
40-
&nbsp;&nbsp;&nbsp;&nbsp; **rft** - raft
41-
&nbsp;&nbsp;&nbsp;&nbsp; **sn** - snake
42-
&nbsp;&nbsp;&nbsp;&nbsp; **sp** - spider
43-
&nbsp;&nbsp;&nbsp;&nbsp; **so** - sophia
44-
&nbsp;&nbsp;&nbsp;&nbsp; **tu** - turner
45-
&nbsp;&nbsp;&nbsp;&nbsp; **uw** - under water
46-
&nbsp;&nbsp;&nbsp;&nbsp; **vo** - volodnikov
47-
&nbsp;&nbsp;&nbsp;&nbsp; **yl** - young lady
48-
49-
&nbsp;&nbsp;&nbsp;&nbsp; Also, every file which refers to specific game level is prefixed with 3 letters of abbreviated lavel name eg.: pyr_, pru_...
30+
### Importing 3DO model
31+
1. Go to `File > Import > Sith Game Engine 3D Model (.3do)`
32+
2. Find and select `*.3do` model file
33+
3. Import options
34+
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)
35+
![iopt](demo/iopt.png)
36+
*Note: By default addon tries to find required texture(s) and ColorMap file of the imported model at the location of it's file.
37+
I.e.: <model_path>/mat, <model_path>/misc/cmp, <model_path>/../mat, <model_path>/../misc/cmp, <model_path>/../../misc/cmp*
38+
4. Then click the `Import 3DO` button to import model into Blender.
5039

51-
### Importing 3do model
52-
1. Go to `File > Import > Import Idiana Jones IM model (.3do)`
53-
2. In the opened dialog, set the path to the folder containing material files (.mat) of model.
54-
<img src="https://github.com/smlu/blender-ijim/blob/master/demo/dlg_imp3doprop.png" width="28%"/>
55-
(Bottom left, `Materials folder` property under `Import 3DO` section)
56-
*Note: Which material files are used by model can be viewed under `MATERIALS` section at the begining of a `3do` file.*
57-
58-
3. Select the `*.3do` model file and click `Import 3DO`
59-
*Note: If you are later planning to export imported model make sure that the importing property `Preserve Mesh Hierarchy` is turned on. This will make sure that animations depending on the model won't break in the game.*
60-
61-
### Exporting 3do model
62-
1. Go to `File > Export > Import Idiana Jones IM model (.3do)`
63-
2. Select path, name the file and click `Export 3DO`
64-
*Note: The file name must not be longer then 64 characters. See section [File naming convention](#file-naming-convention).*
65-
66-
### Importing animation
67-
1. First import 3do model that animation is for.
68-
*Note: Which key file belongs to which 3do model cannot be figured out easely because one model can have many animations.
69-
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 `key` file.*
70-
71-
1. Go to `File > Import > Import Idiana Jones IM animation (.key)`
72-
2. Select the `*.key` file and click `Import KEY`
73-
74-
### Exporting animation
75-
1. Go to `File > Export > Import Idiana Jones IM animation (.key)`
76-
2. (Optional) Change properties of the `Export KEY` section (bottom left)
40+
### Exporting 3DO model
41+
1. Go to `File > Export > Sith Game Engine 3D Model (.3do)`
42+
2. Select path, name the file
43+
*Note: The file name must not be longer then 64 characters.*
44+
3. In the export options section select the 3DO file version
45+
![eopt](demo/eopt.png)
46+
4. Then click the `Export 3DO` button to export object(s) to 3DO file.
47+
48+
### Importing KEY animation
49+
1. First import 3DO model that animation is for
50+
*Note: Which key file belongs to which 3DO model cannot be easy to figured out because single model can have many different animations.
51+
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.*
52+
2. Go to `File > Import > Sith Game Engine Animation (.key)`
53+
3. Select the `*.key` file and click the `Import KEY` button
54+
55+
### Exporting KEY animation
56+
1. Go to `File > Export > Sith Game Engine Animation (.key)`
57+
2. (Optional) Set additional export options in the `Export KEY` section (bottom left)
58+
![ekopt](demo/ekopt.png)
7759
3. Select path, name the file and click `Export KEY`
78-
*Note: The file name must not be longer then 64 characters. See section [File naming convention](#file-naming-convention).*
60+
*Note: The file name must not be longer then 64 characters*
61+
62+
### Importing MAT texture
63+
1. Go to `File > Import > Sith Game Engine Texture (.mat)`
64+
3. Select the `*.mat` file and click the `Import MAT` button
65+
66+
### Editing
67+
Additional from importing and exporting Sith engine formats addon adds extra UI panels for editing 3DO file specific data.
68+
69+
#### 1. Object 3DO Properties
70+
![o3dop](demo/o3dop.png)
71+
The Sequence number is the node position number in the mesh node hierarchy list in the 3DO file.
72+
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.
7973

80-
### Importing material
81-
1. Go to `File > Import > Import Idiana Jones IM material (.mat)`
82-
3. Select the `*.mat` file and click `Import MAT`
74+
#### 2. Mesh Face Properties
75+
![3dofp](demo/3dofp.png)

demo/3dofp.png

561 KB
Loading

demo/blsthbn.png

11.2 MB
Loading

demo/blsthbn_sm.png

768 KB
Loading

demo/dlg_imp3doprop.png

-8.2 KB
Binary file not shown.

demo/ekopt.png

17.4 KB
Loading

demo/eopt.png

7.42 KB
Loading

demo/gif/diswim.gif

1.57 MB
Loading

demo/gif/kych.gif

620 KB
Loading

0 commit comments

Comments
 (0)