[SUGGESTION] Ambient pressure!

  • mr_anderson
    2nd Nov 2011 Member 0 Permalink
    I would like to suggest an new legacy function; Ambient pressure. it works like the velocity system within the wall elements but implented to the rest of the solid and perhaps to the liquid, gas and powder elements aka it's the same pressure system wall element got. This would extremly greatly improve the size of todays engines. We would be able to make realistic circuits of pressure gas and liquids. We would be able to make realistic airlocks and a 1000 more saves including realistic pressure.

    plz contact me here for any questions or image requests for anything you wonder.

    - mr_anderson

    EDIT: please first of all, rewrite the pressure code to 1x1 pixel grids instead of 4x4, 4x4 is pretty clumsy in an enviroment consisting of almost only 1x1 pixel elements
  • therocketeer
    2nd Nov 2011 Member 0 Permalink
    @mr_anderson (View Post)
    This has been suggested before and rejected (pressure insulater) due to the way pressure works in tpt. Currently powder toy uses a 4x4 grid to simulate pressure. It simply wouldn't be possible right now because elements only direct pressure and don't completely block it. basicly, the pressure mapping doesn't really register elements.
  • mr_anderson
    2nd Nov 2011 Member 0 Permalink
    i see, how bad :(
  • therocketeer
    2nd Nov 2011 Member 0 Permalink
    @mr_anderson (View Post)
    yes, shame really. it would be very useful.
  • cctvdude99
    2nd Nov 2011 Member 0 Permalink

    mr_anderson:

    EDIT: please first of all, rewrite the pressure code to 1x1 pixel grids instead of 4x4, 4x4 is pretty clumsy in an enviroment consisting of almost only 1x1 pixel elements

    https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=11382&PageNum=0#Message=174865
    Read my post at the above. In future, please use the search bar. :)

    If you build elements on the 4x4 pressure grid, they will contain pressure (but not for as long as a wall will hold pressure).


    Also, TPT already has ambient pressure, technically... Lol.
  • mniip
    2nd Nov 2011 Developer 0 Permalink
    @cctvdude99 (View Post)
    btw it will onl work 16 times slower
  • cctvdude99
    2nd Nov 2011 Member 0 Permalink
    @mniip (View Post)
    True, true.
    Divide your current FPS by 16...
    Yea, see my point now?
  • Catelite
    2nd Nov 2011 Former Staff 0 Permalink
    The FPS drop would either be more or less dramatic than that much though. There -would- obviously be a drop, but the biggest problem would be rewriting things that are the foundation of so many things in the game xD
  • cctvdude99
    2nd Nov 2011 Member 0 Permalink
    @Catelite (View Post)
    Yeah, I tried changing the cell size in the source, but then the game wouldn't run. D:
  • Videogamer555
    2nd Nov 2011 Member 0 Permalink
    Actually the save files already have a defined cell size variable. Obviously it IS possible to change the cell size or that size wouldn't be included in the save. Just change the cell size in the source and go through EVERY .c and .h file in TPT to check to see where that might make problems, and then change them accordingly to make sure it works right.