Build a real-time text-to-3D and image-to-3D application with live voxel streaming using SAM-3D Objects.
This example demonstrates how to build a 3D reconstruction pipeline that streams
voxel data in real-time during diffusion. Watch your 3D models take shape
progressively as geometry and appearance diffusion stages run.
Control the streaming frequency to balance smoothness vs. performance:
class SAM3DStreamInput(BaseModel): stream_geometry_every: int = Field( default=1, ge=1, le=10, description="Emit geometry updates every N steps (1=smoothest, 10=fastest)", ) stream_colors_every: int = Field( default=1, ge=1, le=10, description="Emit color updates every N steps", )
Progressive rendering gives users immediate visual feedback during generation
H100 GPUs provide the compute power needed for fast 3D diffusion
This pattern demonstrates how to build interactive 3D AI applications that provide real-time feedback, combining the power of diffusion models with efficient streaming protocols and modern web rendering.