Object material node
The object material node allow the user to access the object color into a material node tree.
Debug options management
Three modes are available for each debug option: Disable, Force, Allow. The two first are pretty explicit, they disable or enable a debug without any other conditions. The last mode let a per object setting decide to debug or not.
These options are accessible from the Render panel and Debug sub panel:
They are also in the Game menu:
Shadow frustum debug
Shadow frustum volume/box of a light is able to be displayed in game with the current option to display the frustum in viewport:
Show Shadow Box or by forcing the display with the debug option named
Show Shadow Frustum.
It display help making an optimized shadow box in a complex scene without checking always outside game.
CListValue item filtering
Items in a
CListValue like scene objects
KX_Scene.objects can be filtered along a name regex and a property regex. The name regex filter all the items matching their name with the regex, the property regex filter the objects whose have one property name matching the regex. If the name regex is empty all the items are iterated and looked for property name matching.
result = scene.objects.filter("C.*", "Friend")
Cand containing a property named