We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

How can I get texture?

Hi, Im concidering using Aspose.3D for load/save 3D model data.

Currently, Im testing load 3D object formats “FBX, OBJ, GLTF, GLB”
question is how can I get byte[] data for each texture map?

@HuePark

We are looking into your requirement and will get back to you soon.

@HuePark

Currently you can only get the byte[] from embedded texture. Texture.Content is the Property which will serve the purpose. Please let us know in case you need further assistance.

Can you support texture byte[] for “glb, gltf, obj”?

@HuePark

We will definitely look into it. Would you kindly provide your sample file so that we can investigate the feasibility accordingly.

https://drive.google.com/file/d/1vW8uwNGZSUBrcGDIZdhtrBMCeA72wXwa/view?usp=sharing
https://drive.google.com/file/d/1hsBPeOeeC7ikd8bImsqBvYqV8JTlQuTI/view?usp=sharing
https://drive.google.com/file/d/1aleLP-aF1HbCp1gybDNnvuv_m012u7YK/view?usp=sharing
https://drive.google.com/file/d/1p6xd7yV1PVZwJo8jgnZFmKWJ85E6Qwqi/view?usp=sharing

here few samples glb, obj, fbx.
everyone having texture.

when I load this file Texture.Contents is null.
also Texture.FilePath is incorrect.

I tested with “20.12.2” version can you check this issue?

@HuePark

We are checking this and will get back to you in a while.

@HuePark

We have logged a ticket as THREEDNET-817 in our issue tracking system for the investigation against your case presented in this forum thread. We will perform investigation and let you know as soon as the ticket is resolved. Please be patient and spare us some time.

We are sorry for the inconvenience.

@HuePark

Please check our comments in the linked thread of yours which will help you figure out how to get the texture data.

When Texture.Contents is empty and the image path corresponding to Texture.FilePath does not exist (the relative path of the file name does not exist, and the external file does not exist), the texture image can still be seen when opening the FBX file with other software. May I ask which other location in the FBX file the texture image I see is stored in, and how can I read the texture image data.

Free Stock Textures. Created by two photographers and artists, this website hosts a ton of textures all licensed under Creative Commons Zero.

@LIRA0306

We have recorded your feedback under the logged ticket and will let you know after analysis is done.

I tested with “20.12.2” version can you check this issue?
..

@LIRA0306

It depends on how the other software handles the texture file access, some may uses a predefined search directories, some may infer the base file name from Texture.FileName and try to find it in current directory or “{main file directory}\textures” or “{main file directory}\assets”.