Hi everyone,
I'm looking for a way to scatter objects across a screen in GEM using [repeat] or a similar method that doesn't require creating several objects or using particles. The objects should stay in position until I specify another random position
I've followed the advice of reading the XYZ coordinates from a text file (as seen here http://lists.puredata.info/pipermail/pd-list/2009-01/067439.html ) but this doesn't allow me to choose another XYZ coordinate unless I load another text file.
============================ antonio@hellocatfood.com http://www.hellocatfood.com ============================
hello,
look at the patch in gem help/02.advenced/20.double-gemhead_vs_repeat the right patch of this patch is almost what you want. you just have to insert 2 tabread instead of the select. the tabread should point to 3 random table.
c
Le 26/11/2013 00:19, Antonio Roberts a écrit :
Hi everyone,
I'm looking for a way to scatter objects across a screen in GEM using [repeat] or a similar method that doesn't require creating several objects or using particles. The objects should stay in position until I specify another random position
I've followed the advice of reading the XYZ coordinates from a text file (as seen here http://lists.puredata.info/pipermail/pd-list/2009-01/067439.html ) but this doesn't allow me to choose another XYZ coordinate unless I load another text file.
Is there any other way to do this?
On 2013-11-26 00:32, Cyrille Henry wrote:
hello,
look at the patch in gem help/02.advenced/20.double-gemhead_vs_repeat the right patch of this patch is almost what you want. you just have to insert 2 tabread instead of the select. the tabread should point to 3 random table.
or give [random] a seed, so it will generate the sme PRN-sequence in each frame. change the seed whenever you want to change the scattering. (afair, this is also in the examples)
oh, and don't use [repeat]; instead of [until]+[gemlist], which doesn't require zexy at all (only Pd-vanilla+Gem)
gfmadsr IOhannes
or give [random] a seed, so it will generate the sme PRN-sequence in each frame. change the seed whenever you want to change the scattering. (afair, this is also in the examples)
Thanks, this mostly does what I want.
Overall, I would like to be able to slow down the positioning of the shapes and have them move into place (using [line] ) rather than jump. Is this just a limitation of using [gemlist] and [until]/[repeat]?
Antonio
On 26 November 2013 08:21, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 2013-11-26 00:32, Cyrille Henry wrote:
hello,
look at the patch in gem help/02.advenced/20.double-gemhead_vs_repeat the right patch of this patch is almost what you want. you just have to insert 2 tabread instead of the select. the tabread should point to 3 random table.
or give [random] a seed, so it will generate the sme PRN-sequence in each frame. change the seed whenever you want to change the scattering. (afair, this is also in the examples)
oh, and don't use [repeat]; instead of [until]+[gemlist], which doesn't require zexy at all (only Pd-vanilla+Gem)
gfmadsr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Le 26/11/2013 13:18, Antonio Roberts a écrit :
or give [random] a seed, so it will generate the sme PRN-sequence in each frame. change the seed whenever you want to change the scattering. (afair, this is also in the examples)
Thanks, this mostly does what I want.
Overall, I would like to be able to slow down the positioning of the shapes and have them move into place (using [line] ) rather than jump. Is this just a limitation of using [gemlist] and [until]/[repeat]?
with simple math you can interpolate between 2 position. interpolate_position = (X*position_2 + (1-X)*position_1) where X vary from 0 to 1. you can do that with both the random /seed or with table (using iem_tab)
c
Antonio
On 26 November 2013 08:21, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 2013-11-26 00:32, Cyrille Henry wrote:
hello,
look at the patch in gem help/02.advenced/20.double-gemhead_vs_repeat the right patch of this patch is almost what you want. you just have to insert 2 tabread instead of the select. the tabread should point to 3 random table.
or give [random] a seed, so it will generate the sme PRN-sequence in each frame. change the seed whenever you want to change the scattering. (afair, this is also in the examples)
oh, and don't use [repeat]; instead of [until]+[gemlist], which doesn't require zexy at all (only Pd-vanilla+Gem)
gfmadsr IOhannes
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
look into [line] help you can choose a lower time grain than the default one . it will make things smoother
with simple math you can interpolate between 2 position. interpolate_position = (X*position_2 + (1-X)*position_1) where X vary from 0 to 1.
thanks Cyrille , it wil be useful to me too ... math lessons are way back for me ...
2013/11/26 Cyrille Henry ch@chnry.net:
with simple math you can interpolate between 2 position. interpolate_position = (X*position_2 + (1-X)*position_1) where X vary from 0 to 1.
Le 26/11/2013 14:26, Py Fave a écrit :
look into [line] help you can choose a lower time grain than the default one . it will make things smoother
line default grain is 20ms. so it's perfect for 50fps rendering. (or 25 fps if you don't mind extra computation) if you render at 40 fps, you should set it to 1000/40 = 25ms (so increasing it, not lowering)
c
with simple math you can interpolate between 2 position. interpolate_position = (X*position_2 + (1-X)*position_1) where X vary from 0 to 1.
thanks Cyrille , it wil be useful to me too ... math lessons are way back for me ...
2013/11/26 Cyrille Henry ch@chnry.net:
with simple math you can interpolate between 2 position. interpolate_position = (X*position_2 + (1-X)*position_1) where X vary from 0 to 1.
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list