Difference / blitzmax-assimp

Automatically exported from code.google.com/p/blitzmax-assimp
1 stars 0 forks source link

PATCH - No access to INCBIN resources (meshes) #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
to enable the meshes inclusion on main executable
these are 2 minimal changes:

-on tmodel.bmx 
file=openstream("littleendian::"+f_name$)
must be changed on:
file=readstream("littleendian::"+f_name$)

and

-on ttexture.bmx
Local TS:TStream = OpenFile(file$,True,False)
must be changed on:
Local TS:TStream = readFile(file$)

...

this fixes the loading of INCBIN meshes but textures can't be INCBIN-ed :( (but 
putted on same directory of main executable) this prevent to share proprietary 
3d models

Original issue reported on code.google.com by d...@3nt.net on 15 May 2011 at 8:41

GoogleCodeExporter commented 9 years ago
Hi,

I have the same wish to load from included binaries. I couldn't find the files 
you are referring to (tmodel), so I did it another way: I modified assimp.bmx 
and common.bmx so as to use the assimp function "aiImportFileFromMemory" when 
incbin is detected.

I attach my changes.

JM.

Original comment by jeanmari...@gmail.com on 16 Jan 2013 at 10:27

Attachments: