Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment
Open

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

GoogleCodeExporter opened this issue Mar 13, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant