Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed to load CornellBox-Water-Small-Light-Covered-Cube-Floor-No-Backwall.obj #1

Open
VCVina opened this issue Jun 18, 2022 · 1 comment

Comments

@VCVina
Copy link

VCVina commented Jun 18, 2022

First of all, thank you so much for sharing this code! This is the first and maybe one of the best photon mapping project I can learn in GitHub!

But I want to ask something about how to run this solution: I've finished CMake build and enter the .sln, but after I clicked Local Windows Debugger (under Release mode and x64) on solution, it shows that I can't load the obj file.

[2022-06-18 22:20:49.938] [info] [Camera] position: (0, 1, 6)
[2022-06-18 22:20:49.939] [info] [Camera] forward: (0, 0, -1)
[2022-06-18 22:20:49.939] [info] [Camera] right: (1, -0, 0)
[2022-06-18 22:20:49.939] [info] [Camera] up: (0, 1, 0)
[2022-06-18 22:20:49.939] [info] [PinholeCamera] focalLength: 2.4142134
[2022-06-18 22:20:49.939] [info] [Scene] loading: CornellBox-Water-Small-Light-Covered-Cube-Floor-No-Backwall.obj
[2022-06-18 22:20:49.940] [error] [Scene] failed to load CornellBox-Water-Small-Light-Covered-Cube-Floor-No-Backwall.obj : 
Cannot open file [CornellBox-Water-Small-Light-Covered-Cube-Floor-No-Backwall.obj]

I tried moving the model with materials to Include Directories, but that didn't seem to work either (since I haven't used tinyobjloader before, so forgive me if I'm wrong) I checked GitHub's tinyobjloader repo related content, but it didn't solve my problem.

Can you help me? Thank you very much!

I don't know if it has any effect, but I set project main not ALL_BUILD as start up project, and I put the model under /volppm/build/examples/main.dir

@yumcyaWiz
Copy link
Owner

Oh I see. Let me check out later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants