POV-Ray : Newsgroups : povray.binaries.scene-files : where is the error? Server Time
2 Sep 2024 16:19:52 EDT (-0400)
  where is the error? (Message 1 to 2 of 2)  
From: RWard
Subject: where is the error?
Date: 21 Jan 2001 11:13:49
Message: <3a6b0abd$1@news.povray.org>
I have made some king of error here, but I can't find it....can anybody see
it?

// Persistence of Vision Ray Tracer Scene Description File
// File: ?.pov
// Vers: Unofficial Mega_Pov 0.6;
// Desc: Image Map Example
// Date: mm/dd/yy
// Auth: ?
//

#version 3.1

#include "colors.inc"
#include "shapes.inc"

global_settings
{
  assumed_gamma 1.0
}

// ----------------------------------------
camera
{
  location  <0.0, 0.0, -4.0>
  //direction 2*z
  //right     4/3*x
  look_at   <0.0, 0.0,  0.0>
}



light_source
{
  0*x // light's position (translated below)
  color red 1.0  green 1.0  blue 1.0  // light's color
  translate <-30, 30, -30>
}

// ----------------------------------------
plane
{
  y, -1
  texture
  {
    pigment {checker color rgb 1 color blue 1 scale 0.5}
    finish {reflection 0.2}
  }
}

plane
{
  z, -1
  texture
  {
    pigment
    {
      image_map
      {
        png "d:\naut.png"
        interpolate 2 // smooth it
        once   // don't tile image, just one copy

      }
      // transform it to unit-size (-1 to +1)
      translate -0.5*(x+y) // center on the origin
      scale 1           // make it unit-sized
      rotate <0,45,-45,>
    }
      finish {ambient 0.3 phong 2 phong_size 120 diffuse 1.2}

}




sphere
{
  <0, 0, 0> // center of sphere <X Y Z>
  0.5       // radius of sphere
  texture
  {
    pigment
    {
      image_map
      {
        png "d:\naut.png"
        interpolate 2 // smooth it
        once   // don't tile image, just one copy

      }
      // transform it to unit-size (-1 to +1)
      translate -0.5*(x+y) // center on the origin
      scale 1           // make it unit-sized

    }
    finish {ambient 0.3 phong 2 phong_size 120 diffuse 1.2}
  }
  // scale <1,2,1> // <= Note: Spheres can become ellipses by uneven scaling
}


}


Post a reply to this message

From: Ken
Subject: Re: where is the error?
Date: 21 Jan 2001 11:24:54
Message: <3A6B0DBA.5B5DB56B@pacbell.net>
RWard wrote:
> 
> I have made some king of error here, but I can't find it....can anybody see
> it?


> plane
> {
>   z, -1
>   texture
>   {
>     pigment
>     {
>       image_map
>       {
>         png "d:\naut.png"
>         interpolate 2 // smooth it
>         once   // don't tile image, just one copy
> 
>       }
>       // transform it to unit-size (-1 to +1)
>       translate -0.5*(x+y) // center on the origin
>       scale 1           // make it unit-sized
>       rotate <0,45,-45,>
>     }
>       finish {ambient 0.3 phong 2 phong_size 120 diffuse 1.2}
>   } <------------------------
> }

You forgot to close your texture statement. Add the "}" as indicated
by the arrow above.

-- 
Ken Tyler


Post a reply to this message

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