hello marius , what im trying to do is really simple, i have a patch that creates 3d structures iterating or repeating geos,  the thing is that i cannot run to much iterations because my computer become slow. The complexity of my 3d structures are limited to my cpu power, thats why i was thinking if its possible to  make the gem list calculations in the gpu in order to economize cpu consumption and have more iterations. Check attached patch. Do these calculations can run as shaders programs?


Other thing: i was checking the displaylist example, looks very interesting : is it possible to   store the displaylist in a separate txt file?

thanks

S.


De: marius schebella <marius.schebella@gmail.com>
Para: Sebastian Saa <sebastian_nicolau@yahoo.es>
CC: pd-list@iem.at
Enviado: domingo, 19 de abril, 2009 2:47:15
Asunto: Re: [PD] gem list operations on the gpu

Sebastian Saa wrote:
> Hello, is it possible to run gemlist operations on the gpu? im experimenting with recursive structures in gem , i cannot have to much recursions because my computer become slow, so i was thinking if its posible to make those calculations on the gpu, is this possible?

hi sebastian,

it depends on what exactly you're trying to do. it is possible to calculate a recursive structure once and then upload it to the GPU using a displaylist. basically you are creating a geometry that you can access like a model. have a look at the example in examples/GEM/09.OpenGL/02.displaylist.pd
But this will not help you, if the recursion needs to be recalculated for every frame. for this you could use vertex shaders (again, depending on what you're trying to achieve). with the upcoming GEM release and if your gfx card supports it, it should also be possible to use geometry shaders as well.

the other options are pdlua (with luagl) or writing your own GEM object...

marius.