+1

Embedded Resources

Anonymous 10 years ago 0
This discussion was imported from CodePlex

qu1ckdry wrote at 2014-03-03 17:25:

Hey!

I've been enjoying the usefulness of this toolkit so far during this project! Now I'm thinking about releasing something and I'd like to embed the model I created. Is it possible to reference an embedded resource? I'd rather not release the .obj file along with my .exe.

I've read this article which uses a file stream to access a resource and I've been able to use it to open an embedded .3ds model, using:
MyModel = reader.Read(Assembly.GetExecutingAssembly().GetManifestResourceStream("HelixCs.e100.3DS"));
However I'm unable to open the texture file in the same way, nor was I able to get it working with .obj.

Any ideas how I can open an embedded model?

Thanks for any help!