# How to configure

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

![ApeOgre21RenderPlugin.json](/files/-LnBz42s-nrI7--KKq2W)

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&#x20;
* LIGHT&#x20;
* 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:

{% content-ref url="/pages/-L\_lAA5cGXAV7-64pDgK" %}
[Creating a plugin](/vr/developers/getting-started/creating-a-plugin.md)
{% endcontent-ref %}

#### 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"

    }
  ]
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://apertus.gitbook.io/vr/plugins-on-windows/photorealistic-render/how-to-configure.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
