For example, presently, I would like to add elements to get some more realistic simulations. I found the mods very interesting but it could be useful to have an how-to-install them. Is it possible to have multiple mods simultaneously running i.e. a powder toy with a very large number of elements ? This is not the object of this thread but the question is so obvious and the answer so hidden that I am starting to wonder if I am not stupid.
To come back to this thread, it seems that each element has a weight from -1 to 100. However, the pressure gradient is not respected and I really wonder whether these values are respecting natural order. The pressure at a given point should be the summation of the different thickness x weight of each of elements directly vertical to the point.
@Mackrock Powder Toy physics isn't very sophisticated at the moment, partly because the calculations for it have to be done in realtime (and we still haven't got working multithreading...)
Liquids are just implemented as powders that are able to move large horizontal distances when blocked from falling. Pressure in liquids and forces between particles are not simulated.
The weight value is only used to determine which particles can be displaced by which other ones (higher weight displaces lower weight).
No plugin system yet, adding elements can only be done by adding source code, modifying the powder.h header file, then recompiling.
There is currently a limit of 254 elements (wall types also count towards this limit), since a lot of the code uses a single byte to store particle type.
This is what I understood. About how to INSTALL a mod, please give the link in wiki, good luck for you to find it... My humble contribution will rather be to create a french language translation if that is not done.
More seriously, the pressure modeling is not such an easy thing to implement in a powder simulator.The simplest will be similar to what we use in reservoir simulator in the oil and gas exploration: to assign a simple linear function to each element to simulate the pressure vs thickness. Adding these functions for a stack of element will give the pressure at any point.
Similar to this is the modeling of the permeability of a powder. We could play with diffusion, percolation etc.... Example: create a stack of sand, on one side put oil. On the other side put water. Nothing will happen, it stays static. To reassure you, apart from professional simulation, I don't know any available physics game/simulator which can do that.
Next step is to talk about tensile force, viscosity etc... 1.16 MB for the engine is awesome. The more I play with it, the more I am impressed. Tomorrow, I shall show it to some colleagues who are pro in dynamic simulation of hydrocarbons. I would like to see the reaction.
@snowfire777 XD MB = MegaBit MGB = ???Failed GB or Failed MB or like a million GB that would equals......1000 TB? Anyway I don't think that would be such an important update