Sketchbook v0.4 (three.js + cannon.js playground)

Yeah scenarios are all contained within a world now. When Sketchbook loads a scenario it:

  1. Removes all entities from the world
  2. Iterates through the new scenario’s spawn points and spawns everything
  3. Displays a welcome screen with title and description (which are defined in Blender via custom properties)

But more functionality can be “easily” added, by adding more custom properties to the scenario empties in Blender, and then reading them when loading that scenario.

Blend file: https://drive.google.com/drive/folders/1Uz1WfjIqCIm2pLmkJuKWlr4Y7hCVUS9Q?usp=sharing

E.g. something like “vehicles_enabled” = “false”. And then in TypeScript ask if a scenario has a “vehicles_enabled” custom property and change things accordingly. (Nothing like “vehicles_enabled” is currently in Sketchbook of course, it would have to be implemented)

Defining custom properties in Blender is pretty clunky right now. Ideally there would be a Blender addon which would let you create Sketchbook entities from a neat dropdown or something, so you wouldn’t have to worry about having a typo in the custom properties, but now I write them manually.

2 Likes