POV-Ray : Newsgroups : povray.binaries.images : chess on a torus - attempt 1 Server Time
14 Nov 2024 02:26:54 EST (-0500)
  chess on a torus - attempt 1 (Message 1 to 4 of 4)  
From: Greg Malivuk
Subject: chess on a torus - attempt 1
Date: 28 Aug 2004 23:15:00
Message: <41314a34@news.povray.org>
I know the radiosity effect is shoddy, but I figure there's no sense in
waiting more than a few minutes for what is far from the final version.

What I want to know is whether there's a simple way to do a checkered
mapping of textures onto a torus in the pattern shown below, rather than the
POV-Ray default of using the intersection of your surface and an infinite
array of cubes.


Post a reply to this message


Attachments:
Download 'checkeredtorus.jpg' (19 KB) Download 'chessonatorus.gif' (81 KB)

Preview of image 'checkeredtorus.jpg'
checkeredtorus.jpg

Preview of image 'chessonatorus.gif'
chessonatorus.gif


 

From: Greg Malivuk
Subject: Re: chess on a torus - attempt 1
Date: 28 Aug 2004 23:23:12
Message: <41314c20@news.povray.org>
btw, having gotten too big a headache trying to make my own chess pieces, I
just went ahead and used the ones from chesspiece1.inc, which comes with the
POV-Ray v3.6 install.

"Greg Malivuk" <gma### [at] umichedu> wrote in message
news:41314a34@news.povray.org...
> I know the radiosity effect is shoddy, but I figure there's no sense in
> waiting more than a few minutes for what is far from the final version.
>
> What I want to know is whether there's a simple way to do a checkered
> mapping of textures onto a torus in the pattern shown below, rather than
the
> POV-Ray default of using the intersection of your surface and an infinite
> array of cubes.
>
>
>


Post a reply to this message

From: Greg Malivuk
Subject: Re: chess on a torus - attempt 1
Date: 28 Aug 2004 23:47:40
Message: <413151dc$1@news.povray.org>
I should also point out that "the pattern shown below" was obtained by just
mapping a checkered bitmap onto the torus.  What I want to be able to do is
map an entirely different texture onto white squares than onto black
squares.

"Greg Malivuk" <gma### [at] umichedu> wrote in message
news:41314a34@news.povray.org...
> I know the radiosity effect is shoddy, but I figure there's no sense in
> waiting more than a few minutes for what is far from the final version.
>
> What I want to know is whether there's a simple way to do a checkered
> mapping of textures onto a torus in the pattern shown below, rather than
the
> POV-Ray default of using the intersection of your surface and an infinite
> array of cubes.
>
>
>


Post a reply to this message

From: Hughes, B 
Subject: Re: chess on a torus - attempt 1
Date: 29 Aug 2004 00:20:06
Message: <41315976$1@news.povray.org>
"Greg Malivuk" <gma### [at] umichedu> wrote in message 
news:413151dc$1@news.povray.org...
> mapping a checkered bitmap onto the torus.  What I want to be able to do 
> is
> map an entirely different texture onto white squares than onto black
> squares.

uv_mapping, or warp, of a texture checker pattern...


torus { 1, 0.5
    texture {
     uv_mapping  // or use warp{} below, not both
      checker
      texture {
       pigment {
        granite
        color_map {
         [0 color rgb <1,0,0>]
         [1 color rgb <1,1,0>]
        }
       }
      }
      ,
      texture {
       pigment {
        bozo turbulence 0.5
        color_map {
         [0 color rgb <0,1,1>]
         [1 color rgb <0,0,1>]
        }
       }
      }
      scale <0.025,0.075,0.075>*2
     // warp {toroidal orientation y major_radius 1}
     }
}


Post a reply to this message

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