OSC2 Studio Introduction
OSC2 Studio is a web-based OpenScenario2 integrated development environment. It is not just a simple editor, but a comprehensive platform designed to help you write scenarios efficiently, detect syntax errors instantly, and verify effects conveniently — all in your browser with zero installation.
The editor implements the official OpenScenario2 standard, providing professional syntax highlighting, intelligent code completion, and real-time syntax & semantic error checking powered by a high-performance C++ core compiled to WebAssembly.
A standout feature is the integrated 3D scene preview — after writing a scenario, you can preview the driving scene directly within the editor, enabling rapid iteration and validation without switching between tools.
Whether you are developing autonomous driving simulations, researching traffic scenarios, or teaching OSC2, OSC2 Studio provides a smooth, efficient, and powerful workflow.
Core Features
🎬 3D Scene Preview
Preview your OpenScenario2 scenarios in real-time 3D directly within the editor. Visualize vehicle movements, road layouts, and event sequences to validate your scenario logic at a glance.
✅ Real-time Syntax & Semantic Validation
Instant feedback on syntax and semantic errors as you type. Our high-performance C++ engine checks your code against the official OpenScenario2 standard, catching errors early.
⌨️ Professional OSC2 Editor
A full-featured editor with advanced syntax highlighting, intelligent code completion, bracket matching, and code folding, providing a professional coding experience.
📋 Official Standard Compliance
Implements the official OpenScenario2 (OSC2) standard, supporting scenario, actor, action, event definitions, type system, unit declarations, and import statements.
⚡ High-Performance C++ Core
Core algorithms including parsing, semantic analysis, and 3D rendering are implemented in C++ and compiled to WebAssembly, delivering desktop-class performance in the browser.
🌐 Zero Installation
Fully web-based — open your browser and start creating scenarios instantly. No downloads, no setup, no configuration required.
📁 File Management
Upload existing OpenScenario2 files, download your creations, and manage your scenarios with the built-in workspace system.
🎨 Theme & i18n Support
Dark and light themes to suit your preference. Available in English, Chinese, German, and Japanese.
🔒 User Authentication
Secure login and guest access system. Create an account to save your work across sessions.
OpenScenario2 Support
OSC2 Studio provides comprehensive support for the OpenScenario2 language specification, including:
- → Scenario, actor, action, and event definitions
- → Type and unit declarations with physical quantity support
- → Control flow constructs (serial, parallel, one_of)
- → Physical quantities with SI unit system
- → Import and extend statements for modular scenario design
- → Semantic analysis: type checking, unit validation, reference resolution
Example Code
# Define a simple cut-in scenario
scenario CutInScenario:
ego: vehicle
npc: vehicle
do serial:
approach: parallel(duration: 10s):
ego.drive() with:
speed(60kph)
lane(1)
npc.drive() with:
speed(50kph)
lane(2)
cut_in: parallel(duration: 5s):
ego.drive() with:
speed(60kph)
npc.drive() with:
speed(55kph)
lane(1, at: end)
Getting Started
Getting started with OSC2 Studio is simple — just follow these steps:
- Open in Browser — No installation needed — just open the app
- Log In or Guest — Log in or continue as a guest to start editing
- Write OSC2 Code — Syntax highlighting and code completion as you type
- Real-time Validation — Syntax and semantic errors flagged instantly
- 3D Preview — Click preview to visualize your scenario
- Download — Export your completed scenario for simulation
User Manual
- Quick Start — Create your first scenario from scratch
- Workspace Management — Manage files and projects
- Editor Guide — Editor features in detail
- Scenario Authoring — Learn to write OSC2 scenarios
- Frequently Asked Questions — Troubleshooting
OpenSCENARIO2 Reference
- Language Overview — OSC2 language basics
- Syntax Reference — Complete syntax rules
- Type System — Data types and units
- Validation Rules — Validation rules explained