Apertus
  • Documentation
  • Introduction
    • Definitions
      • Coordinate systems
      • Primitives
    • Features
      • Basic
        • Nodes
        • Light sources
        • Geometries
        • Primitives
        • Texts
      • Environment simulation
        • Water
        • Sky
        • Terrain
      • Browser
      • UI technologies
        • HTML UI
        • Presentation
        • Gallery
      • PointCloud
      • 360
        • 360 Images
        • 360 Videos
      • 3D Model Formats
      • Scene Sharing
        • Multiplayer
      • Video and Voice Chat
      • Hand Tarcking
        • Leap Motion
      • Head Tracking
        • Fob
      • Displays
        • Multi Display
        • Cave System
        • HMDs
      • Industry
        • IoT, and Sensors
        • Robot monitoring
        • Robot calibration
  • Developers
    • Development Cycle
    • Architecture
      • Project folders
      • Configuration ecosystem
    • API
      • C++ API
      • JavaScript API
      • HTTP REST API
    • Getting Started
      • Creating a plugin
      • Creating a sample
  • Contribute
    • Report a Bug
    • Suggest a Feature
  • Tutorial - How to visualize CAD models in VR
    • Introduction
    • Import CAD Models
    • Convert CAD Models
    • Create Low-poly from CAD Models
    • Create Photorealistic CAD Models
  • Plugins - Photorealistic Render
  • Plugins - Physics
  • Tutorial - How to visualize Tensorflow training in VR
  • Tutorial - Virtual Learning Factory Toolkit Gamification
  • Overview
    • Introduction
    • Architecture
    • Use Cases
  • Installation
    • Windows
    • Android
      • How to use
      • Writing an application
    • MacOS
  • Build
    • Windows
      • How to build the source on Windows
    • Android
    • MacOS
  • Plugins on Windows
    • Photorealistic Render
      • How to use
      • How to configure
      • Features
      • Sample
    • Physics
      • How to use
      • How to configure
      • Features
      • Samples
      • Demo video
  • Plugins on Android
    • Java Native Interface
      • How to use
      • Extending the API
    • Filament render
      • How to use
      • How to configure
      • Developers
  • Plugins on MacOS
    • Untitled
  • Samples on Windows
    • Deep learning
      • Untitled
      • Use the Fastai-PythorchVR Sample
      • Use the HTTP API
      • Create HTTP Requests from Python
      • Demo video
    • Virtual Learning Factory Toolkit Gamification
      • Installation
      • Lobby - User Interface
      • Local - User Interface
      • Student - User Interface
      • Teacher - User Interface
      • VLFT Gamification Session
      • VR Mode
  • Virtual Learning Factory Application
    • Installation on Windows
    • Installation on Apple
    • Lobby
    • Single Player
    • Multi Player - Student
    • Multi Player - Teacher
Powered by GitBook
On this page
  1. Plugins on Windows
  2. Photorealistic Render

How to configure

PreviousHow to useNextFeatures

Last updated 5 years ago

The plugin can be configured through the ApeOgre21RenderPlugin.json file.

You can set various configurations here. The RenderSystem option can be set as DX11 or OGL. In the renderWindos options you can specify the number of windows and their parameters like name, resolution, misc parameters, viewports, etc.

The apeOgre21RenderPlugin answers the following event groups:

  • NODE

  • LIGHT

  • CMAERA

  • GEOMERTY_FILE

  • GEOMETRY_INDEXEDFACESET

  • GEOMETRY_INDEXEDLINESET

  • MATERIAL_FILE

    • MATERIAL_FILE_SETASSKYBOX

    • MATERIAL_FILE_TEXTURE

    • MATERIAL_FILE_GPUPARAMETERS

  • MATERIAL_PBS

The GEOMETRY_FILE event group is responsible for loading object from .mesh files.

You can call these events from your own plugins in ApertusVR. To create your own plugin use this guide:

Configuring glTF:

If you are using .glTF files you have addicional configuring options in apeAssimpAssetLoaderPlugin.json at ..\ApertusVR\samples\MyScene\configs\myconfig\apeAssimpAssetLoaderPlugin.json.

To load .glTF files:

  1. Open apeAssimpAssetLoaderPlugin.json at ..\ApertusVR\samples\MyScene\configs\myconfig\apeAssimpAssetLoaderPlugin.json.

  2. Add your glTF files to "assets" in the following format:

{
    "file": "/plugins/assimpAssetLoader/resources/MyFile.gltf",
    "mergeAndExportMeshes": false,
    "scale": [ 10, 10, 10 ],
    "position": [ 0, 0, 0 ],
    "orientation": [ 1, 0, 0, 0 ],
    "regenerateNormals": false,
    "rootNodeName": "MyFile"
}

You can set the scale, position, orientation to your liking.

To add more than one file:

{
 "file": "/plugins/assimpAssetLoader/resources/MyFile.gltf",
 "mergeAndExportMeshes": false,
 "scale": [ 10, 10, 10 ],
 "position": [ 0, 0, 0 ],
 "orientation": [ 1, 0, 0, 0 ],
 "regenerateNormals": false,
 "rootNodeName": "MyFile"
},
{
 "file": "/plugins/assimpAssetLoader/resources/MyFile2.gltf",
 "mergeAndExportMeshes": false,
 "scale": [ 10, 10, 10 ],
 "position": [ 0, 50, 0 ],
 "orientation": [ 1, 0, 0, 0 ],
 "regenerateNormals": false,
 "rootNodeName": "MyFile2"
}

In the end the apeAssimpAssetLoaderPlugin.json should look like the following:

{
  "assets": [
    {
      "file": "/plugins/assimpAssetLoader/resources/MyFile.gltf",
      "mergeAndExportMeshes": false,
      "scale": [ 10, 10, 10 ],
      "position": [ 0, 0, 0 ],
      "orientation": [ 1, 0, 0, 0 ],
      "regenerateNormals": false,
      "rootNodeName": "MyFile"

    },
    {
      "file": "/plugins/assimpAssetLoader/resources/MyFile2.gltf",
      "mergeAndExportMeshes": false,
      "scale": [ 10, 10, 10 ],
      "position": [ 0, 50, 0 ],
      "orientation": [ 1, 0, 0, 0 ],
      "regenerateNormals": false,
      "rootNodeName": "MyFile2"

    }
  ]
}
Creating a plugin
ApeOgre21RenderPlugin.json