|
|
Lonnie Ezell wrote:
>
> I've got what I believe should be a working POV macro for Perlin noise (2D
> only, currently). After fixing a number of typographical errors, it now
> crashes whenever I try to use it.
>
> I was wondering if someone would be willing to look at the code for me.
>
> If you're up to it, either post here, or write me at kil### [at] homecom.
I have just posted a modified version of your Perlin
Noise code to povray-text.scene-files:
news://news.povray.org/3A679CD3.CB5F8C27%40online.no
I have tried to keep things simple and in one file only.
Some modifications has also been done to the macros so
that they only modifies arguments that are passed them.
I'll have to agree with Vahur that the main problem
seems to be your ED_NOISE_Rand_2D macro. It needs to
be rewritten.
But I'm not sure if the built in noise3d() is suitable
for this purpose (i.e. to be used within ED_NOISE_Rand_2D).
It might be that your ED_Noise_Init macro also needs to
be rewritten.
--
Best regards,
Tor Olav
mailto:tor### [at] hotmailcom
http://www.crosswinds.net/~tok/tokrays.html
Post a reply to this message
|
|