POV-Ray : Newsgroups : povray.general : Improving POV-Ray. : Re: Improving POV-Ray. Server Time
12 Aug 2024 19:32:52 EDT (-0400)
  Re: Improving POV-Ray.  
From: Robert J Becraft
Date: 19 Feb 1999 11:31:33
Message: <36CD91F5.366300C6@aol.com>
This I GOT.  This works fine if you want to reiteratively place objects on your
scene.  It does not provide me any means of ascertaining the height on the
heightfield for individually placed items.

A simple scattering loop looks like this:

#declare R1=seed(3838)
#declare Count=1
#while (Count<100)
    #declare X=rand(R1)*100
    #declare Z=rand(R1)*100
    #declare Y=somefunction(HFNAME, X,Z,100,100)
    object{TheTHING translate<X,Y,Z>}
    #declare Count=Count+1
#end

This does a random scatter of 100 items across an area bounded 0,0,0 to 100,?,100
where "somefunction" delivers the Y coordinate.

Schrammel's toolkit is wonderful but very complicated to setup and use for the
kind of work I want to do with POV.  The above example would work fine with his
tool since it only uses 1 item named "TheTHING" ... however, my "TheTHING" becomes
an entire case statement where "TheTHING" can be any of a hundred items (depending
on what I'm rendering, this can be more or less).

In order to use the utility, EACH and every item in the 100 items would have to
have the program run 1ce for each item.  Then all the output files combined to
render it.  If any of the items collided, I couldn't just change the seed R1 value
to resolve them, I'd have to regenerate EVERY one of the include files generated
and hope that they didn't collide again.

Bob Hughes wrote:

> Genesis Toolkit by Schrammel can do this. Check here:
>
> http://www.rhein-ruhr.de/~schrammel/index.htm
>


Post a reply to this message

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