POV-Ray : Newsgroups : povray.beta-test.binaries : Fixing longstanding function/pattern issues in v38. New raw_wave keyword. : Re: Fixing longstanding function/pattern issues in v38. New raw_wave keywor= Server Time
27 Apr 2024 15:03:36 EDT (-0400)
  Re: Fixing longstanding function/pattern issues in v38. New raw_wave keywor=  
From: Bald Eagle
Date: 19 Oct 2019 14:55:00
Message: <web.5dab5bcde43f3c684eec112d0@news.povray.org>
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
dirt simple.
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

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