William F Pokorny <ano### [at] anonymousorg> wrote:
> Today one has to understand in detail how ALL the pattern wave modifiers
> work and how to hack your functions to get past the issues to use the
> warp/turbulence capability. Oh, and to use any pattern modified function
> in with other functions. It's a huge pain. Anyway, the problem code for
> many functions(3) is:
> /* allow negative frequency */
> if(value < 0.0)
> value -= floor(value);
> Bill P.
Ha! I just pulled up the code in pattern.cpp this morning and was looking at
that exact section.
I thought perhaps there was some strange way that radial was implemented, but I
should have recalled from my other source patterns to SDL work that it's just
And I did see the code for special handling of all the wave types, and given
that NPC just posted about the asteroid normal map, I thought maybe that might
solve my "scaling" woes.
Nothing yet - but it's something to play with.
I suppose I ought to somehow graph all of those out so that I have a reference
diagram for understanding and debugging.
Post a reply to this message