|
![](/i/fill.gif) |
Nope, that didn't work. I don;t understand - does this same code work on
your machine?
d.
declare Wrapobject = object{
MySphereObject
texture { finish{ambient 1} }
Center_Trans(Wrapobject, x+y+z)
}//end object
"Batronyx" <bat### [at] alliancecable net> wrote in message
news:3c43b124$1@news.povray.org...
>
> "Dennis Milller" <dhm### [at] mediaone net> wrote in message
> news:3c424087$1@news.povray.org...
> > Hi. I changed your code to:
> >
> > #declare MySphereObject =
> > sphere{ 0,1
> > pigment{image_map { tga "d:\me\me001.tga"
> > map_type 1 interpolate 2 }
> > }
> > }
> >
> > #declare Wrapobject = MySphereObject
> > //finish{ambient 1}
> > Center_Trans(Wrapobject, x+y+z)}
> >
> >
> >
> >
> > and when I try to render it, first I get an error on the finish line.
When I
> > comment that out, I get an error in transforms.inc, line 116:
> > transform {translate -Axis*((Mx - Mn)/2 + Mn)}
> >
>
> In both cases it is because, as Hugo has pointed out, I forgot to use the
proper
> syntax. That's what I get for doing things in a hurry. Try this;
>
> #declare Wrapobject = object{
> MySphereObject
> finish{ambient 1}
> Center_Trans(Wrapobject, x+y+z)
> }//end object
>
>
> The above syntax is allowed for pigments, but if for some reason this
doesn't
> work, put a texture{} wrapper around the finish statement.
>
> I've been using PoV since 2.2, and I still don't always remember syntactic
> things. 95% of the time, I just keep the help file open for reference. You
may
> want to consider this. Especially if your depending on me :D
>
> --
> light_source{0,1}#macro c(J,a)sphere{0,1pigment{rgb z}scale a translate
J+O}
> #end#macro
B(R,V,O)c(0,4)intersection{c(V,R)difference{c(-z*4x+10)c(-z*4.1x+
> 10)c(0<7.5,45,5>)}}#end B(12,0z*25)B(8y*4<0,12,50>) // Batronyx
^"^
>
>
Post a reply to this message
|
![](/i/fill.gif) |