POV-Ray : Newsgroups : povray.general : guys could you help me out once more? : Re: guys could you help me out once more? Server Time
27 Apr 2024 23:38:51 EDT (-0400)
  Re: guys could you help me out once more?  
From: Jay
Date: 24 Aug 2017 00:40:00
Message: <web.599e57b261def543692574d10@news.povray.org>
"Kenneth" <kdw### [at] gmailcom> wrote:
> "Jay" <pjy### [at] gmailcom> wrote:
> > #declare numofpic = 100;
> > #declare shift = 1;
> >
> > #declare X=numofpic;
> >
> > #declare X5=array [X] { #for (i,0,numofpic^(1/2)[,shift]) i*shift, #end};
> >
> > #declare Cam3 = camera {
> >   location <30,25-Y5[frame_number],5+X5[frame_number]>
> >   look_at  <0,10-Y5[frame_number],5+X5[frame_number]>
> >   }
> >
> > i don't care about the Y5,i think i can do that by myself if i knew how to make
> > X5.
> >
> > X5 is like there should be 'numofpic' of numbers. for example
> > if numofpic is 100 and shift is 1,
> >
> > X5 is like
> >
{1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,```,10,10,10,10,10,10,10,10,10,10};
> >
> > idk how to put the #for to array structure. plz help me. i appreciate.
>
> I think some clarification is needed:
>
> * Is this your actual scene code, or is it just a condensed or abstract example?
>
> * Which is more important to you, getting the ARRAY itself to work correctly, or
> just getting CAM3 to work correctly? (The array may not be necessary.)
>
> * In the #for loop, is 'numofpics' raised to the 1/2 power? (I.e., square root?)
> It appears to be.
>
> > X5 is like
> >
>
>{1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,3,```,10,10,10,10,10,10,10,10,10,10};
>
> Is this what your WANT the values in the array to be?

it's actual code and i want to make this work
getting CAM3 to work correctly is more important for me.
if there're any other ways to move CAM3 like my code, it would be fine
yeah i want to make it square root.

if i wanna make 25 images, numofpic would be 25 and
CAM3 should move like this

1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25


Post a reply to this message

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