POV-Ray : Newsgroups : povray.newusers : Chess Piece : Re: Chess Piece Server Time
29 Jul 2024 10:27:32 EDT (-0400)
  Re: Chess Piece  
From: Farnsworth38
Date: 18 Feb 2006 10:30:01
Message: <web.43f73c50fc1192b9e3f92e490@news.povray.org>
"wizkidguy" <gov### [at] yahoocom> wrote:
> What would be the best way to make chesspieces? i have thought to try
> surfaces of revolutions, and lathes, and it is very difficult. is there
> some other way to try it, that i am not aware of?
> thanks for anything.
> michael


with lathe items for the more complex curves. Example (dimensions scaled
from a real chess piece):

#declare Pawn = union {
   cylinder { <0, 0, 0>, <0, 3, 0>, 11.5 }
   lathe {
      cubic_spline
      7,
      <5.5, 2>, <10.5, 3>, <11.5, 5.5>, <11, 8>, <8.5, 11>, <7.75, 13.5>,
<8, 16>
   }
      cylinder { <0, 13.49, 0>, <0, 13.5, 0>, 7.75 }
      lathe {
         quadratic_spline
         3,
         <12, 12.5>, <6, 13.5>, <3, 27>
      }
      lathe {
         linear_spline
         3,
         <3, 27>, <7.5, 30>, <3, 33>
      }
      sphere { <0, 39, 0>, 7 }
      scale 0.4
      translate <10, 0, 30>
}


file, where you can play with an object and do lots of changes and quick
renders before pasting the final code into your main scene.

F38


Post a reply to this message

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