POV-Ray : Newsgroups : povray.general : 3.5 heightfield pattern question : Re: 3.5 heightfield pattern question Server Time
19 Nov 2024 07:38:48 EST (-0500)
  Re: 3.5 heightfield pattern question  
From: Tom A 
Date: 8 Apr 2002 18:28:25
Message: <3CB21989.D68A375@my-deja.com>

> 
> On Sat, 06 Apr 2002 08:50:42 -0600, "Tom A." <tar### [at] my-dejacom> wrote:
> > One thing I hoped to do was combine a heightfield with a granite pattern
> > (for mountains) with some other math functions (something like a sin
> > function so the edges of the mountains reduce to the foothills.)  Yet it
> > appears that the pattern cannot be mixed with the math functions - is
> > this true?  Or am I overlooking something.
> 
> IIRC you participated Shortest Code Contest. Take a look at my entry
> http://10best.raytrace.com/short/ks3_800.JPG
> http://10best.raytrace.com/short/ks3.pov
> There is mixed usage of 3 types of function: math, spline and pattern.
> Chapter 6.1.6.
> 
> Also look at below sample:
> #local F1=function{pattern{agate}};
> #local F2=function( a,b ) { a*b };
> #local F3=function{pigment{granite}};
> #local F4=function{spline{0,x,1,z}};
> #local F=function{ F1(x,y,z) + F2(x,y) + F3(x,y,z).red + F4(z).x };
> 

Thank you!  That did the trick.

> > Also, once I have my hightfield, I have heard that there is a way to
> > find intersections, so that I can place objects correctly on the
> > mountain.  
> 
> trace
> 
> 
> Direction of ray sended for intersection with object
> Chapter 6.1.4.6

Again, thank you!


> 
> ABX

-- 
Tom A.

into that pit of cotton-top hell, and let them hippity-hop
all over my vulnerable flesh? - Buffy the Vampire Slayer
Deja mail is gone.  Look for me at raugost at yahoo . com


Post a reply to this message

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