OpenTS2 icon indicating copy to clipboard operation
OpenTS2 copied to clipboard

Render swarm effects

Open ammaraskar opened this issue 1 year ago • 5 comments

From #7 we have the data structures for swarm parsed. Now it's time to actually start rendering them with the unity particle system etc.

ammaraskar avatar Aug 02 '23 15:08 ammaraskar

Doing particle effects at the moment, just doing some basic properties got us this.

Sims 2

sims2effect.webm

Unity

UnityEffect.webm

ammaraskar avatar Aug 03 '23 18:08 ammaraskar

that's amazing

LazyDuchess avatar Aug 03 '23 20:08 LazyDuchess

StrangetownUFO.webm

Now doing a basic rendering from scenegraph

ammaraskar avatar Aug 04 '23 01:08 ammaraskar

The game has a hidden effects and effectsManager cheat that LazyDuchess figured out how to enable here: https://github.com/LazyDuchess/TS2-HiddenCheats

cTSEffectsManager also still has something to add file paths, I wonder if the ability to live reload effects in game is still there. Would be cool to play around with.

Edit: yup it is, we can now edit the in game effects in the original scripting language! https://gist.github.com/ammaraskar/62f4af3a02e82e0ea11be62999854194

ammaraskar avatar Aug 04 '23 01:08 ammaraskar

The conclusion after doing the basic prototype for rendering is that it will likely be too hard to implement things like random walks and rendering full scenegraph nodes as particles with the unity particle system. Implementing our own particle system is probably needed.

ammaraskar avatar Aug 04 '23 20:08 ammaraskar