Insolation¶
Functionality¶
Thankfully for bpy.context.scene.ray_cast
and object.ray_cast
.
- Having your building object in scene (victim) with a material on it;
- and other buildings objects in scene that shades your (predator);
- and having vectors rays from zero to sun position by hours you will get:
You’ll get vertex colors in material, that express shading,
And numbers in hours that left from predator hunted.
see docs: bpy.types.Object.ray_cast and bpy.types.Scene.ray_cast
Input sockets¶
Predator - your predator external buildings (polygons takes)
Victim - your victim projecting building
SunRays - your sun positions direction from zero to find intersection (list of vertices)
Parameters¶
parameter |
description |
---|---|
limit |
Limit of hours, that will be shown in index viewer |
Output sockets¶
socket name |
description |
---|---|
Centers |
Centers of victim’ polygons |
Hours |
Hours text for index viewer node text input |
Usage¶
Open templates - insolation example
Use objects (materials should be with cycles nodes active for victim)