num3ric / Cinder-Skinning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash with model loadResource on Windows

num3ric opened this issue · comments

If a SkinnedVboMesh is created with loadResource(), the resource filepath passed to Assimp only works when the app is launched via Visual Studio. Launching the .exe manually causes a crash.

I should use the following logic instead:

https://github.com/richardeakin/Cinder-Audio2/blob/master/src/cinder/audio2/FileOggVorbis.cpp#L70

https://github.com/richardeakin/Cinder-Audio2/blob/master/src/cinder/audio2/msw/FileMediaFoundation.cpp#L180

Reviewing this: loading resources on Windows isn't really possible with Assimp since asset loading still rely on paths, even when extending its filesystem implementation (http://assimp.sourceforge.net/lib_html/usage.html).