more realistic liquids

  • keperitan
    17th Mar 2011 Member 0 Permalink
    To make liquids flow more realistically, I propose:
    -The creation of a new value called a liquid value.
    -Every liquid pixel should be assigned a liquid value of 1
    -A fixed number of (generally no more than 3, and depending on pressure) liquid pixels can clump together into a single pixel whose liquid value represents the total number of liquid pixels represented by the single pixel.
    -These super pixels diffuse normally about the liquid (think soluble sponge).
    -These 'super' pixels decay randomly into its constituent pixels only at the surface of the liquid. This decay rate is influenced by the pressure and viscosity. Higher pressure/viscosity=lower decay rate.
    -Thus liquids can find their own level once they reach an equilibrium of clumping and decaying and thus can respond to pressure changes (e.g. a barometer)

    *If it is too difficult to implement a new variable, the life value should serve just fine (except for lava, I know.)
  • MasterMind555
    17th Mar 2011 Member 0 Permalink
    I know they wiggle too much too ( No realistic ) ...changes to liquids was suggested at least 2 times, one by me and after by somebody else, and both rejected :|
  • garretemo
    17th Mar 2011 Member 0 Permalink
    So your saying to have more relistic flow rates(ie. water: fast, Oil: slow.)?
  • therocketeer
    17th Mar 2011 Member 0 Permalink
    @keperitan
    this could become a highlight for the future, but right now i don't think we have Einstein to program it.
  • cctvdude99
    17th Mar 2011 Member 0 Permalink
    @garretemo
    Oil: Hot: Fast?
    Oil: Cold: Slow?

    Nightmare to code I expect.
  • therocketeer
    17th Mar 2011 Member 0 Permalink
    @cctvdude99
    good idea, variable viscocity by temp would be cool!+1
  • MasterMind555
    17th Mar 2011 Member 0 Permalink
    @cctvdude99
    nightmare to code??

    if the particules temp == 22 then
    flowrate = 5
    if the particules temp == 0 then
    flowrate = 3

    Change that to C, there it is.....
  • pilojo
    17th Mar 2011 Member 0 Permalink
    @MasterMind555
    Takes a whole nother set of code to make that possible. Flowrate would have to be coded in so the game knows what it is.
  • Gamewizard71
    17th Mar 2011 Member 0 Permalink
    i already showed them a source they could use...
  • cctvdude99
    17th Mar 2011 Member 0 Permalink
    @pilojo
    Flowrate coded = 10 times more lag for n00by computers.