Using raw texture data in FBX SDK.

Using raw texture data in FBX SDK.

ndasWCK8S
Observer Observer
456 Views
2 Replies
Message 1 of 3

Using raw texture data in FBX SDK.

ndasWCK8S
Observer
Observer

Hello, does anyone know if FBX SDK accepts raw texture data of type unsigned char? I have an array of unsigned char pointed to by an unsigned char* pointer. I know that FBX reads texture files using FbxFileTexture. If anyone has any suggestions on how I can achieve something similar in behavior but with raw texture data, instead of image data.

0 Likes
457 Views
2 Replies
Replies (2)
Message 2 of 3

ilan.keshet
Enthusiast
Enthusiast

I don't understand why you need what you need. 

 

The FBX File Path should be enough, if the texture is embedded into FBX.  -- You can than open the image yourself and extract the raw data afterwards.

 

-- You just need to make sure that during export of the FBX the texture is embedded inside of it. 

0 Likes
Message 3 of 3

ndasWCK8S
Observer
Observer

I have 3D models that are available in a different storage format. And the textures in the format are available to me as raw data, i.e. unsigned char*. I need to convert that data to FBX textures for exporting from the current storage format to FBX. Is there any way to achieve it? At the moment, I have to use a custom function to convert the raw data to image data, such as PNG. Then I read the PNG files using FbxFileTexture. I would like to skip the conversion to PNG stage of the process.

0 Likes