# Sample

The PhotorealisticScene sample is the example that shows our Photorealistic Render plugin in action. It has two configurations. When you start the sample you can choose two configurations: gltf or ogre\_mesh. The ogre\_mesh option is going to show you a scene with PBS materials loaded from a .mesh file.

![ogre\_mesh configuration](https://4044724383-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEyKyxZqxfQ560k-THK%2F-LnBj9mKsyKtql5JYdOf%2F-LnBwWEIBOUckeBZdWZ4%2Fogre21_sample01.PNG?alt=media\&token=592e4b5b-bd68-4870-bf87-58506b82b5c1)

The gltf option shows two glTF objects in the scene.

![gltf configuration](https://4044724383-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LEyKyxZqxfQ560k-THK%2F-LnD8wsLoT_NJ-ijxBKp%2F-LnDANp2GEJTtO0CIX6C%2Fogre21_sample02.PNG?alt=media\&token=199f9951-2e40-4a40-a4c0-4a82e3d284a9)

The sample is using the apePhotorealisticScenePlugin to create light and to load objects from .mesh files as seen on the first picture. On the other hand, when you are using glTF, the models are loaded with the apeAssimpAssetLoaderPlugin. **Be aware** that if you are using apeAssimpAssetLoaderPlugin in your own sample you should not call ape::Event::Type::GEOMETRY\_FILE\_FILENAME in your plugin with a .mesh file because that results in **crash**.
