-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Can't find assets #98
Comments
Hi! Thanks for reporting this. Interesting! Looks like a regression, likely my fault for not checking the newer file loading code thoroughly on Windows. I don't have a Windows box on hand to start debugging right now, but it looks like the issue is likely in Specifically we get two forward slashes, since we reconstruct the full path to the mtl file in Could you try substituting that getFilePath() function with this one below, and see if it works? I can test it myself later this week as well if you're busy.
|
Thank you for your reply. I tested with the given modification but still have the issue. ': No such file or directory Can't access './input/tonni.mtl
': No such file or directory Can't access './input/newScene.mtl
': No such file or directory Can't access './input/torus.mtl
': No such file or directory Can't access './input/teapot.mtl
': No such file or directory Can't access './input/teapot_green.mtl |
@mandyedi Is that under Visual Studio? If so, c-ray assumes you're using relative paths from the current working directory. Try setting the CWD to the project root directory. The earlier invocation you showed:
from the command prompt looks to be doing this correctly already, so that should work. |
+1 I have this same issue currently on Windows. It can't find the assets and crashes. |
I fired up a Win10 VM and took a look. I think I resolved the file loading + crashing issue. Turns out, they were two unrelated problems. Resolved by #101 |
I tested it and works fine. |
Great to hear! Closing this as resolved, then. |
Hi vkoskiv,
I built a release following your instructions and when I run
it gives the following errors:
If I run it from Visual Studio and set command line arguments to c:\github\c-ray\input\scene.json, it gives the following errors:
I started to debug it. Do you have any workaround or is it a known issue?
The text was updated successfully, but these errors were encountered: