Cool project. What’s the grand scope here? Are we doing a handful of buildings? Or are we doing an entire city? Any specific questions?
Things to look into when figuring out the approach:
- ISM -
Instanced Static Mesh
components to represent a facade Per Instance Custom Data
to colour them and keep performance high (if you’re doing a city block, you may want to opt for the hierarchical variant of ISMs)- actor
Construction Script
+2D Grid Execution Macro
will allow you to rapidly build the ISM facades; automate the process by sampling the underlying building’s transform - raycasts are called
Line Traces
in UE SkyLight
could be used to represent the sun- prototype the thing in blueprints
- optionally, move the line tracing loop and math to C++
- the math itself you already have, surely; doing it in BP can be a royal pain the neck due to the nature of wires and how much screen space it takes. There’s a bunch of helper nodes and the Math Expression, though.
General help you might be interested in: