2cam86
New Member
Hey there!
I'm in the very early stages of creating a free roam city map/track and I'm planning the implementation of working traffic lights. As far as I'm aware, there are two possible approaches:
Option 2 seems to be a bolder and questionable approach. This involves me animating each light mesh within their Traffic light modules to "move into the traffic light housing" when turned off, and then reveal itself when turned on; again, according to the signal cycle of their real life counterparts.
Both approaches I feel are very hacked together (albeit, as with most things). The main concern for Option 2 is how much animation Assetto Corsa can handle. I can simplify each light down to just a triangle, and a rough ChatGPT estimate suggests 1,911 individual lights, which would mean 5,733 animated triangles/light-meshes, so who knows, it might crash, it might not, but I'd love to hear your thoughts.
I also don't see any way of integrating these light cycles with mods like CSP traffic tool, so that's another concern.
All in all, I'd like to get an idea of how to best approach this project, any pointers to resources or anything that may be of interest is also greatly appreciated.
Thank you for your generosity
I'm in the very early stages of creating a free roam city map/track and I'm planning the implementation of working traffic lights. As far as I'm aware, there are two possible approaches:
- Through conditions (see https://github.com/ac-custom-shaders-patch/acc-extension-config/blob/master/config/tracks/common/conditions.ini)
- Through animating the light meshes.
Option 2 seems to be a bolder and questionable approach. This involves me animating each light mesh within their Traffic light modules to "move into the traffic light housing" when turned off, and then reveal itself when turned on; again, according to the signal cycle of their real life counterparts.
Both approaches I feel are very hacked together (albeit, as with most things). The main concern for Option 2 is how much animation Assetto Corsa can handle. I can simplify each light down to just a triangle, and a rough ChatGPT estimate suggests 1,911 individual lights, which would mean 5,733 animated triangles/light-meshes, so who knows, it might crash, it might not, but I'd love to hear your thoughts.
I also don't see any way of integrating these light cycles with mods like CSP traffic tool, so that's another concern.
All in all, I'd like to get an idea of how to best approach this project, any pointers to resources or anything that may be of interest is also greatly appreciated.
Thank you for your generosity