-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3b70848
commit 8ba0d34
Showing
3 changed files
with
87 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Blender | ||
|
||
Coasters can have blender animations along the track. | ||
|
||
## Prerequisites | ||
- Installed Blender version >2.80 | ||
- Downloaded a copy of the jrides Blender export tool `tools/jrides_blender_export_anim_plugin.py` | ||
|
||
## How to | ||
|
||
1. Create a Blender animations using object animations. (do not use rigging) | ||
2. Name the animated object the same as your animation name, i.e. `main-animation`. | ||
3. Select the object and export the Blender animation using the custom jrides export tool. (check the `tools` folder on GitHub: https://github.com/JVerbruggen/jrides) | ||
1. `tools/jrides_blender_export_anim_plugin.py` | ||
4. Name the file in the format of `<coaster_identifier>.<animation_name>.csv`, i.e. `mycoaster.main_animation.csv`. | ||
5. Paste the file in the jrides folder `jrides/coasters/<coaster_identifier>/animations`. | ||
6. Create a trigger file in `jrides/coasters/<coaster_identifier>/triggers/<my-trigger.yml>` | ||
```yml | ||
trigger: | ||
type: blender-animation | ||
location: [50.0, 10.0, 50.0] # [x, y, z] | ||
animationName: my-cool-animation # Animation identifier | ||
reuseEntity: my-coaster-my-cool-animation-entity # A unique identifier for an entity so that it can be used for multiple animations | ||
preloadAnim: true # Whether to load the first frame of the animation when loading the plugin | ||
item: # Item that is animated | ||
material: YELLOW_WOOL | ||
``` | ||
7. Use the trigger in either effect triggers for certain sections (i.e. the station section), or in the track trigger file. See [docs/triggers.md](../triggers.md). | ||
1. *Your folder structure should now look something like this.* | ||
``` | ||
plugins/ | ||
├─ jrides/ | ||
│ ├─ rides.yml | ||
│ ├─ coasters/ | ||
│ │ ├─ mycoaster/ | ||
│ │ │ ├─ mycoaster.coaster.yml | ||
│ │ │ ├─ mycoaster.default.trigger.yml | ||
│ │ │ ├─ animations/ | ||
│ │ │ │ ├─ mycoaster.main_animation.csv | ||
│ │ │ ├─ triggers/ | ||
│ │ │ │ ├─ my-trigger.yml | ||
``` | ||
|
||
And you're done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters