POV-Ray : Newsgroups : povray.general : Scripting in MegaPov? Server Time
9 Aug 2024 21:15:37 EDT (-0400)
  Scripting in MegaPov? (Message 1 to 5 of 5)  
From: Chris S 
Subject: Scripting in MegaPov?
Date: 16 Apr 2000 15:01:35
Message: <38fa0e0f@news.povray.org>
I'm not sure if this is MP specific but I've never had this problem before.
Maybe I'm just insane but whenever I use cylinders or cones in  #while loops
within MP the parsing time is incredible.  I've checked the loops to death,
making sure the script counts the way it's supposed to, increments the right
way, etc.  Everything looks right, and the same exact loop works for torii
and spheres taking but the normal fraction of a second.

Anyway, here's the code.  It "should" rotate cylinders around a cone and
declare it as object "Tower1."

#declare NT1 = 360;
#declare Tower1 = union {
  cone{0*z, .75, 3.25*z, .25 material {GlassTex1}}
  #while (360 > 0)
     cylinder{<0,0,0>,<0,0,3.288>, .25 rotate -8.75*y translate -.75*x
rotate NT1*z texture{DarkMetal1}}
    #declare NT1 = NT1 - 30;
  #end
}

Any help would be appreciated.

Thanks,
-Chris-


Post a reply to this message

From: Ken
Subject: Re: Scripting in MegaPov?
Date: 16 Apr 2000 15:20:59
Message: <38FA1263.ADFD351F@pacbell.net>
"Chris S." wrote:
> 
> I'm not sure if this is MP specific but I've never had this problem before.
> Maybe I'm just insane but whenever I use cylinders or cones in  #while loops
> within MP the parsing time is incredible.  I've checked the loops to death,
> making sure the script counts the way it's supposed to, increments the right
> way, etc.  Everything looks right, and the same exact loop works for torii
> and spheres taking but the normal fraction of a second.
> 
> Anyway, here's the code.  It "should" rotate cylinders around a cone and
> declare it as object "Tower1."

Is this what you are trying to achieve ?

#declare NT1 = 0;
#declare Tower1 = union {
  cone{0*z, .75, 3.25*z, .25 material {GlassTex1}}
  #while (NT1 < 360)
     cylinder{<0,0,0>,<0,0,3.288>, .25 rotate -8.75*y translate -.75*x
rotate NT1*z texture{DarkMetal1}}
    #declare NT1 = NT1 + 30;
  #end
}

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Bill DeWitt
Subject: Re: Scripting in MegaPov?
Date: 16 Apr 2000 15:41:15
Message: <38fa175b@news.povray.org>
"Chris S." <chr### [at] bluelectrodecom> wrote :
>
>   #while (360 > 0)
>

    360 will always be greater than 0


Post a reply to this message

From: Chris S 
Subject: Re: Scripting in MegaPov?
Date: 16 Apr 2000 17:52:04
Message: <38fa3604@news.povray.org>
> "Chris S." <chr### [at] bluelectrodecom> wrote :
> >
> >   #while (360 > 0)
> >
>
>     360 will always be greater than 0

Well, except on leap-years ;)

...I must be tired.

-Chris-


Post a reply to this message

From: Charles Fusner
Subject: Re: Scripting in MegaPov?
Date: 17 Apr 2000 18:57:40
Message: <38FB978B.42EC2007@enter.net>
"Chris S." wrote:
> 
> > "Chris S." <chr### [at] bluelectrodecom> wrote :
> > >
> > >   #while (360 > 0)
> > >
> >
> >     360 will always be greater than 0
> 
> Well, except on leap-years ;)
> 
> ...I must be tired.
> 

Ah, then it was a Y2K related problem. <gd&r>


Post a reply to this message

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