POV-Ray : Newsgroups : povray.binaries.images : checkered sphere on a chrome plane Server Time
7 Nov 2024 15:32:30 EST (-0500)
  checkered sphere on a chrome plane (Message 1 to 6 of 6)  
From: SomeOne
Subject: checkered sphere on a chrome plane
Date: 8 Jul 2004 14:02:30
Message: <40ed8c36@news.povray.org>
I thought I'd try something different as an exercise. I want to create a
chechered sphere.
Trying to make a sphere with a checkered pigment won't give nice results. So I
thought I'd try my hand a "image_map"ing. I created an image_map (see attached
checker.png) and created a sphere with an image_map like this:

sphere{
 0,1
 pigment {
      image_map {png "checker.png"}
      scale 0.2
  }
}

What I don't get is how to make the image map wrap the entire sphere nicely.
I'd be interested to hear how you pro's do this.

-- 
-- 
M.E.J.R.Hendrix
a s o e
u t r n
r e i s
i r e
c   n
e


Post a reply to this message


Attachments:
Download 'checker.png' (3 KB) Download 'checkered sphere.png' (81 KB)

Preview of image 'checker.png'
checker.png

Preview of image 'checkered sphere.png'
checkered sphere.png


 

From: nomail
Subject: Re: checkered sphere on a chrome plane
Date: 8 Jul 2004 14:20:00
Message: <web.40ed8f9edb70ad089a7b3b070@news.povray.org>
"SomeOne" <ask### [at] yahoocouknospam> wrote:
> What I don't get is how to make the image map wrap the entire sphere nicely.
> I'd be interested to hear how you pro's do this.

Try this:
sphere { 0, 1
  pigment { uv_mapping checker scale 0.1 }
}

See "uv_mapping" in POV-Ray's tutorial.

Boa Sorte !!!! (Good Luck), Wagner


Post a reply to this message

From: Ross
Subject: Re: checkered sphere on a chrome plane
Date: 8 Jul 2004 14:20:26
Message: <40ed906a@news.povray.org>
"SomeOne" <ask### [at] yahoocouknospam> wrote in message
news:40ed8c36@news.povray.org...
> I thought I'd try something different as an exercise. I want to create a
> chechered sphere.
> Trying to make a sphere with a checkered pigment won't give nice results.
So I
> thought I'd try my hand a "image_map"ing. I created an image_map (see
attached
> checker.png) and created a sphere with an image_map like this:
>
> sphere{
>  0,1
>  pigment {
>       image_map {png "checker.png"}
>       scale 0.2
>   }
> }
>
> What I don't get is how to make the image map wrap the entire sphere
nicely.
> I'd be interested to hear how you pro's do this.
>

map_type 1 ( pov help section "3.4.12.7.2  The map_type Option") should
help, such as

pigment {
 image_map {png "checker.png" }
 map_type 1
 scale 0.2
}

why didn't using the builtin checker pattern work?


Post a reply to this message

From: SomeOne
Subject: Re: checkered sphere on a chrome plane
Date: 8 Jul 2004 14:29:15
Message: <40ed927b@news.povray.org>
Bee-rrrrilll-iant!

Thanks!

<nomail@nomail> schreef in bericht
news:web.40ed8f9edb70ad089a7b3b070@news.povray.org...
| "SomeOne" <ask### [at] yahoocouknospam> wrote:
| > What I don't get is how to make the image map wrap the entire sphere
nicely.
| > I'd be interested to hear how you pro's do this.
|
| Try this:
| sphere { 0, 1
|   pigment { uv_mapping checker scale 0.1 }
| }
|
| See "uv_mapping" in POV-Ray's tutorial.
|
| Boa Sorte !!!! (Good Luck), Wagner
|


Post a reply to this message

From: Mike Raiford
Subject: Re: checkered sphere on a chrome plane
Date: 8 Jul 2004 14:29:23
Message: <40ed9283$1@news.povray.org>
SomeOne wrote:

> I thought I'd try something different as an exercise. I want to create a
> chechered sphere.
> Trying to make a sphere with a checkered pigment won't give nice results. So I
> thought I'd try my hand a "image_map"ing. I created an image_map (see attached
> checker.png) and created a sphere with an image_map like this:
> 
> sphere{
>  0,1
>  pigment {
>       image_map {png "checker.png"}
>       scale 0.2
>   }
> }
> 
> What I don't get is how to make the image map wrap the entire sphere nicely.
> I'd be interested to hear how you pro's do this.
> 
> 

This will get the checkered sphere you were looking for:

sphere{
  0,1
  pigment {

       checker rgb 0 rgb 1
       scale 0.1
       warp { spherical }
  }

Change the pigment pattern to the following to use an image map. Note 
this will stretch the entire image to the sphere. To get smaller checks, 
use smaller checks in the image map:

  image_map {png "checker.png" map_type 1}
       scale 0.2

-- 
~Mike


Post a reply to this message

From: SomeOne
Subject: Re: checkered sphere on a chrome plane
Date: 8 Jul 2004 14:30:19
Message: <40ed92bb@news.povray.org>
"Ross" <rli### [at] everestkcnet> schreef in bericht
news:40ed906a@news.povray.org...
|
| why didn't using the builtin checker pattern work?
|

The checker pattern is a 3D pattern of blocks the sphere is made by apparantly
cutting out a sphere from a infinite box of black and white blocks in a 3D
checkered pattern. The result is shown in the attached image. The uv_mapping
option as suggested by Wagner works like a charm.


Post a reply to this message


Attachments:
Download 'checkered sphere.png' (71 KB)

Preview of image 'checkered sphere.png'
checkered sphere.png


 

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