POV-Ray : Newsgroups : povray.general : HF_Square Macro usage? : Re: HF_Square Macro usage? Server Time
3 Aug 2024 06:17:04 EDT (-0400)
  Re: HF_Square Macro usage?  
From: Stephen R  Phillips
Date: 19 Apr 2004 00:44:50
Message: <Xns94CFF0733E542cybermans.pov.posts.@203.29.75.35>
Christopher James Huff <cja### [at] earthlinknet> wrote in
news:cjameshuff-96F2D1.12543718042004@news.povray.org: 

> You have to pass a function to the macro, you can not use a macro. For
> example:
> 
> #include "functions.h"
> 
> #declare HF_F = function {f_noise3d(x, y, z)}
> 
> #declare Ground = HF_Square(HF_F, false, false, < 40, 40>, 1, "", 
> <-20,-1,-20>, <20, 4, 20>)
> 
> rand() can not currently be used in functions, but it would be fairly 
> useless for this anyway.
> 
I noticed so I used the bump pattern :) Thanks.

> 
> Look at the shapes.pov demo scene, in the incdemo folder.
> 

This is just what I was looking for! Thanks.. looks like it works with any 
object so I could use an external height field as well.

I suppose there just was no cross reference :/


Post a reply to this message

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