Variables Relating to Air

  • coryman
    18th Jan 2018 Member 0 Permalink

    Hi! So I finally figured out how to compile TPT properly, and I'm playing around with smaller cell sizes. I can manage 30fps at a size of 1, but I have a different problem: when I make an explosion, the air transfers very slowly... It takes around 30 seconds for wind to get from one edge of the screen to the other.

    Is it possible to change the "transfer rate" of velocity and air pressure? If so, what variables would I have to change?

  • jacob1
    19th Jan 2018 Developer 0 Permalink
    No, you can't change that. Air calculations only have air move one cell per frame (There are a few other things involved that could make it go faster at high air velocity)

    Air was designed to be just right on a 4 pixel grid, which is why it looks very wrong on a 1 pixel grid. Imagine you quadrupled the size of the simulation, that's why it goes so slow. Air is traveling at the same speed, but it has to go 4x as far now.
  • coryman
    19th Jan 2018 Member 0 Permalink

    Alright, I thought that might be the case... Thanks anyways!

  • Ben_Ger
    22nd Jan 2018 Member 0 Permalink

    @jacob1 (View Post)

     So, could that possibly be used to create, well, bigger worlds? As in create a kind of "Zoom out" button?

    I know of the drawbacks, so I wont bore you with the fact that:
    -You cannot safe it because too large

    -The max amount of pixels stays the same due to how the simulation works

     

    Buuuut, seeing how a detonation looks from a long distance could give people new challenges.

    Like blast focussing devices.

  • coryman
    22nd Jan 2018 Member 0 Permalink

    Having done a lot of playing around with it- yes and no.

    Explosions in ambient heat view look way cooler, and can be a lot more detailed, but the problem is, particles themselves can still move at the normal speed. If you set off a bomb above a powder city, for instance, the powder will go flying to the edge of the screen before the explosion has gone more than 10 or so pixels.

    That said- if you know how to compile TPT from source, I would highly recommend trying it with cell size 1. You can make cool explosions, smaller thrusters, better wing simulations, etc.