You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 3ds max i export my material textures as embedded data in the fbx.
The fbx file is much bigger than the one without embedded data, so textures are correctly stored in my fbx.
Using scene->getEmbeddedDataCount() or texture->getEmbeddedData() always returns me nothing.
In your code you seems to only consider videos as possible embedded data, right ?
Textures impages can also be embedded in the fbx.
int getEmbeddedDataCount() const override {
return (int)m_videos.size();
}
DataView TextureImpl::getEmbeddedData() const {
if (!media.begin) return media;
for (const Video& v : scene.m_videos) {
if (v.media.end - v.media.begin != media.end - media.begin) continue;
const size_t len = v.media.end - v.media.begin;
if (memcmp(v.media.begin, media.begin, len) != 0) continue;
return v.content;
}
return {};
}
Thank for your help
Eviral
The text was updated successfully, but these errors were encountered:
It's finally working, i was making a mistake.
I was ignoring VIDEOS and i finally understood that VIDEOS means EMBEDDED MEDIAS (textures, videos, sounds...)
Hello,
It seems that embedded textures is not working.
In 3ds max i export my material textures as embedded data in the fbx.
The fbx file is much bigger than the one without embedded data, so textures are correctly stored in my fbx.
Using scene->getEmbeddedDataCount() or texture->getEmbeddedData() always returns me nothing.
In your code you seems to only consider videos as possible embedded data, right ?
Textures impages can also be embedded in the fbx.
Thank for your help
Eviral
The text was updated successfully, but these errors were encountered: