|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hello klp,
thank you for this information. now it works ! but I have a lot to learn.
Peter
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> 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
|
|
| |
| |
|
|
|
|
| |
|
|