POV-Ray : Newsgroups : povray.binaries.images : Date Palm : Date Palm Server Time
30 Jul 2024 00:20:02 EDT (-0400)
  Date Palm  
From: OJD
Date: 17 May 2013 06:00:01
Message: <web.5195feca80ba34ae4b64393e0@news.povray.org>
looking for some feed back on a date palm macro I'm working on.

-all csg with a sphere sweep for the trunk.
-manual bounding of branches and leaves gave a 350% speed increase.
-short stubby to tall and thin trees can be made.
-change random seed for a complete new tree.
-random noise in scaling and 3 axis rotation of each leaf gives nice realism
close up.
-texture is added to each branch during placement and changes depending upon
elevation. - they get older the lower they are.
-used a tan() in vertical rotation so majority of branches are out to the side
and fewer point up or down.
-various randomness throughout for realism (I hope)
for example in branch placement:
    rotate (.5-rand(Rn))*B*z
    rotate <tan(1.16-Sx*2.32)*39+5, 0, (.5-rand(Rn))*20>
    translate <0, (Sx-.4)*1.25+H+.4, min(1,1.4-Sx)*W/.8>
    rotate rand(Rn)*360*y

trees as rendered called with below settings

// scale, rotate, trans, height, trnk width, trnk crv amt, num of palms, palm
twist base, palm twist increment, dead hangers, num of dates, rnd seed

palmtree1(1,<0, 50, 0>,<48, -.3, 80>,30,.5,1.5,70,25,5,7,14,24)
palmtree1(.8,<0, -170, 0>,<43, -.3, 84>,29,.6,5,55,30,6,0,10,410)

image is just a small clipping of the tree from a larger image.
med. radiosity and AA so quality can go way up.
will be adding SSLT support for the textures and custom textures.
will post macro with instructions later.

feed back please, good and bad, thanks.


Post a reply to this message


Attachments:
Download 'palm.png' (170 KB)

Preview of image 'palm.png'
palm.png


 

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