<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 133: apparent shader syntax error</title><link>https://sourceforge.net/p/pixie/bugs/133/</link><description>Recent changes to 133: apparent shader syntax error</description><atom:link href="https://sourceforge.net/p/pixie/bugs/133/feed.rss" rel="self"/><language>en</language><lastBuildDate>Thu, 03 Mar 2011 21:59:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pixie/bugs/133/feed.rss" rel="self" type="application/rss+xml"/><item><title>apparent shader syntax error</title><link>https://sourceforge.net/p/pixie/bugs/133/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;senario:&lt;br /&gt;
compile pixie 2.2.6 on Slackware 13.1 and set the enviroment variables as documentation&lt;br /&gt;
run rndr teapot.rib&lt;br /&gt;
result: &lt;br /&gt;
rather boring teapot and a set of error messages in the form:&lt;br /&gt;
./teapot.rib (n): Error in shader "/opt/pixie/shaders/xxxxx.sdr" (0) ("syntax error") (v2.2.6)&lt;br /&gt;
./teapot.rib (n): Failed to find shader "xxxxx"&lt;br /&gt;
(where n is a line number and xxxxx is the shader name)&lt;br /&gt;
diagnosis:&lt;br /&gt;
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&lt;br /&gt;
and the extra character does not parse&lt;br /&gt;
solution:&lt;br /&gt;
use the fromdos command (see man pages) to convert the shader files to unix format&lt;br /&gt;
result:&lt;br /&gt;
much more interesting teapot and no error messages! &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tony Keele</dc:creator><pubDate>Thu, 03 Mar 2011 21:59:23 -0000</pubDate><guid>https://sourceforge.net2f5691f4052caba2437ff045ab6eaa1f9366bddc</guid></item></channel></rss>