POV-Ray : Newsgroups : povray.general : More functions, identifiers please : More functions, identifiers please Server Time
13 Aug 2024 19:24:43 EDT (-0400)
  More functions, identifiers please  
From: PoD
Date: 6 Jul 1998 17:29:40
Message: <35A1335E.CB3@merlin.net.au>
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

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