mosra / magnum-examples

Examples for the Magnum C++11 graphics engine
https://magnum.graphics/
The Unlicense
282 stars 95 forks source link

Creating my own glb #77

Closed Korotsu closed 4 years ago

Korotsu commented 4 years ago

Hello, I'm trying to change the model from the viewer example but I couldn't find a way to create my own glb file with blender... The glb file I exported from blender is not working, the error is: Opening file ../../magnum-examples/src/viewer/out.glb Trade::AbstractImporter::openFile(): cannot open file ../../magnum-examples/src/viewer/out.glb

I tried re building the example with the following line modified in the CMakeLists.txt: install(FILES out.glb DESTINATION ${MAGNUM_DATA_INSTALL_DIR}/examples/viewer) In the magnum installation's plugins I checked: -DWITH_ASSIMPIMPORTER=ON \ -DWITH_DDSIMPORTER=ON \ -DWITH_STBIMAGEIMPORTER=ON \ -DWITH_STBTRUETYPEFONT=ON \ -DWITH_TINYGLTFIMPORTER=ON

Am I doing something wrong ?

mosra commented 4 years ago

Hi! Sorry for the late reply, getting too many notification lately and only slowly catching up.

This error in 99% cases means it couldn't find the file, the remaining 1% is if the file can't be read (permission issue and such, not very common). Can you try with an absolute path instead (which you're sure exists)? That should work.

mosra commented 4 years ago

Closed for lack of activity.