To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.rayOpen lugnet.cad.ray in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Ray-Tracing / 2674
2673  |  2675
Subject: 
Re: Bugs in rad_def.inc
Newsgroups: 
lugnet.cad.ray
Date: 
Wed, 2 Aug 2006 12:57:34 GMT
Viewed: 
7301 times
  
In lugnet.cad.ray, Niels Bugge wrote:
I'm trying to follow Koyan's rendering-tutorial in the Brickjournal 4:

Been slowly progressing through the multiple downloads necessary, both those
that were mentioned in the text (Todd's colours) and those who weren't (they're
hidden here if you want them:
<http://www.brickshelf.com/cgi-bin/gallery.cgi?f=163901>)

Hi Niels, I recently did this tutorial as well.

However, when trying to render pov-files, I get an error message in this line:

#include “rad_def.inc”

"Parse Error: Illegal charcter in input file, value is ffffff93"

I've tried to run rad_def.inc, but no errors show up...

Any ideas about what's wrong?

-NB

I think I had the exact same problem. I did get it to work, and the answer was
rather odd. This is the text that you are pasting into your POV file from the
tutorial, correct?

#version unofficial MegaPov 1.10;
#declare LDRAW_RAD_LEVEL = 5;
#declare LDRAW_MTL = 10;
#declare INDEXOFREFRACTION=1.52;
#declare LDRAW_RAD_NORMAL = off;
#declare LDRAW_RAD_MEDIA = off;
#include “rad_def.inc”
global_settings {
assumed_gamma 1.4
max_trace_level LDRAW_MTL
adc_bailout 0.01/2
radiosity {
Rad_Settings(LDRAW_RAD_LEVEL, LDRAW_RAD_NORMAL, LDRAW_RAD_MEDIA)
}
}
sky_sphere {
pigment {
gradient -y
color_map {
[ 1 rgb 1 ]
}
}
}

Okay, here's the trick that worked for me. Got to the line that says #include
“rad_def.inc” on your POV file and delete both of the quotation marks. Now add
the quotations again in the exact same places. You'll notice that the quotations
marks and rad_def.inc turn a bright red color when you add them again.

The problem was that when I was copying the code from the Brick Journal and then
pasting it in my POV file, POV-Ray wasn't properly recognizing the quotation
marks around "rad_def.inc". When I added the quotations marks again, then they
got recognized.

Hope this helps!

- David J. Perdue



Message has 1 Reply:
  Re: Bugs in rad_def.inc
 
(...) LOL! You're right, I simply forgot the FIRST rule when copying ANY code (from the internet): Always copy-paste via notepad to avoid crappy tags. Thanks a lot David, now excuse me for a while: gotta stand in the corner being ashamed of myself (...) (18 years ago, 2-Aug-06, to lugnet.cad.ray)

Message is in Reply To:
  Bugs in rad_def.inc
 
I'm trying to follow Koyan's rendering-tutorial in the Brickjournal 4: Been slowly progressing through the multiple downloads necessary, both those that were mentioned in the text (Todd's colours) and those who weren't (they're hidden here if you (...) (18 years ago, 2-Aug-06, to lugnet.cad.ray)

13 Messages in This Thread:





Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR