Sceneview
 All Classes Functions Variables Enumerations Enumerator Groups Pages
Static Public Member Functions | List of all members
sv::AssetImporter Class Reference

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...
 

Detailed Description

Imports 3D assets (models) from file.

Member Function Documentation

static Scene::Ptr sv::AssetImporter::ImportFile ( ResourceManager::Ptr  resources,
const QString &  fname,
const QString &  resource_name = ResourceManager::kAutoName 
)
static

Imports assets from a file.

Parameters
fnamefile name. This can also be a Qt resource specifier (e.g., ":/assets/model.obj")

The following file formats are supported:

  • All file formats supported by Assimp.
  • Renderware (.RWX) files.

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.


The documentation for this class was generated from the following file: