02_user_tutorials:qsm:to-growable
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 02_user_tutorials:qsm:to-growable [2026/03/20 16:39] – Tim | 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: {{ : | For this tutorial we will use this very small QSM: {{ : | ||
| 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, |
| ] | ] | ||
| </ | </ | ||
02_user_tutorials/qsm/to-growable.1774024751.txt.gz · Last modified: (external edit)
