4 posts / 0 new
Last post
ForumImport
Offline
Last seen: 9 years 10 months ago
Joined: 09/22/2009 - 18:47
Unable to find shader...

This message was originally posted by Nobody/Anonymous on 10/25/2006 13:23:31
Hi.
I run K3D (0.6.3.1) with Pixie (1.7.6) on Linux (SUSE Linux Enterprise Desktop 10), but when I push \"render preview\" console display message - \"unable to find shader ...\" with name of shader. The preview is rendered, but on model is default shader. Pixie and K3D environment variables (PIXIE_HOME, PATH, LD_LIBRARY_PATH) are set properly. Please for sugestions.
PS. Sorry for my english :)

ForumImport
Offline
Last seen: 9 years 10 months ago
Joined: 09/22/2009 - 18:47
Unable to find shader...

This message was originally posted by Timothy M. Shead on 10/25/2006 14:01:30
Works for me, some suggestions on what to troubleshoot:
When you run a preview, K-3D writes your scene to disk as a RIB file, compiles the shaders for the scene, caches the compiled shaders so they won’t have to be recompiled the next time you preview/render, then starts Pixie to render the RIB file. So you need to verify that:
* Your shader cache directory exists.
* The shaders compiled without error and the compiled versions are in the shader cache.
* The RIB file contains the path to the shader cache so Pixie can find the compiled shaders.
Run K-3D from the command-line with verbose debugging enabled:
$ k3d --color --log-level debug --show-process
You should see the path to the shader cache in the first few lines of output:
[lt-k3d-bin] INFO: shader cache path: /home/username/.k3d/shadercache
Delete the shader cache directory so you’re starting from scratch, and re-run the program. When you preview, you should see the shaders being compiled in the console output, something along the lines of:
[lt-k3d-bin] INFO: spawn_sync: sdrc -I\"/home/tshead/k3d-0.6/share/shaders/surface\" -I\"/home/tshead/k3d-0.6/share/shaders\" -o \"/home/tshead/.k3d/shadercache/k3d_plastic.sdr\" \"/home/tshead/k3d-0.6/share/shaders/surface/k3d_plastic.sl\"
... you should not see any errors in the output. Following that, you should see Pixie being run:
[lt-k3d-bin] INFO: spawn_async: k3d-renderjob \"/home/tshead/.k3d/options.k3d\" \"/tmp/k3d-preview-79\"
[lt-k3d-renderjob] INFO: Starting Job /tmp/k3d-preview-79
[lt-k3d-renderjob] INFO: spawn_sync: k3d-renderframe \"/home/tshead/.k3d/options.k3d\" \"/tmp/k3d-preview-79/frame\"
[lt-k3d-renderframe] INFO: Loading options from /home/tshead/.k3d/options.k3d
[lt-k3d-renderframe] INFO: Starting Frame /tmp/k3d-preview-79/frame
[lt-k3d-renderframe] INFO: spawn_sync: rndr \"world.rib\"
[lt-k3d-renderframe] INFO: Completed Frame /tmp/k3d-preview-79/frame
[lt-k3d-renderframe] INFO: Saving options to /home/tshead/.k3d/options.k3d
[lt-k3d-renderjob] INFO: Completed Job /tmp/k3d-preview-79
Note that in my example, Pixie is running the file \"world.rib\", which is located in /tmp/k3d-preview-79/frame
If you follow the path and look at the contents of world.rib, you should see that the RIB file explicitly specifies the path to the shader cache, near the top of the file:
#Setup file search paths
Option \"searchpath\" \"shader\" [ \"/home/tshead/.k3d/shadercache:&\" ]
... verify that the search path points to the correct location, and that the compiled shaders are in that location.
In theory, you shouldn’t have to configure anything for all of this to work, so please let us know either way whether you find a discrepancy.
Cheers,
Tim

ForumImport
Offline
Last seen: 9 years 10 months ago
Joined: 09/22/2009 - 18:47
Unable to find shader...

This message was originally posted by Nobody/Anonymous on 10/26/2006 02:00:36
Hi.
I run K3D with this options: k3d --color --log-level debug --show-process. Shader cache path is: /home/qujo/.k3d/shadercache. I add sphere to scene and to sphere I add \"eyeball\" shader. When I render preview console display this messages:
[k3d-bin] INFO: spawn_sync: sdrc -I\"/opt/k3d-0.6.3.1/share/k3d/shaders/light\" -I\"/opt/k3d-0.6.3.1/share/k3d/shaders\" -o \"/home/qujo/.k3d/shadercache/k3d_pointlight.sdr\" \"/opt/k3d-0.6.3.1/share/k3d/shaders/light/k3d_pointlight.sl\"
Unable to create temporary file
[k3d-bin] INFO: spawn_sync: sdrc -I\"/opt/k3d-0.6.3.1/share/k3d/shaders/surface\" -I\"/opt/k3d-0.6.3.1/share/k3d/shaders\" -o \"/home/qujo/.k3d/shadercache/k3d_eyeball.sdr\" \"/opt/k3d-0.6.3.1/share/k3d/shaders/surface/k3d_eyeball.sl\"
Unable to create temporary file
[k3d-bin] INFO: spawn_async: k3d-renderjob \"/home/qujo/.k3d/options.k3d\" \"/tmp/k3d-preview\"
[k3d-renderjob] INFO: Starting Job /tmp/k3d-preview
[k3d-renderjob] INFO: spawn_sync: k3d-renderframe \"/home/qujo/.k3d/options.k3d\" \"/tmp/k3d-preview/frame\"
[k3d-renderframe] INFO: Loading options from /home/qujo/.k3d/options.k3d
[k3d-renderframe] INFO: Starting Frame /tmp/k3d-preview/frame
[k3d-renderframe] INFO: spawn_sync: rndr \"world.rib\"
Unable to find shader \"k3d_pointlight\"
Unable to find shader \"k3d_eyeball\"
In \"world.rib\" file shadercache path is correct.

ForumImport
Offline
Last seen: 9 years 10 months ago
Joined: 09/22/2009 - 18:47
Unable to find shader...

This message was originally posted by Timothy M. Shead on 10/26/2006 14:06:12
So, it seems as if there’s some problem compiling the shaders:
[k3d-bin] INFO: spawn_sync: sdrc -I\"/opt/k3d-0.6.3.1/share/k3d/shaders/light\" -I\"/opt/k3d-0.6.3.1/share/k3d/shaders\" -o \"/home/qujo/.k3d/shadercache/k3d_pointlight.sdr\" \"/opt/k3d-0.6.3.1/share/k3d/shaders/light/k3d_pointlight.sl\"
Unable to create temporary file
... the \"Unable to create temporary file\" message seems to be coming from sdrc. You might look to confirm that your shader cache directory exists, that you have correct permissions, etc. I’m assuming from the message that if you look in the shader cache the compiled *.sdr files aren’t there, which explains the subsequent render engine errors.
Try running the shader-compilation command directly on the command-line (you can just copy-and-paste the K-3D output). You should get the same result (error message), and you can troubleshoot it from there. Look at correct read permissions for the K-3D share directory, also.
Cheers,
Tim

Log in or register to post comments