appleseed
appleseed copied to clipboard
Assume a default (lowest priority) search path for OSL shaders
Internally, appleseed should assume that there's always a default, lowest priority search path pointing to the shaders/
directory when looking for OSL shaders.
Plugins should then qualify shader names with the right subdirectory, e.g. max/as_max_bump_map.oso
.
hello,I'm Gsoc aspirant here, I want to contribute to Appleseed by fixing this issue. Can u help me out
@Ramanathi Let's talk about this in #dev on our discord.
We can use the resource paths for this. Each app / plugin could add the path with the default shaders to it. One easy way to locate resources is to dlopen / LoadLibrary appleseed's lib and ask the OS for the path to it
Looks fairly similar to issue #2732
Tripped on this today as well; had to add symlink in $HOME
which points to shaders
directory of system-wide appleseed installation as a quick'n'dirty fix.
I see this Application::initialize_resource_search_paths()
method in src/appleseed.shared/application/application.cpp
which does exactly that, i.e. sets default search path to root_path / "shaders"
, yet it does not end up on the project's list of paths at the time of the rendering.