|
 |
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)}
the error says:
"Expected object or directive; transform found."
Any suggestions?
thanks,
D.
"Batronyx" <bat### [at] alliancecable net> wrote in message
news:3c4112f9@news.povray.org...
>
> "Dennis Milller" <dhm### [at] mediaone net> wrote in message
> news:3c3fafd2$1@news.povray.org...
> > Sorry, what is the exact syntax for the object in the Wrapobject field?
How
> > would put, say, a sphere with an image map?
> > And you have a "t" missing in image_height.
> > Thanks,
> > D.
>
> Sorry about the "t" :(
>
> <sdl>
>
> #declare MySphereObject =
> sphere{ 0,1
> pigment{image_map { png "test.png"
> map_type 1 interpolate 2 }
> }
> }
>
> #declare Wrapobject = MySphereObject
> finish{ambient 1}
> Center_Trans(Wrapobject, x+y+z)}
>
> </sdl>
>
> the confusion may have come from the "WrapTex" which isn't really used
anywhere.
> It is just there as a suggestion so that you could do this if you want:
>
> <sdl>
>
> #include "fancyobject.inc"
> #declare Wrapobject = MyFancyObject
> texture { Wraptex }
> Center_Trans(Wrapobject, x+y+z)}
>
> </sdl>
>
> Hope that helps.
>
>
> --
> 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
|
 |