-
Notifications
You must be signed in to change notification settings - Fork 0
Adding 3D models
EmptyEpsilon can use OBJ models. To make new OBJ models available for use:
-
Place the OBJ files and any textures in the
EmptyEpsilon/resourcesdirectory. -
Add a
ModelData()entry toEmptyEpsilon/scripts/model_data.lua. For example, this adds a model namedgentestfrom OBJ filegentest.obj:
model = ModelData() model:setName("gentest") model:setMesh("gentest.obj") model:setTexture("gentest.png") model:setSpecular("gentest_diffuse.png") model:setIllumination("gentest_illumination.png") model:setScale(24) model:setRadius(120)
model:addEngineEmitter(-13, -2.1500, 0.3, 0.2, 0.2, 1.0, 3.0) model:addEngineEmitter(-13, 2.1500, 0.3, 0.2, 0.2, 1.0, 3.0) ```
- Adjust the ModelData properties appropriately.
-
If you're exporting OBJ files from Blender, use the following settings:
-
If you need to rotate a model, do so from a 3D modeling program. Some example programs include:
- Blender (Windows, OS X, Linux)
- Misfit Model 3D (Windows; OS X and FreeBSD experimental)
Since model_data.lua is a Lua script file, you can use scripting tools (such as loops) to easily add many similar models.
- Home
- Building and installing the game
- Configuring the game
- Playing the game
- Officer roles and screens
- Captain
- Main screen
- Ship window
- Crews of 5-6 players
- Crews of 3-4 players
- Single-player crew
- Game Master (GM) screens
- Extra screens
- Minigames
- Weapon types
- Officer roles and screens
- Extending the game
- Troubleshooting
- Fork content
