POV-Ray : Newsgroups : povray.newusers : image on sphere is reversed. Server Time
14 Nov 2024 02:23:33 EST (-0500)
  image on sphere is reversed. (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: Chuck Roberts
Subject: image on sphere is reversed.
Date: 25 Aug 1999 14:25:12
Message: <37C43548.91588E8E@accn.org>
Help! The image I wrapped around a sphere is reversed, like it is being
seen in a mirror. How do I unreverse it?


Post a reply to this message

From: Chuck Roberts
Subject: Re: image on sphere is reversed.
Date: 25 Aug 1999 14:34:56
Message: <37C43791.2E853723@accn.org>
Note: the image is in the correct orientation. It is stored as a BMP in
the OS2 subformat (the only subformat I could get to work.)

Chuck Roberts wrote:
> 
> Help! The image I wrapped around a sphere is reversed, like it is being
> seen in a mirror. How do I unreverse it?


Post a reply to this message

From: Ken
Subject: Re: image on sphere is reversed.
Date: 25 Aug 1999 14:35:22
Message: <37C43734.596672BD@pacbell.net>
Chuck Roberts wrote:
> 
> Help! The image I wrapped around a sphere is reversed, like it is being
> seen in a mirror. How do I unreverse it?

Could you provide us with the sphere statement along with the image_map
portion of the code. It is hard to second guess without an example to
work with. We don't need the image or the rest of the scene but a little
goes a long ways.

-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Chuck Roberts
Subject: Re: image on sphere is reversed.
Date: 25 Aug 1999 14:39:55
Message: <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>
}

//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
        //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>      //rotate on Y axis over n frames
    }
    finish {ambient 0.3}
  }
    scale 1
}


Post a reply to this message

From: Bob Hughes
Subject: Re: image on sphere is reversed.
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

From: Bob Hughes
Subject: Re: image on sphere is reversed.
Date: 25 Aug 1999 14:50:41
Message: <37c43b01@news.povray.org>
Oh, and never mind that 'once' keyword for spherical 'map_type 1',
doesn't do anything.

Bob

Bob Hughes <inv### [at] aolcom> wrote in message
news: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

From: Chuck Roberts
Subject: Re: image on sphere is reversed.
Date: 25 Aug 1999 15:19:51
Message: <37C44216.30839564@accn.org>
Bob Hughes wrote:
> 
> 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.

That doesn't work. No matter how I rotate it, the image is still
mirrored.


Post a reply to this message

From: Ken
Subject: Re: image on sphere is reversed.
Date: 25 Aug 1999 16:26:12
Message: <37C4512E.CE47BBAC@pacbell.net>
Chuck Roberts wrote:
> 
> Bob Hughes wrote:
> >
> > 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.
> 
> That doesn't work. No matter how I rotate it, the image is still
> mirrored.

I just tried this with an earthmap that I have and it worked for me. If you
are having a problem with the image you are using maybe you should try reversing
it in a paint program ?

//Earth
sphere {<0,0,0> 1
  texture {
     pigment  {
      image_map { sys "earthmap.bmp"  map_type 1 interpolate 2 }
                  translate -.5
                  rotate<0,180,0>
    }
    finish {ambient 0.3}
  }
    scale 1
}



-- 
Ken Tyler

See my 850+ Povray and 3D Rendering and Raytracing Links at:
http://home.pacbell.net/tylereng/index.html


Post a reply to this message

From: Bob Hughes
Subject: Re: image on sphere is reversed.
Date: 25 Aug 1999 16:33:29
Message: <37c45319@news.povray.org>
Works all right here. Just making the rotate <0,180,0> change (and
removing the semicolon from the default texture line)
I see the comment talking of "n frames" if you plan to animate this
use: rotate <0,180*clock,0>  instead.
Sorry you aren't getting the expected result there. I can't think of
anything else besides artificially turning it around.

Bob

Chuck Roberts <rob### [at] accnorg> wrote in message
news:37C44216.30839564@accn.org...
>
>
> Bob Hughes wrote:
> >
> > 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.
>
> That doesn't work. No matter how I rotate it, the image is still
> mirrored.


Post a reply to this message

From: Nieminen Juha
Subject: Re: image on sphere is reversed.
Date: 26 Aug 1999 03:44:10
Message: <37c4f04a@news.povray.org>
Ken <tyl### [at] pacbellnet> wrote:
: I just tried this with an earthmap that I have and it worked for me. If you
: are having a problem with the image you are using maybe you should try reversing
: it in a paint program ?

  Perhaps it's easier to apply a scale <-1,1,1> to the pigment?

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Goto Latest 10 Messages Next 1 Messages >>>

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