Pressure/Velocity Grid Size

  • asthepanda3
    18th Aug 2018 Member 0 Permalink

    I'm going to keep this short and sweet. Is there any way to change the current pressure grid (4x4 spaces alligned with walls) to be smaller, such as 2x2 or 1x1 spacing? I figure that while it would lower FPS, it would also be very useful when making pressure/velocity dependent saves (such as wind tunnels).

    In case you're having trouble seeing what I'm talking about, here's a picture:

    Pressure grid aligns with wall grid

     

    (Picture at https://gyazo.com/96368ef699406324f636ed6217eed977 if you have trouble viewing)

    Edited 2 times by asthepanda3. Last: 18th Aug 2018
  • moonheart08
    18th Aug 2018 Member 0 Permalink

    This cannot be done via lua. The size is hardcoded.

  • QuanTech
    18th Aug 2018 Member 1 Permalink

    @asthepanda3 (View Post)

     If you really want to change the size of pressure cells, you would have to obtain the source code for TPT, modify a variable in the code (namely CELL in Config.h), and compile. CELL is set to 4 by default. Every time you want to change the cell size, you have to recompile TPT.

  • coryman
    18th Aug 2018 Member 1 Permalink

    I have done this in the past (on my laptop). I spent more time compiling than I spent actually using it :P

    It is very fun honestly, and you get to see cool stuff like vortex shedding, but you can't load saves/stamps, so everything has to be made 100% from scratch.

  • asthepanda3
    19th Aug 2018 Member 0 Permalink

    That's all a shame, it would be neat to see an ingame setting for this. Maybe I'll make a test TPT folder for this. I already have things like my stamps backed up.

    Thanks for the information everyone! Can't wait to test this out when I get the chance.

  • Alexwall
    23rd Aug 2018 Member 0 Permalink

    if you want, I can compile a version with the wall size and air pressure size set to 1. It is super super laggy though and not very enjoyable 

  • asthepanda3
    24th Aug 2018 Member 0 Permalink

    @ajloveslily (View Post)

     Everyone keeps telling me my computer would explode, so maybe it's best if I just stick to the current system. Also, I've been wanting to try my hand at modifying TPT, and this gives me an excuse. Thanks for the offer, though.

  • coryman
    24th Aug 2018 Member 0 Permalink

    Well, it runs anywhere from 15-30fps for me. Worst case though, instead of doing the grid size of 1, do a grid size of 2. It isn't quite as cool, but it should run a bit better