[PD] gem list operations on the gpu

Sebastian Saa sebastian_nicolau at yahoo.es
Mon Apr 20 11:25:43 CEST 2009

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?



De: marius schebella <marius.schebella at gmail.com>
Para: Sebastian Saa <sebastian_nicolau at yahoo.es>
CC: pd-list at 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...


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20090420/139c4190/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pequeno_random_dos.pd
Type: application/octet-stream
Size: 1654 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20090420/139c4190/attachment.obj>

More information about the Pd-list mailing list