POV-Ray : Newsgroups : povray.advanced-users : SOR used to work, but no longer : SOR used to work, but no longer Server Time
29 Jun 2024 01:50:45 EDT (-0400)
  SOR used to work, but no longer  
From: SharkD
Date: 24 Jul 2010 22:30:12
Message: <4c4ba1b4$1@news.povray.org>
When I created the following SOR object in 3.6.1 it worked, but in 3.6.2 
and the beta it no longer works. Why does it no longer work, and what 
can I do to fix it?


#include "GSprites_Scene_settings.inc"      // Source of the camera and 
lighting code
#local Tiles_Width = 64;
#local Tube_Radius = Tiles_Width/2/cos(pi/4) * 5/4;
#local Wid = Tiles_Width/2;
#local Angle_Start = acos(Wid/Tube_Radius);
#local Angle_Incrm = 2/8 * Angle_Start;
sor
{
   11,
   <
     cos(Angle_Start - 8 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 8 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 8 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 8 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 7 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 7 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 6 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 6 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 5 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 5 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 4 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 4 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 3 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 3 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 2 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 2 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 1 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 1 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 0 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 0 * Angle_Incrm) * Tube_Radius,
   >
   <
     cos(Angle_Start - 0 * Angle_Incrm) * Tube_Radius - Wid,
     sin(Angle_Start - 0 * Angle_Incrm) * Tube_Radius,
   >
   pigment {rgb 1}
   translate Wid
}


-- 
http://isometricland.com


Post a reply to this message

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