A while back I created a voxel based algorithm which crudely calculated structural stress, with the intention of using it in Minecraft. However thanks to the complexity of Java I have had little success in getting it to work, however the concept still works.
Would an element which behaves to the algorithm demonstrated in the application above be a good addition to TPT, what do you think? If you think it would be good, I will make it a suggestion.
Seems like people think it is a good idea, so here is my suggestion:
New mode as added to the game 'Stress Simulation'
When enabled, this algorithm runs where metal is BMTL and base is BRCK or a Wall. When BMTL is stressed it highlights the same way as heat makes the metal glow, however this effect is toggleable. Also when enabled, air pressure no longer breaks bmtl and brck.
Hm... I think structural stress calculation would be good for all solids, unfortunately I can't run demo so I'm not sure what this algorithm is (hint: .NET 4.0 is not Mono-friendly and thus not Linux-friendly (though recent svns supports small subset of 4.0, but very small)).
But dunno how it'll behave FPS-wise, especially with code mess that is in TPT sources (many not needed calls to physics engine, e.g. trying to simulate fluids if there are no fluids in scene). I'm cleaning this up and already gained FPS (+fixed some minor mem leaks), but will have to test it more before publishing.
I like the idea, this is something I have thought about for some time, but have never got round to it. It would be greatly useful to allow structures to break without Air pressure, I'd imagine this could be used as a single element, or a whole new option.
@Simon(View Post) I'd say a new option, or a tool to coat an element with this, so it only effects the selected particles. But then again it might just be better to make it a whole new option.
Wow, I really like this, I think it would be better off as an option rather than an element like @R3APER said. @Lockheedmartin mabye an addition to fancy display would be better?
Here is the source http://pastebin.com/5N8rLu9d (I did write this nearly 18 months ago now, I cringe when I look through this source, please do not criticise my code I know its bad :'( )
Coders Note
If you change line 61 from integer to a decimal (Int to double or single or whatever) you will get a lot more accurate and nicer looking simulation. But it will be more processor intensive.
Here is my suggestion:
New mode as added to the game 'Stress Simulation'
When enabled, this algorithm runs where metal is BMTL and base is BRCK or a Wall. When BMTL is stressed it highlights the same way as heat makes the metal glow, however this effect is toggleable. Also when enabled, air pressure will still affect brck and bmtl so that structures can be damaged by explosives in a dynamic way and this will allow for a more fun experience (Sounds like i'm starting to write a uni assignment).