interpolation^4

Started by
10 comments, last by VanKurt 21 years ago
I`ve got it working by now.
But another question came to my mind: How do I blend the different octaves?

At the moment I`m doing it like this:
result = layer1 + layer2/2 + layer3/4 + layer4/8;

But by this the color values get too big (>256). Just imagine you have a white-value at each of these points. Then you`d get a result like 480, which is of course tooooo big!

Does anyone know more about this? Thx
Advertisement
I''m not sure why you''ve arbitrarily picked those divisors, or indeed what ''octave'' means in this context... Is this some sort of perlin noise thing? Those ratios add up to a potential maximum of 1.875, and you want a maximum of 1. You could achieve this quite easily by scaling down all your numbers accordingly (ie. divide by 1.875).

[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]

This topic is closed to new replies.

Advertisement