|
![](/i/fill.gif) |
> On 23/04/2011 12:14 PM, MagicMojo wrote:
> Hi, If you look in the message pane you will get a hint to what is
> wrong. "color" must be in a pigment which must be in a texture. Sp try
> this:
>
> //updownarrows.pov
>
> #include "colors.inc"
>
> background { White }
>
> camera {
> location <14 0, -235> //-35 or -50, nearly same result (too close)
> direction <14, 0, 2.25>
> right x*1.33
> look_at <0,0,0>
> }
> #declare Dist=180.0;
> light_source {< 0, 2.5, -10> color White //-50, 25, -50
> fade_distance Dist fade_power 2}
>
> #declare downarrow = union
> {
> cylinder
> {
> <0,0,0>,<0,4,0>,2
> texture { pigment { color Green } }
>
>
> }
> cone //hollow?
> {
> <0,0,0>3,<0,-2,0>,0.3
> texture { pigment { color Green } }
> }
> }
And now, the arrows will ALWAYS be green!
>
> object {downarrow
> texture { pigment { color Green } }
> }
> object {downarrow
> texture { pigment { color Blue } }
> translate x*6
> rotate x*180
> translate y*2
> }
>
>
You should rotate before you relocate. Otherwise, it will orbitate
around the origin.
In this case, I'd rather use this construct:
union{// create a double pointed arrow
object{downarrow pigment{Green}}
oblect{downarrow pigment{Blue} scale<1, -1, 1> //mirror it verticaly
// add some transpate if needed
}// you can move it as one unit
}
The name and the 180 degree rotation seems to imply that you want a
double pointed arrow.
Alain
Post a reply to this message
|
![](/i/fill.gif) |