zrwangems/dsh-zrwang-plugin / skills/engineering/matlab/automotive/matlab-use-scenario-builder
matlab-use-scenario-builder
VerifiedGenerate driving scenes, scenarios, road surfaces, and 3D content from scenariobuilder.* sensor data (GPS, camera, lidar, actor tracks) using Scenario Builder for Automated Driving Toolbox. BUILD, EXPORT, or AUGMENT a virtual scenario/scene/map: ego or actor trajectories, trajectory smoothing, OpenCRG road-surface extraction, 3D asset generation, static-object placement, point-cloud georeferencing + elevation, lane-based ego localization, sensor-fusion tracking, scenario-event extraction (cut-ins, hard brakes, near-misses, ADAS disengagements), or export to RoadRunner, drivingScenario, OpenDRIVE, OpenCRG, OpenSCENARIO, or Unreal Engine. Also: log-to-scenario, scenario harvesting, accident/near-miss reconstruction, SOTIF (ISO 21448) and ISO 26262 scenario coverage, USGS-aerial-lidar augmentation, traffic-sign placement, vision-based vehicle classification for actor assets. NOT for raw-data import or multi-sensor sync/crop/offset/timestamp normalization — route those to matlab-import-driving-data.
references/workflow-12-3d-asset-generation.md
View on GitHub---
name: workflow-12-3d-asset-generation
description: Generate 3D mesh assets from a single high-resolution camera image using imageAssetGenerator (TripoSR-based). Output is mesh/texture suitable for RoadRunner import or drivingScenario actor mesh. Loaded when user wants to create custom 3D assets from a photo.
---
# Workflow 12 — Generate 3D Assets from Camera Images
> **Parent skill:** [`SKILL.md`](../SKILL.md) — Loaded when user mentions generating 3D assets from photos, custom RoadRunner assets from images, or TripoSR.
Use `imageAssetGenerator` to create 3D mesh assets from a single high-resolution camera image. The image should show the object's 3D structure clearly (most of the object visible from one viewpoint).
```matlab
%% Generate 3D asset from a single camera image
assetGen = imageAssetGenerator; % Uses TripoSR model
% Image should be high-res with the object prominently visible
img = imread("tree_photo.jpg");
[mesh, texture] = generate(assetGen, img);
% mesh: surfaceMesh or extendedObjectMesh
% Can be saved as .fbx/.obj for RoadRunner import
% Or used directly as vehicle/actor mesh in drivingScenario
```
**Best practices:**
- Use high-resolution images (cropped tightly around the object)
- Ensure most of the 3D structure is visible (not just one flat face)
- Works well for: trees, vehicles, barriers, poles, buildings, custom props
- Output can be imported into RoadRunner as a custom asset
**Python-SPKG install errors (`imageAssetGenerator` is Python-backed via TripoSR):** if construction or first run fails with a `proxyError`, `SSL: CERTIFICATE_VERIFY_FAILED`, `SSLConnectionError`, or `ReadTimeoutError: HTTPSConnectionPool(host='download.pytorch.org', ...)`, this is a known customer-network issue, not a MATLAB bug. Load [`python-spkg-install-troubleshooting.md`](python-spkg-install-troubleshooting.md) for the symptom→fix matrix (proxy / SSL → set `http_proxy`+`https_proxy`; PyTorch read timeout → reinstall the SPKG).
----
Copyright 2026 The MathWorks, Inc.
----
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |