Free Support Forum - aspose.com

Accessing Embedded Textures from an FBX File

I’m trying to grab an embedded texture from an FBX file that was created in max with “Embed Media” enabled. I’ve had a look but I can’t quite figure out how to accomplish that.

Scene.Open has various overloads, including those with LoadOptions which has a FileSystem you can set and get. Unfortunately there is no FBX derived LoadOptions.

I’ve looked at the API and have found Aspose.ThreeD.Utilities.FileSystem that has a LocalFileSystem and MemoryFileSystem implementations which seems like the right direction.

I’ve attached an fbx file that has an embedded texture in it. It is an ascii fbx and you can see the Content of the image (search for “Video: 2375559479168”)

Car.zip (473.2 KB)

@bortos

Thank you for contacting support,.

We would like to share with you that binary data of embedded texture is stored in the Content property which is exposed by Aspose.ThreeD.Shading.Texture class.

We hope this will be helpful. Please feel free to contact us if you need any further assistance.

Hi Farhan, thanks for the response

I had a check and the Content property of the texture in the above attached model is null.

I’ve double checked that the texture is embedded, and confirmed that other PC’s can view the textured 3d model after receiving only the .fbx file. The content property has a value in the ascii fbx file, and is retained when opening and saving Aspose.ThreeD.Scene.

@bortos

Thank you for the details.

We have been able to reproduce the issue in our environment. A ticket with ID THREEDNET-447 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.

Thank you for the quick reply Farhan