Scene and RenderingΒΆ
Use the scene layer for inspectable paths, transforms, materials, imported assets, and interactive tools.
Most application code should use app.scene and prim-backed views. Use
ke.render directly only for textures, buffers, or renderer experiments.
Custom graphics pipelines are exposed through the C++ and Python renderer
hook APIs. Python-authored definitions created with
App.create_scene_hook_pipeline() appear in the Resource panel.
Primitive mesh factories live under ke.geometry:
create_plane_data()create_cube_data()andcreate_box_data()create_sphere_data()create_capsule_data()andcreate_cylinder_data()create_cone_data()andcreate_arrow_data()
These functions return MeshData; pass the result to
app.scene.add_mesh(...) to create a renderable Prim. See
First Scene for the complete workflow and
the ke.geometry API Reference for exact signatures.