Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#133 apparent shader syntax error

open
nobody
None
5
2011-03-03
2011-03-03
Tony Keele
No

senario:
compile pixie 2.2.6 on Slackware 13.1 and set the enviroment variables as documentation
run rndr teapot.rib
result:
rather boring teapot and a set of error messages in the form:
./teapot.rib (n): Error in shader "/opt/pixie/shaders/xxxxx.sdr" (0) ("syntax error") (v2.2.6)
./teapot.rib (n): Failed to find shader "xxxxx"
(where n is a line number and xxxxx is the shader name)
diagnosis:
The text files in pixie/shaders are in DOS format with CR/LF line endings while the parser is expecting UNIX files with single \n
and the extra character does not parse
solution:
use the fromdos command (see man pages) to convert the shader files to unix format
result:
much more interesting teapot and no error messages!

Discussion