02_user_tutorials:qsm:to-growable
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| 02_user_tutorials:qsm:to-growable [2026/03/20 16:35] – created - external edit 127.0.0.1 | 02_user_tutorials:qsm:to-growable [2026/10/09 12:38] (current) – [Shoots] Tim | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Turning a QSM into a growable model ====== | ====== Turning a QSM into a growable model ====== | ||
| - | In the following tutorial we will take a small QSM file, transform the existing cylinders into modules and add additional organs(Buds, | + | In the following tutorial we will take a small QSM file, transform the existing cylinders into modules and add additional organs(Buds, |
| - | For this tutorial we will use this very small QSM: {{ :tutorials: | + | For this tutorial we will use this very small QSM: {{ :02_user_tutorials: |
| This dataset was originally measured with the fastrak stylus and is later translated into a QSM | This dataset was originally measured with the fastrak stylus and is later translated into a QSM | ||
| ===== Shoots ===== | ===== Shoots ===== | ||
| Line 20: | Line 20: | ||
| Yet there is an important addition here, that is different to normal L-System rule: we need to keep the local transformation that keeps the cylinders in place. | Yet there is an important addition here, that is different to normal L-System rule: we need to keep the local transformation that keeps the cylinders in place. | ||
| - | We can do this by applying | + | We can do this by applying |
| + | |||
| + | But since all parameters include | ||
| < | < | ||
| - | f:F ==> MyShoot(f.length,f.diameter).($[transform]=f[transform]); | + | f:F ==> MyShoot.($<<f),setShader(EGA_6));); |
| </ | </ | ||
| + | |||
| + | The other possible apporach would be to use the '' | ||
| + | < | ||
| + | f:F ==> MyShoot(f.length, | ||
| + | </ | ||
| + | |||
| + | |||
| Line 36: | Line 45: | ||
| public void update()[ | public void update()[ | ||
| { jumpAllAxis(); | { jumpAllAxis(); | ||
| - | f:F ==> MyShoot(f.length, | + | f:F ==> MyShoot(f.length, |
| ] | ] | ||
| </ | </ | ||
| Line 93: | Line 102: | ||
| This model applied on our small example tree should result in the following output: | This model applied on our small example tree should result in the following output: | ||
| - | | {{:tutorials: | + | | {{:02_user_tutorials: |
| | Imported tree | updated tree | 1. growth step | 2. growth step | | | Imported tree | updated tree | 1. growth step | 2. growth step | | ||
| ==== Lateral ==== | ==== Lateral ==== | ||
| Line 160: | Line 169: | ||
| - | | {{:tutorials: | + | | {{:02_user_tutorials: |
| | Imported tree | updated tree | 1. growth step | 2. growth step | | | Imported tree | updated tree | 1. growth step | 2. growth step | | ||
| Line 250: | Line 259: | ||
| </ | </ | ||
| - | | {{:tutorials: | + | | {{:02_user_tutorials: |
| | Imported tree | updated tree | 1. growth step | 2. growth step | | | Imported tree | updated tree | 1. growth step | 2. growth step | | ||
02_user_tutorials/qsm/to-growable.1774024505.txt.gz · Last modified: (external edit)
