Jump to content

FBX IMPORT


photo

Recommended Posts

 

Hello

UNIGINE_API Importer

 

Can I check if there is no texture file when importing FBX file?

If so, I wonder if there is a way for the user to specify that Texture path. Thank you.

Link to comment

Hello,

You can get all the textures with ImportScene::getTextures();

This is a code scratch:

Importer *importer = Import::get()->createImporterByFileName("test.fbx"); //creating an importer 
ImportScene *scene = importer->init("test.fbx", ~0); // initializing with all available import flags
for(ImportTexture *t : scene->getTextures())
{
	Log::message("filepath %s original_filepath %s\n", t->filepath.get(), t->original_filepath.get()); //Here you can replace the original paths to the textures
}
importer->import("../data/1/"); // importing the file in the specified directory

You also can modify FBXImporter source code available in the Engineering SDK edition.

Thank you.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...