OSC2 Studio

A web-based OpenScenario2 Studio — edit, validate in real-time, and preview 3D scenes. No installation required.

Launch Studio → Documentation →

About OSC2 Studio

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

Everything you need for professional OpenScenario2 development, right in your browser.

🎬

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 and Chinese.

🔒

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.

1

Open in Browser

No installation needed — just open the app

2

Log In or Guest

Log in or continue as a guest to start editing

3

Write OSC2 Code

Syntax highlighting and code completion as you type

4

Real-time Validation

Syntax and semantic errors flagged instantly

5

3D Preview

Click preview to visualize your scenario

6

Download

Export your completed scenario for simulation


Support OSC2 Studio

If you find this tool useful, consider supporting its development.

WeChat QR Code
WeChat Pay
Scan the QR code to donate
PayPal
100% secure payment via PayPal