POV-Ray : Newsgroups : povray.newusers : Multiple Objects : Re: Multiple Objects Server Time
30 Jul 2024 20:23:11 EDT (-0400)
  Re: Multiple Objects  
From: Christopher James Huff
Date: 19 Sep 2003 18:28:41
Message: <cjameshuff-5563E7.18271319092003@netplex.aussie.org>
In article <3f69e6b0@news.povray.org>,
 "Kevin Becker" <ksb### [at] NOSPAMyahoocom> wrote:

> I've created a pool ball in POV using a sphere & cylinder and using the
> difference & intersection commands to make my Ball "wrapper" and Ball
> "core."  See below for sample code.  How can I easily create a second ball
> that's blue without copying the current code and making adjustments
> accordingly?  I know how to create a second ball and move it around, but I
> want to be able to change the color of the wrapper.  Also each ball will
> have a number and I would like to be able to change that easliy.

You've already been told about macros, but you might also look at the 
object pattern. There's no need to use anything more than a sphere for a 
pool ball.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tagpovrayorg
http://tag.povray.org/


Post a reply to this message

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