POV-Ray : Newsgroups : povray.newusers : image on sphere is reversed. : Re: image on sphere is reversed. Server Time
5 Sep 2024 22:20:14 EDT (-0400)
  Re: image on sphere is reversed.  
From: Bob Hughes
Date: 25 Aug 1999 14:48:52
Message: <37c43a94@news.povray.org>
Change the "rotate <0,180,180>", it's turning the whole thing upside
down and around. Try 'rotate <0,180,0> instead to see. Also be careful
of using multiple vector values in a rotation rather than multiple
individual rotations. You can't control the order otherwise.

Bob

Chuck Roberts <rob### [at] accnorg> wrote in message
news:37C438BC.100EE10A@accn.org...
> Here is the pertinent code:
> #version 3
> #include "colors.inc"
> global_settings
> {assumed_gamma 1.0
> }
> #default {texture {pigment { color Red } } };
> // ----------------------------------------
> camera
> {
>   location  <0.0, 1.5, -6.0>
>   direction 1.5*z
>   right     4/3*x
>   look_at   <1.0, 0.0,  0.0>
> }
>
> file://Earth
> sphere
> {<0,0,0> 1
>   texture  { pigment
>     {
>       image_map
>       {
>         sys "earthmap.bmp" // supports gif, tga, png, sys (bmp)
>         map_type 1    // 1=spherical mapping
>         file://interpolate 2 // smooth it
>         once          // don't tile image, just one copy
>
>       }
>       // transform it to unit-size (-1 to +1)
> //        translate <0,180,0>
> //        scale .7              // make it unit-sized
>         rotate<0,180,180>      file://rotate on Y axis over n frames
>     }
>     finish {ambient 0.3}
>   }
>     scale 1
> }


Post a reply to this message

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