POV-Ray : Newsgroups : povray.binaries.images : Mesh Mountain Peak Sample - mountains.jpg (1/1) : Mesh Mountain Peak Sample - mountains.jpg (1/1) Server Time
16 Nov 2024 10:28:12 EST (-0500)
  Mesh Mountain Peak Sample - mountains.jpg (1/1)  
From: Jerry
Date: 12 Feb 2003 15:10:45
Message: <jerry-8E0981.12104412022003@netplex.aussie.org>
I've made a cheap and dirty mesh macro that creates mountain peaks. It 
isn't bad, but it isn't great either, and I'm sure it's horribly 
inefficient.

Basically, it creates an even mesh of triangles in a square, raises the 
height of the vertices according to a fractal landscape, and then 
dampens the edges in a circle around the center of the mesh, either 
linearly or based on a sine wave.

Macro and sample code posted in povray.binaries.scene-files.

Jerry
-- 
http://www.hoboes.com/jerry/
"Give a man a fish and you feed him for a day. Teach him to fish, and you've
depleted the lake."--It Isn't Murder If They're Yankees
(http://www.ItIsntMurder.com/)


Post a reply to this message


Attachments:
Download 'mountains.jpg' (24 KB)

Preview of image 'mountains.jpg'
mountains.jpg


 

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