|
|
While 3.1 is still in beta I thought I'd suggest that the following be
added.
Noise functions
ie. noise(V) returning a float and noise3d(V) returning a vector,
these should be easy as I've done it myself.
Bounding info
I haven't tried these but it shouldn't be too hard to have the
bounding box functions put the current limits of the bounding box into
variables which could be read in the scene file as built in identifiers
such as bound_min and bound_max.
They could be used like
union{
box{
<-1,-1,-1>,<1,1,1>
#declare min1 = bound_min // currently = <-1,-1,-1>
#declare max1 = bound_max // = <1,1,1>
}
box{
<1,1,1>,<2,2,2>
#declare min2 = bound_min // = <1,1,1>
#declare max2 = bound_max // = <2,2,2>
}
#declare min3 = bound_min // = <-1,-1,-1>
#declare max3 = bound_max // = <2,2,2>
}
Cheers, PoD.
Post a reply to this message
|
|
|
|
On Tue, 07 Jul 1998 05:58:14 +0930, PoD <pod### [at] merlinnetau> wrote:
>Bounding info
> I haven't tried these but it shouldn't be too hard to have the
>bounding box functions put the current limits of the bounding box into
>variables which could be read in the scene file as built in identifiers
>such as bound_min and bound_max.
A 3.02 source patch for this can be found on my web page at
http://www2.fwi.com/~parkerr/traces.html .
Post a reply to this message
|
|