POV-Ray : Newsgroups : povray.general : Toroidal warp : Toroidal warp Server Time
30 Jul 2024 20:27:07 EDT (-0400)
  Toroidal warp  
From: SharkD
Date: 27 Jun 2008 19:45:00
Message: <web.48657b48df8531631d9045be0@news.povray.org>
I'm having trouble mapping an image to a torus. The patter seems to be mirrored
above and below the torus's "equator". Is there a way to get this to stop?

-Mike

torus
{
 #local Width = 64;
 #local Height = 64;
 #local Radius = Width/2/acos(pi/4);
 Width, Radius
// clipped_by {cylinder {0,y*Height,Width}}
 texture
 {
  pigment
  {
   image_map {png "texture_bowels_test.png"}
   warp
   {
    toroidal
    orientation y
    dist_exp 0
    major_radius Width
   }

  }
  scale Width
 }
 translate y*Height/2
 translate Left_Vector*+1/2
}


Post a reply to this message

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