Closed kaphula closed 4 years ago
Hi,
It should run directly from IDEA. I've tested with chapter 7 (p2) and seems to work fine, are you sure that in your working directory there is a textures folder with the texture file in it ? Either you don't have that file or either your working directory is not the project's root.
If I recall correctly, the code that uses assimp the folder for textures is passed as a parameter. The null you are getting seems to be caused by the loading of the model itself.
Let me know if some of this helps.
Hey, thanks for the quick reply. Setting the working directory correctly from the Run/Debug Configurations
fixed the issue. I totally forgot that the working directory can be (and needs to be) set this way manually.
I cloned this project and opened it with Intellij IDEA and everything seems to build nicely, but when I try to run the chapters that include loading resources, the programs throw exceptions:
Did I miss something obvious here? Do I need to manually edit the project configuration files somehow?
Changing absolute path for the texture filenames seems to fix the issue somewhat, but with chapter27 and Assimp
aiImportFile
seems to return null always.