POV-Ray : Newsgroups : povray.newusers : For JMV (re: jigsaw puzzle) : Re: For JMV (re: jigsaw puzzle) Server Time
2 Nov 2024 05:18:45 EDT (-0400)
  Re: For JMV (re: jigsaw puzzle)  
From: incognito
Date: 18 Aug 2004 22:35:00
Message: <web.412411ab8439f8c655d024bf0@news.povray.org>
Yeah, I noticed the W after I posted. Sorry about that.

Yeah, I get the big picture of what is being done. It is the little picture
that I want to understand - the making of the shapes themselves. I guess
I've forgotten some of the geometry w/toruses, etc. It's been a while since
I had even the last calculus class and the last scene I made in POV-Ray
(more recently) was all cylinders and spheres so not much math there. I
will try to catch up on that.

Eventually, I would like to create original (I actually need to do that
cause I'm going to do something surreal w/this scene) images on each puzzle
and then to be able to make the puzzles appear to lay flat on a table but
that is a while off.

Thanks,

ZK

"JWV" <jwv|at|planet.nl> wrote:
> The code is basicly build up like this:
>
> [camera, background etc.]
>
> [make a box]
>
> [make a double while loop which creates shapes to be cut out of the box]
>
> [make the shapes, and move them into position, using the while loop variable
> (O, and rotate randomly)]
>
> [end the while loops]
>
> [place a sphere for no reason]
>
> While loops can be used in many ways, i mainly use them to create a large
> amount of the same objects (I like doing that, don't know why)
>
> Is that (double while loop) what you mean by "pseudo-code"?
>
>
> Greetings,
>
> JWV (it's with a W :-))
>
>
>
> "incognito" <nomail@nomail> wrote in message
> news:web.4123a1198439f8c655d024bf0@news.povray.org...
> > Hi,
> >
> > I was wondering if there was a general algorithm that you based this on
> out
> > on the Web somewhere or if this is just something you came up with? This
> is
> > only my second trace in POV-ray and if I could see pseudocode, that would
> > probably help me to understand better so that I can orient it differently
> > for my purpose.
> >
> > If you came up w/this yourself, don't worry about it.
> >
> > Thanks a lot.
> >
> > "incognito" <nomail@nomail> wrote:
> > > Sounds good.
> > >
> > > Thanks again.
> > >
> > > "JWV" <jwv|at|planet.nl> wrote:
> > > > Hi,
> > > >
> > > > Well, it is possible to make edge pieces, but my image was just meant
> to
> > > > illustrate the method to create different pieces. As you can see in
> the
> > > > code, the puzzle does not consist out of sepperate pieces, but it's
> one big
> > > > box, with lines cut of it. You can make the box 1 unit bigger at each
> side,
> > > > to create the edge pieces. Of course you should tweak the while()
> loops for
> > > > the cut-outs, but i'll leave that for you :-P.
> > > >
> > > > JWV
> > > > "incognito" <nomail@nomail> wrote in message
> > > > news:web.41226795315dc6d455d024bf0@news.povray.org...
> > > > > Hi,
> > > > >
> > > > > I thought I would start another thread on this topic since the order
> of
> > > > the
> > > > > other one was becoming difficult to follow. I was wondering if the
> > > > internal
> > > > > pieces on the left and top edges are intentional or if it is just
> too
> > > > > difficult to make them all edge pieces on those sides?
> > > > >
> > > > > Thank you.
> > > > >
> > > > >
> >
> >
> >
> >


Post a reply to this message

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