POV-Ray : Newsgroups : povray.general : input error Server Time
28 Nov 2024 08:46:47 EST (-0500)
  input error (Message 1 to 4 of 4)  
From: Peter
Subject: input error
Date: 23 Apr 2007 12:10:02
Message: <web.462cd8f81f57cbd152cb473b0@news.povray.org>
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


Post a reply to this message

From: kurtz le pirate
Subject: Re: input error
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

From: Peter
Subject: Re: input error
Date: 23 Apr 2007 17:40:01
Message: <web.462d271aa8759dcc451aa15c0@news.povray.org>
hello klp,

thank you for this information. now it works ! but I have a lot to learn.
Peter


Post a reply to this message

From: Tim Attwood
Subject: Re: input error
Date: 23 Apr 2007 19:15:33
Message: <462d3e15$1@news.povray.org>
> thank you for this information. now it works ! but I have a lot to learn.
If you want to set up some other directory for files to come from
without having to copy them use Library_Path in the master ini...
Library_Path="C:\WINDOWS\Fonts"


Post a reply to this message

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