POV-Ray : Newsgroups : povray.animations : concat problem : Re: concat problem Server Time
6 Oct 2024 11:35:30 EDT (-0400)
  Re: concat problem  
From: Dennis Milller
Date: 7 Feb 2002 20:30:09
Message: <3c632a21@news.povray.org>
Okay. That's it.
Thanks again for your help.
I'll look into debug.
Best,
D.

"Warp" <war### [at] tagpovrayorg> wrote in message
news:3c630bd5@news.povray.org...
>   You should learn to use the #debug stream to print what you are creating
> to the console. That is, create the file name you want to open and print
> this file name with #debug to see that it's correct. For example:
>
> #declare Filename = concat(whatever);
> #debug concat("Filename to read: ", Filename, "\n")
>
>   This way you can check that what you are creating is correct.
>
>   Anyways, your problem is that you are using clock*100. The first calue
> clock gets is 0, and 0*100 = 0. That is, you are getting the number "000",
> not "001".
>
>   The easiest way of fixing this is to use frame_number instead of
clock*100.
> frame_number gets consecutive integer numbers starting from 1, and that's
> exactly what you want.
>
> --
> #macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb
M()}}
> N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
> N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  -
Warp -


Post a reply to this message

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