tag:blogger.com,1999:blog-32131971.post3065481185743714749..comments2023-08-22T06:51:32.799-03:00Comments on Pé de Pinico: The right tools for the right jobFrancisco Fernandeshttp://www.blogger.com/profile/14976691121453638551noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-32131971.post-82684275271761255422012-05-11T20:16:48.551-03:002012-05-11T20:16:48.551-03:00One very easy thing to do with usually great payof...One very easy thing to do with usually great payoffs is to subdivide the simulation domain (the image) into a regular grid, with a cell size roughly on the order of the neighborhood search you want to do. When you drop particles assign them to the cells, and for simulation you simply have to search the current cell and neighboring cells for potential interactions, instead of potentially the whole domain. You can even use a quadtree for better memory efficiency - subdivide based on the number of particles per cell up to a minimum cell size, that way you'll have adaptive subdivision based on how your particles are distributed :)<br /><br />opiesche at gmail dot comOlaf Pieschehttps://www.blogger.com/profile/12934375809725339039noreply@blogger.comtag:blogger.com,1999:blog-32131971.post-66534671432686381792012-05-11T12:47:29.744-03:002012-05-11T12:47:29.744-03:00Olá Jonathas!
No topo da pagina do Planet KDE (ht...Olá Jonathas!<br /><br />No topo da pagina do Planet KDE (http://planetkde.org/ ) tem o link Add Your Blog dando as guidelines de como adicionar seu blog no agregador. No entanto, para fazer parte do Planet KDE é mandatório que você já contribua para o projeto de alguma forma, como por exemplo design, artwork, promoção ou código.<br /><br />Nós estamos precisando muito de pessoas para contribuir na parte de arte e design, então se você quiser nos ajudar de alguma forma nesse aspecto você é mais do que bem-vindo. Se você estiver interessado, dê uma olhada nesses links:<br /><br />http://community.kde.org/Getinvolved/art (Guia de como contribuir no projeto)<br />http://pinheiro-kde.blogspot.com.br/ (Blog do principal designer do KDE )<br />http://kde-look.org/ (Pagina para customizar o KDE)<br /><br />Qualquer coisa, dê as caras la na lista do Kde-Brasil (https://mail.kde.org/mailman/listinfo/kde-br) e receba nossas boas vindas!<br /><br />Um abraçoFrancisco Fernandeshttps://www.blogger.com/profile/14976691121453638551noreply@blogger.comtag:blogger.com,1999:blog-32131971.post-74587611916477687262012-05-10T21:40:29.796-03:002012-05-10T21:40:29.796-03:00rapaz é tão bom ler o blog de um brazuka no planet...rapaz é tão bom ler o blog de um brazuka no planet KDE que da até vontade de chorar =D , como é que se faz pra fazer parte?Anonymoushttps://www.blogger.com/profile/13211874343378442257noreply@blogger.comtag:blogger.com,1999:blog-32131971.post-12060900202821205092012-05-09T23:33:28.984-03:002012-05-09T23:33:28.984-03:00Thanks Bugsbane!
I'm doing the most simple s...Thanks Bugsbane! <br /><br />I'm doing the most simple simulation as cited in this book http://is.gd/OvSRyH.<br />In a more advanced chapter it cites the use of a window to limit the amount of particles per step. This is probably the next phase for this simulation, right after passing the current state for the QImages. <br /><br />Now, as a matter of fact, sand acts like fluid when large amounts of it move at the same time. A close concept is smoothed-particle hydrodinamics, which simulates real fluid particles like water, oil or even wind. However, this model have some attractive forces between particles, messing up with the opportunity to use this theory to simulate sand, since grains don't have cohesive forces. I think that in the due time I'll find where I can do some optimizations, removing some unnecessary calculations (I already had removed some, but generated previous errors. Instead, I did the complete simulation so I could see if the theory really works).<br /><br />Anyway, thanks again for the reply! <br /><br />Ps.: Angela thanked your compliment too! :)Francisco Fernandeshttps://www.blogger.com/profile/14976691121453638551noreply@blogger.comtag:blogger.com,1999:blog-32131971.post-59800953911148324372012-05-09T22:52:59.395-03:002012-05-09T22:52:59.395-03:00Sounds like you're off to a good start! I wond...Sounds like you're off to a good start! I wonder if there may be ways to "cheat" something like this rather than simulating every single particle of sand. Like how most fluid sims don't simulate every molecule of water, but usually use a lower resolution 3d grid made up of 3d vectors. In many ways sand acts more like a fluid until it's isolated from other large masses. Not that I really have any idea, not being a programmer, but I do wonder. Anyway, good luck (especially if you try the openCL approach!). Most of all, have fun and learn a lot!<br /><br />Bugsbane<br /><br />PS Angela's obviously very talented, too. Nice speed painting!Bugsbanehttp://krita.orgnoreply@blogger.com