realvirtual.io
  • Building Digital Twins with Unity and realvirtual.io
  • Basics
    • Installation
    • Demo Model
      • Old Demo Model
    • Editor User Interface
      • Hierarchy Window
      • 3D Views
      • Quick Edit
      • Move Pivot Points (Pro)
      • Selection Window (Pro)
      • Material Window (Pro)
      • Measurement (Pro)
      • Kinematic Tool (Pro)
      • Model Checker
    • Runtime UI
      • Group Manager
      • Debug Console
      • Responsiveness
      • Runtime Persistence
    • Importing and exporting
    • Folder structure
    • Tutorial
    • Physics
    • CAD import (Pro)
      • CADLink (Pro)
      • CAD Checker (Pro)
      • CAD Updater (Pro)
    • Reusable Components (Prefabs)
    • Cadenas parts4cad
    • Publishing the Digital Twin
    • Revision management
  • News
  • Login & Download Updates (Pro)
  • Components & Scripts
    • Realvirtual
      • Environment Controller
    • MU, Source and Sink
      • Source
      • Sink
    • Motion and Kinematic
      • Drive
      • Kinematic
      • Group
      • Joint
      • CAM
      • TransportSurface
      • Guided Transport
      • Drive behavior
      • Chain
      • Chain element
      • Motion for developers
    • Sensors
      • Sensor
      • Measure
      • MeasureRaycast
    • Picking and Placing MUs
      • Grip
      • Gripper
      • Fixer
      • Pattern
    • Changing MUs
      • MaterialChanger
      • PartChanger
      • Cutter
    • Scene Interaction
      • 3D Buttons
      • Screen Overlay Buttons
      • Scene Selectables
      • Lamp
      • Interact3D
      • UI components
      • HMI components (Pro)
        • Start your own HMI
        • HMI Tab
        • HMI DropDown
        • HMI Puschbutton
        • HMI Switch
        • HMI Value
        • HMI Text
        • HMI Slider
        • HMI Message
        • HMI Marker
      • ModelZoo (Pro)
    • Interfaces
      • Interface Tools
        • Signal Manager
        • Signal Importer Exporter
        • Signal Catcher
        • OnValueChangedReconnect
      • Signal Importer / Exporter
      • ABB RobotStudio (Pro)
      • Denso Robotics (Pro)
      • EthernetIP (Pro)
      • Fanuc (Pro)
      • FMI
      • Igus Rebel
      • MQTT (Pro)
      • Modbus (Pro)
      • OPCUA (Pro)
      • PLCSIM Advanced (Pro)
      • RoboDK (Pro)
      • RFSuite (Pro)
      • SEW SimInterface (Pro)
      • Siemens Simit Interface (Pro)
      • Simit Shared Memory (Pro)
      • Simulink (Pro)
      • S7 TCP
      • TwinCAT (Pro)
      • TwinCAT HMI (Pro)
      • UDP (Pro)
      • Universal Robots (Pro)
      • Wandelbots Nova (Pro)
      • Websocket (Pro)
      • Windmod Y200 (Pro)
      • Custom Interfaces
    • Performance Tools
      • Combine Meshes (Pro)
      • Create Prefab (Pro)
      • Hierarchy Cleanup (Pro)
      • Mesh Optimizer (Pro)
      • Performance Optimizer (Pro)
    • Defining Logic
      • Unity Scripting
      • Behavior Graph
      • Logicsteps
      • Unity Visual Scripting
      • Recorder
    • Robot Inverse Kinematics (Pro)
    • Volume Tracking (Pro)
  • Multiplayer (Pro)
  • Extensions
    • ModelZoo
      • Beckhoff TwinCAT
      • Siemens S7
      • Denso Cobotta 1300
      • Wandelbots Nova Fanuc CRX
      • Universal Robots UR10
      • Fanuc Roboguide
    • realvirtual.io AIBuilder
      • realvirtual.io AI Builder Overview
      • Generate AI Training Data
      • AI Training
      • Testing AI in a Digital Twin
      • Deploying the AI
    • realvirtual.io Simulation
      • Conveyor Library
      • Path System
        • Path finding
        • Line
        • Curve
        • Workstation
        • Catcher
        • Pathmover
    • realvirtual.io Industrial Metaverse
      • Setup Guide
      • VR Modules
      • AR Modules
      • Multiuser
    • AGX Physics
    • VR Builder
    • CMC ViewR
  • Advanced Topics
    • Render Pipelines
    • Mixed Reality with Meta Quest3
    • Upgrade Guide
      • Upgrade to 2022
    • Open Digital Twin Interface
    • Usefull Addons
    • Improving Performance
    • Supported Platforms
    • Compiler Defines
    • For Developers
      • Important Classes and Interfaces
      • Assembly Definitions
      • Starting your development
      • Class documentation
      • realvirtual Init Sequence
      • realvirtualBehavior Lifetime Methods
      • Testing
    • Newtonsoft JSON
    • Troubleshooting
  • Release Notes
  • AI Digital Twin Assistant (GPT4)
  • License Conditions
Powered by GitBook
On this page
  • Overview
  • Properties
  • Customizing the Environment
Edit on GitHub
  1. Components & Scripts
  2. Realvirtual

Environment Controller

PreviousRealvirtualNextMU, Source and Sink

Last updated 5 months ago

Starting from realvirtual.io Version 6, the EnvironmentController leverages Unity's Universal Rendering Pipeline (URP) to provide enhanced visual fidelity and customization options.

You can find the EnvironmentController in realvirtual > Environments as part of the realvirtual Prefab in your scene.


Overview

The EnvironmentController provides three preset visual modes:

  • Default: A balanced environment for general use.

  • Dark: Suitable for low-light or nighttime scenarios.

  • White: Ideal for bright, minimalistic environments.

The component allows adjustments to floor size, fade effects, and toggling advanced features with straightforward controls.


Properties

Mode

  • Dropdown to select the desired environment mode: Default, Dark, or White.

When Advanced Mode is enabled:

  • A hidden Skybox is activated, creating a more immersive environment by enhancing lighting and shadows.

  • A sphere is added to hide the skybox and to show a uni-color background.

Floor

  • Size:

    • Numeric input to specify the floor size in Meter.

  • Fade:

    • Checkbox to enable or disable the fading effect on the floor.


Customizing the Environment

The recommended way to customize the Environment Controller is by overwriting the values of the real irtual prefab in your scene. This approach ensures that your changes are scene-specific while maintaining compatibility with the RealVirtual framework.

Prefab Structure

Each visual setup is organized as a sub-gameobject within the prefab. These sub-gameobjects are activated dynamically based on the current visual mode setting. The three primary modes included are:

  • Dark Mode

  • Default Mode

  • White Mode

Each mode contains the following key components:

1. Sun

  • Represents the primary directional light source for the scene.

  • Customize the intensity, color, and angle of the light for desired effects.

2. Floor

  • Defines the material and rendering properties for the ground plane.

  • Update the floor's texture, material properties, or color to match your scene's aesthetics.

3. Sky

  • Manages the skybox or atmospheric effects.

  • Customize the sky material to change the overall ambiance of the environment.

Effects and Post-Processing

Under the Effects section of each sub-gameobject, you will find settings related to post-processing. These can be tailored to adjust the mood, tone, and visual clarity of the scene. Common properties include:

  • Bloom: Adjust intensity and threshold for glow effects.

  • Color Grading: Modify contrast, saturation, and color tones.

  • Ambient Occlusion: Enhance shadow details for better depth perception.

  • Motion Blur: Add a sense of motion for dynamic scenes.

  • Vignette: Focus viewer attention by darkening edges.

Environment - Default Mode
Environment - Dark Mode
Environment - White Mode
Environment - Advanced Mode deactivated
Environment - Advanced Mode activated