yoga icon indicating copy to clipboard operation
yoga copied to clipboard

Optimize already embedded textures

Open Breush opened this issue 6 years ago • 0 comments

In yoga/model/assimp.cpp, extract_image_nodes does not extract already embedded textures, they are ignored.

Keeping the very same convention than assimp, we could just fill imageNode with:

auto imageNode = new ImageNode();
imageNode->path = "*1"; // Same convention, the 1 is the index of the textures in scene->mTextures
imageNode->bytes = /* extract bytes for scene->mTextures */;
imageNode->bytes_length = /* extract bytes length */;

Breush avatar May 29 '18 07:05 Breush