POV-Ray : Newsgroups : povray.text.tutorials : Landscape Server Time
19 Apr 2024 14:29:08 EDT (-0400)
  Landscape (Message 1 to 4 of 4)  
From: Shams
Subject: Landscape
Date: 25 Jul 2005 10:35:00
Message: <web.42e4f8494611b1a86ae440700@news.povray.org>
Folks I've been trying to make a realistic landscape using POV-ray 3.5 but
I'm not getting satisfactory results. The tutorials were of little help.
Help Please!

Shams


Post a reply to this message

From: Mike Kost
Subject: Re: Landscape
Date: 25 Jul 2005 13:26:26
Message: <42e520c2@news.povray.org>
Shams wrote:
> Folks I've been trying to make a realistic landscape using POV-ray 3.5 but
> I'm not getting satisfactory results. The tutorials were of little help.
> Help Please!
> 
> Shams

Shams,

Christoph Hormann (to the best of my memory at the moment) had started a
Landscape Of the Week campaign some time back, resulting in lots of
landscape examples posted to the newsgroups. If you search the newsgroups
for 'LotW' (http://www.povray.org/search/ - be sure to select 'just
news.povray.org'), you'll find several povray source examples for
inspiration.

All the best,

Mike K
--
http://povray.tashcorp.net


Post a reply to this message

From: gonzo
Subject: Re: Landscape
Date: 5 Aug 2005 15:45:00
Message: <web.42f3c13cf3d36aeea0c272b50@news.povray.org>
"Shams" <sha### [at] yahoocom> wrote:
> Folks I've been trying to make a realistic landscape using POV-ray 3.5 but
> I'm not getting satisfactory results. The tutorials were of little help.
> Help Please!
>
> Shams

What are you trying, and which results aren't satisfactory?  (Isosurface?
Height_field?  Wrong shape? Bad texture?)  Landscapes are a complex
subject, and usually require a mix of several different factors to work.

RG


Post a reply to this message

From: David Wallace
Subject: Re: Landscape
Date: 16 Jul 2006 16:20:50
Message: <44BA9FB1.6000609@earthlink.net>
gonzo wrote:
> "Shams" <sha### [at] yahoocom> wrote:
>> Folks I've been trying to make a realistic landscape using POV-ray 3.5 but
>> I'm not getting satisfactory results. The tutorials were of little help.
>> Help Please!
>>
>> Shams
> 
> What are you trying, and which results aren't satisfactory?  (Isosurface?
> Height_field?  Wrong shape? Bad texture?)  Landscapes are a complex
> subject, and usually require a mix of several different factors to work.
> 
> RG
> 
> 
> 
Roll your own:

// Landscape functions

#include "functions.inc"

#declare IsTest = 0;
#declare IsWater = 0;

#global_settings {
	#if(!IsTest) hf_gray_16 on #end
	number_of_waves 35
}

#declare aspect = image_width/image_height;
#declare aperSize = 3000;

#declare l0Pat = function { f_ridged_mf(x,y,z,0.01,3.58,19,-.0,3.1,3) }

#declare l1Pat = function { pattern {
	crackle
	metric 1.4
	form <1.0,-0.2, 0.3>
	scale 1400
} }

#declare l2Pat = function { pattern {
	granite
	scale 4900
} }

#declare w1Pat = function { pattern {
	waves
	triangle_wave
	frequency 12
	turbulence 0.21
	scale 3000
} }

#declare w2Pat = function { pattern {
	ripples
	triangle_wave
	frequency 43
	turbulence 0.21
	scale 5000
} }

#declare l3Pat = function { pattern {
	leopard
	sine_wave
	turbulence 1.21
	octaves 8
	omega 0.73
	scale 800
} }

#if (IsWater)
	#declare lkpat = function { pow(w1Pat(x,y,z),0.5)*.70 + 
pow(w2Pat(x,0,z),2.0)*0.30 }
#else
	#declare lkpat = function { (1-pow(l1Pat(x,y,z),1.2))*.88 + 
pow(l2Pat(x,0,z),1.2)*0.15+pow(l3Pat(x,0,z),2)*0.20 }
#end

plane { y, 0
	texture {
		pigment {
			function { lkpat(x,y,z) }
			color_map {
				[0.00 rgb (IsTest ? <0,1,1> : <0,0,0>) ]
				[1.00 rgb (IsTest ? <1,0,0> : <1,1,1>) ]
			}
		}
		finish { ambient 1 }
	}
}

camera {
	orthographic
	location < 0.0, 2.0, 0.0> look_at < 0.0, 0.0, 0.0>
	right x*aperSize*aspect
	up z*aperSize
}

What I am creating here is an image that can then be used as a height field.

#declare Ground = height_field {
	png "lakeb.png"
	smooth
	translate <-.5,-.5,-.5>
	texture { texGnd }
	scale <1e4, 260, 1e4>
}


-- 
--------------
David Wallace
TenArbor Consulting
"Just In Time Cash"
www.tenarbor.com
1-866-572-CASH


Post a reply to this message

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