POV-Ray : Newsgroups : povray.binaries.images : Toroidal media : Toroidal media Server Time
3 May 2024 07:55:20 EDT (-0400)
  Toroidal media  
From: Le Forgeron
Date: 6 Dec 2014 15:01:35
Message: <5483609f@news.povray.org>
It started from a question in p.advanced-users.

Original source from portfolio allpattern.pov for cylindrical

#version 3.7;
global_settings {
  assumed_gamma 1.0
}

#include "colors.inc"


#declare Cylindrical   = pigment {cylindrical colour_map {[0, rgb 0][1,
rgb 1]}scale 0.8}


         box {
            -1.5,1.5
            hollow
            material {
               texture {
                  pigment {rgbf 1}
                  finish {
                     ambient 0
                     diffuse 0
                  }
               }
               interior {
                  media {
                     emission 0.3
                     samples 40,40
                     intervals 40
                     method 2
                     density {
                        cylindrical
                        color_map {
                           [0, rgb 0]
                           [0, rgb <0.5,0.5,0.4>]
                           [1, rgb <1,0,0>]
                        }
	rotate 90*z
	scale 4/7 //control minor radius
                        warp
						{
                          toroidal  orientation z major_radius 1
						}
                     }
                  }
               }
            }
            rotate <0,-35,0>
            rotate <-25,0,0>
            translate<0,0,-1.5>
         }

   camera {
     right x*image_width/image_height
     location  <0,0,-8>
     look_at   <0,-0.25, 0>
     angle 35
   }
   light_source{<500,10,-500> rgb 1}
   light_source{<-500,500,-500> rgb <0.6,0.6,0.8>}

-- 
IQ of crossposters with FU: 100 / (number of groups)
IQ of crossposters without FU: 100 / (1 + number of groups)
IQ of multiposters: 100 / ( (number of groups) * (number of groups))


Post a reply to this message


Attachments:
Download 'tm.png' (124 KB)

Preview of image 'tm.png'
tm.png


 

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