Imports 3D assets (models) from file. More...
#include <sceneview/asset_importer.hpp>
Static Public Member Functions | |
static Scene::Ptr | ImportFile (ResourceManager::Ptr resources, const QString &fname, const QString &resource_name=ResourceManager::kAutoName) |
Imports assets from a file. More... | |
Imports 3D assets (models) from file.
|
static |
Imports assets from a file.
fname | file name. This can also be a Qt resource specifier (e.g., ":/assets/model.obj") |
The following file formats are supported:
Textures are not currently supported.
On a successful import, a new Scene graph resource is created and added to the resource manager. To incorporate the imported asset into an existing scene, call Scene::MakeGroupFromScene() on the existing scene.