POV-Ray : Newsgroups : povray.general : Preventing Randomly Placed Objects to Stick into Each Other : Re: Preventing Randomly Placed Objects to Stick into Each Other Server Time
2 Aug 2024 00:19:51 EDT (-0400)
  Re: Preventing Randomly Placed Objects to Stick into Each Other  
From: Chris B
Date: 20 Feb 2005 14:28:35
Message: <4218e4e3@news.povray.org>
"Sven Littkowski" <wrt### [at] yahoocom> wrote in message
news:web.4218c3367850becd96ad883b0@news.povray.org...
> Hi Sam and everyone else,
>
> the objects are placed 3-dimensionally. Actually, these are space stations
> and therefore need that security distance between each of them.
>
> My experience and knowledge is low with POV-Ray. Truly, having a real
source
> code will help me much better than links to help pages where I still have
> to try adapting and converting the difficult things there for my purposes.
> Despite of that, I still express my thanks for the previous attempts to
> help me. Please, go on helping me.
>
> Thanks,
>
> Sven
>

Hi Sven,

I've put some real source code on  'povray.binaries.scene-files' titled
'Randomly Placed Objects'.
It uses an array to store previously used positions (as suggested by Sam).
I think this'll do more or less what you want.

I've randomly oriented objects through a full 360 degrees.
To just give them a bit of a random wobble you can replace the rotate with:
      rotate (<rand(MyRand),rand(MyRand),rand(MyRand)>-0.5)*20

Have fun.
Chris B.


Post a reply to this message

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