Skip to content

zrwangems/dsh-zrwang-plugin / skills/engineering/matlab/automotive/matlab-use-scenario-builder

matlab-use-scenario-builder

Verified

Generate 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.

FileKindSize
SKILL.mdskill md56.8 KB
manifest.yamlconfig704 B
references/actortrackdata-api.mdmarkdown3.3 KB
references/example-roadrunner-scenario.mdmarkdown4.3 KB
references/example-scenario-from-gps-and-tracks.mdmarkdown9.6 KB
references/execution-rules-detail.mdmarkdown16.7 KB
references/gpsdata-api.mdmarkdown2.4 KB
references/osm-flat-scene-gotchas.mdmarkdown8.8 KB
references/per-frame-detections-to-actortrackdata.mdmarkdown7.8 KB
references/python-spkg-install-troubleshooting.mdmarkdown5.8 KB
references/trajectory-api.mdmarkdown13.7 KB
references/visualization-patterns.mdmarkdown12.4 KB
references/workflow-04-roadrunner-export-detail.mdmarkdown32.6 KB
references/workflow-07-height-correction.mdmarkdown3.3 KB
references/workflow-08-lane-localization.mdmarkdown39.1 KB
references/workflow-09-static-objects.mdmarkdown9.3 KB
references/workflow-10-road-surface-opencrg.mdmarkdown4.7 KB
references/workflow-11-point-cloud-georef.mdmarkdown4.5 KB
references/workflow-12-3d-asset-generation.mdmarkdown2.0 KB
references/workflow-13-event-extraction.mdmarkdown5.3 KB
references/workflow-14-sensor-fusion-tracking.mdmarkdown6.9 KB
references/workflow-15-driving-scenario-designer.mdmarkdown7.6 KB
references/workflow-16-aerial-lidar-augmentation.mdmarkdown14.4 KB
references/workflow-17-traffic-signs-from-sensor-data.mdmarkdown12.5 KB
references/workflow-18-vehicle-classification.mdmarkdown12.8 KB
references/workflow-19-ego-lane-inference.mdmarkdown10.0 KB
scripts/buildBestCropGrid.mother5.2 KB
scripts/openFile.mother716 B
scripts/plotActorCircles.mother3.5 KB
scripts/plotBEVAndCamera.mother4.2 KB

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.

----
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall