POV-Ray : Newsgroups : povray.general : input error : Re: input error Server Time
31 Jul 2024 10:23:46 EDT (-0400)
  Re: input error  
From: kurtz le pirate
Date: 23 Apr 2007 13:31:48
Message: <kurtzlepirate-ED9378.19314723042007@news.povray.org>
In article <web.462cd8f81f57cbd152cb473b0@news.povray.org>,
 "Peter" <nomail@nomail> wrote:

> hello,
>  I am new here and like to get a 3D image from a normal grayscale gif image.
> 
> What I made:
> ---------------------------------------
> // das bild
> #declare inpfile = "bild.gif"
> // die Farben
> #declare himmel = rgb <.4,.4, 1>
> #declare daten = rgb <2.5,1.7,0>*.8
> // die Kamera
> camera{
>        location <0, 10, -10>    // Kamera-Koordinaten
>        look_at <0, 0, -1.3>     // Kamera-Blickpunkt
>        angle 40
> }
> background { himmel }
> light_source{ < -1000,1000,-1000> .8}
> light_source{ <  1000, 000, 1000> .2 shadowless}
> light_source{ <   000,1000,  000> .2 shadowless}
> height_field {
>              gif inpfile
>              smooth
>              translate <-.5, -.5, -.5>
>              rotate <0, 0, 0 >
>              scale <10, 1, 10>
>              pigment {daten}
> }
> -------------------------------------------------
> But the result is only the error file with:
> Scene File Parser Initialization Error: Cannot open input file.
> 
> What is the right directory for my input picture ? Or what is my error ?
> 
> Thank you
> Peter


 - put the .gif file in the same directory as the .pov file
 - add a ";" afet each #declare statements :
    #declare inpfile = "bild.gif";
    #declare himmel = rgb <.4,.4, 1>;
    #declare daten = rgb <2.5,1.7,0>*.8;


-- 
klp


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.