PacktPublishing / Mastering-Graphics-Programming-with-Vulkan

MIT License
514 stars 65 forks source link

Exits directly #43

Closed ohmaya closed 1 year ago

ohmaya commented 1 year ago

RaptorEngine_Chapter1_Debug.exe (process 91692) exited with code -1.

theWatchmen commented 1 year ago

Thanks for the report. We would a bit more information to understand what's going wrong. Have you run the bootstrap script to download the assets? If not, are you passing a glTF asset path when you start the process?

If you have done the above, could you provide the output of the console log?

theWatchmen commented 1 year ago

We haven't received an update on this, closing.

ohmaya commented 9 months ago
    if ( argc < 2 ) {
        printf( "Usage: chapter1 [path to glTF model]\n");
        InjectDefault3DModel();
    }
theWatchmen commented 9 months ago

Right, looks like you're not passing a glTF model to load in the command line. If you don't have glTF files already, there are instructions in the README (https://github.com/PacktPublishing/Mastering-Graphics-Programming-with-Vulkan#getting-the-code) to run the bootstrap script to download the glTF samples and the code above will work even if you don't pass the model as an argument to the program.

Let me know if this helps :)

ohmaya commented 9 months ago

Even if InjectDefault3DModel(), as long as the glTF is not there, finally it will crash. I had a hard time to clone the models (in China :D).