-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
Relative paths not allowed when loading files? #136
Comments
Indeed, this is a bug. Full paths are supported, as loading files directly from the current directory, but it seems relative path make the library crash. Looking at it. |
Full paths cause some other trouble mentioned in #137 :) If you need to test something/or have somebody test stuff, feel free to boop me. |
Also apologies for the late reply to this issue. Indeed relative paths don't work well at all with this library, and for now i simply generate an absolute filepath using Technically I am not really bothered anymore by this "flaw" but let you decide whether you want to take a look once a gain, or close it for good. |
Hi,
I have been using relative paths whenever I write something, because it feels very natural and nobody is interfering with any path so far, but SharpGLTF tries to be smart here for no reason. Unless I am wrong.
After finding out how to load an actual file
via
It yelled at me that it can't find the file specified.
In my example the file is sitting in
Models/BarberShopChair_01_1k.gltf
relative to my .exe (and i confirmed its there, Assimp also has no trouble finding it)But passing that as
fileName
yielded the following exceptionIt adds another
Models
layer into my path.readSettings
also does not reveal any mode or option I can set to whatever make it work as is.Please advise.
The text was updated successfully, but these errors were encountered: