|
|
I am trying to do my very first animation, this is what I get
error: object or directive expected but translate found instead
retuned from renderer (non-zero return value)
here is my script. Whats wrong?
// Persistance of Vision Raytracer V3.1
// World definition file.
//
// Contains 1 lights, 2 materials and 3 primitives.
//
// This file was generated for POV-Ray V3.1 by
// Moray V3.1 For Windows (c) 1991-1998 Lutz + Kretzschmar
//
// Date : 06/18/1999 (18.06.1999)
//
/*
The text between these two comments is in MorayPOV.INC and is
automatically included in all POV files that Moray exports.
*/
default {
texture {
pigment { rgb <1,0,0> }
}
}
/* // Scene Comment
This scene was created with Moray For Windows.
*/ // End Scene Comment
#include "AutoClck.mcr"
global_settings {
adc_bailout 0.003922
ambient_light <1.0,1.0,1.0>
assumed_gamma 1.9
hf_gray_16 off
irid_wavelength <0.247059,0.176471,0.137255>
max_intersections 64
max_trace_level 10
number_of_waves 10
radiosity {
brightness 3.3
count 100
distance_maximum 0.0
error_bound 0.4
gray_threshold 0.5
low_error_factor 0.8
minimum_reuse 0.015
nearest_count 6
recursion_limit 1
}
}
background { color <0.000,0.000,0.000> }
camera { // Camera StdCam
location < -12.000, -20.000, 15.000>
direction < 0.0, 0.0, 1.8317> // Aperture is 0.53
degrees
sky < 0.00000, 0.00000, 1.00000> // Use right
handed-system
up < 0.0, 0.0, 1.0> // Where Z is up
right < 1.33333, 0.0, 0.0> // Aspect ratio
look_at < 0.000, 5.886, 8.828>
}
//
// ******* L I G H T S *******
//
light_source { // Light1
<0.000, -20.000, 20.000>
color rgb <1.000, 1.000, 1.000>
}
// Moray V3.1 For Windows (c) 1991-1998 Lutz + Kretzschmar
//
//
// ******** MATERIALS *******
//
#include "myanim1.inc"
//
// ******** REFERENCED OBJECTS *******
//
//
// ******** OBJECTS *******
//
sphere { // Sphere001
<0,0,0>,1
material {
ChromeTexture
}
scale <10.0, 10.0, 1.0>
}
translate
From <0.0, -11.003394, 11.131341>
Using ( "", 1, 1, "")
To (1, <0, -100, 10>)
object { // HgtFld001
height_field {
tga "C:\My Documents\3Dmodels\mtfrractal1.tga"
water_level 0.0
smooth
}
rotate <-90, 0, 0> // Turn onto XY plane. Now points along -Z
scale < 2, 2,-2> // Scale to Cube size. Now points along +Z
translate < -1,-1,-1> // Center around origin
material {
Mountains1
}
scale <100.0, 100.0, 10.0>
}
Post a reply to this message
|
|
|
|
Steven wrote:
>
> I am trying to do my very first animation, this is what I get
> error: object or directive expected but translate found instead
>
> retuned from renderer (non-zero return value)
>
> here is my script. Whats wrong?
Whenever you get that warning start counting left and right curly braces
i.e. {} for every left brace there must be a left brace. In your code you
have a right brace closing the sphere object before the translate operation
so Pov is returning the warning you are seeing. See arrow where brace it
wrongly placed.
> sphere { // Sphere001
> <0,0,0>,1
> material {
> ChromeTexture
> }
> scale <10.0, 10.0, 1.0>
====>}
> translate
--
Ken Tyler
mailto://tylereng@pacbell.net
Post a reply to this message
|
|
|
|
thanks Ken, you can tell I don't like working with text, I am not a
programmer just a copy and paste hack :-)
Ken <tyl### [at] pacbellnet> wrote in message
news:376A968C.A9E3FB79@pacbell.net...
>
>
> Steven wrote:
> >
> > I am trying to do my very first animation, this is what I get
> > error: object or directive expected but translate found instead
> >
> > retuned from renderer (non-zero return value)
> >
> > here is my script. Whats wrong?
>
> Whenever you get that warning start counting left and right curly braces
> i.e. {} for every left brace there must be a left brace. In your code you
> have a right brace closing the sphere object before the translate
operation
> so Pov is returning the warning you are seeing. See arrow where brace it
> wrongly placed.
>
> > sphere { // Sphere001
> > <0,0,0>,1
> > material {
> > ChromeTexture
> > }
> > scale <10.0, 10.0, 1.0>
> ====>}
> > translate
>
>
> --
> Ken Tyler
>
> mailto://tylereng@pacbell.net
Post a reply to this message
|
|