Logarithmic interpolation?

Hehe… this made me laugh a bit at the end :slight_smile: but here is a medal for sharing experience, and for giving a math lesson :slight_smile:

WRT: Log - SEE: Integer.numberOfLeadingZeros, which is in hardware on Intel & ARM and is an intrinsic in HotSpot (android…don’t know).

Woah… you know how beautiful this is? :slight_smile:

EDIT: a bit shortened…
This took 1 ms for 64 elements. -1,000000 ---------------------------------------------------------------- -0,977539 #--------------------------------------------------------------- -0,914063 ###------------------------------------------------------------- -0,815430 ######---------------------------------------------------------- -0,687500 ##########------------------------------------------------------ -0,536133 ###############------------------------------------------------- -0,367188 #####################------------------------------------------- -0,186523 ###########################------------------------------------- 0,000000 ################################-------------------------------- 0,186523 ######################################-------------------------- 0,367188 ############################################-------------------- 0,536133 ##################################################-------------- 0,687500 ######################################################---------- 0,815430 ###########################################################----- 0,914063 ##############################################################-- 0,977539 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 1,000000 ################################################################ 0,977539 ################################################################ 0,914063 ##############################################################-- 0,815430 ###########################################################----- 0,687500 ######################################################---------- 0,536133 ##################################################-------------- 0,367188 ############################################-------------------- 0,186523 ######################################-------------------------- 0,000000 ################################-------------------------------- -0,186523 ###########################------------------------------------- -0,367188 #####################------------------------------------------- -0,536133 ###############------------------------------------------------- -0,687500 ##########------------------------------------------------------ -0,815430 ######---------------------------------------------------------- -0,914063 ###------------------------------------------------------------- -0,977539 #--------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ---------------------------------------------------------------- -1,000000 ----------------------------------------------------------------
This is a single layer from simplex noise with a “density” of 32.
To the left you can see the values directly and to the right it’s like a progress bar, showing only “-” when -1, and only “#” when 1.