POV-Ray : Newsgroups : povray.newusers : Random positioning : Re: Random positioning Server Time
5 Sep 2024 02:14:24 EDT (-0400)
  Re: Random positioning  
From: Les Patterson
Date: 29 Jan 2002 11:14:39
Message: <3C56E737.2070903@txcyber.com>
Warp,
  Thanks a million.
Les

Warp wrote:

> #declare ObjectsAmount = 100;
> #declare MinX = -20;
> #declare MaxX = 20;
> #declare MinZ = -20;
> #declare MaxZ = 20;
> 
> #declare S = seed(0);
> #declare Ind = 0;
> #while(Ind < ObjectsAmount)
>   object
>   { MyObject
>     translate <MinX+rand(S)*(MaxX-MinX), 0, MinZ+rand(S)*(MaxZ-MinZ)>
>   }
>   #declare Ind = Ind+1;
> #end


Post a reply to this message

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