PDA

View Full Version : Serialize texture



biGGer
12-14-2010, 06:39 AM
Is there a way to get the texture raw data as the byte-array, or something like that ?

Solid Snake
12-14-2010, 06:55 AM
Nope. Not unless you do something with DLLBind. The point of Unreal Engine is to abstract these sorts of messy details away from the developers.

biGGer
12-14-2010, 04:49 PM
but i still need to get the raw data somehow, right ?
in the Texture source i saw

var native const UntypedBulkData_Mirror SourceArt{FByteBulkData};
and it has a pointer, but i can't pass pointer to dll type, dllbind doesn't support this.

Solid Snake
12-14-2010, 06:37 PM
Well you can get C to load the package and texture and then pass Unrealscript the array of bytes... if you really wanted to. Secondly, the Source Art for textures don't exist in cooked packages.