[Community Puzzle] The Lord of the Annuli - Puzzle discussion

Coding Games and Programming Challenges to Code Better

Send your feedback or ask for help here!

Created by @thomas.schuerger,validated by @yhuberla,@DeanTheMachine and @TBali.
If you have any issues, feel free to ping them.

Hello to the Community, I can’t get my head around the proportions of half a unit horizontally to 1 vertically.

Also if i’m correct in the description of coverage “The supersampling points for the character in column x and row y are located at (x + (i+0.5)/samples, y + (j+0.5)/samples) for i and j from 0 to samples-1” should actually state from 0 to samples, shouldn’t it ? Thanks

Hello Mustang.

My advice would be to first ignore this completely, meaning you would get this for the first case:

+--------------------+
|        @@@@        |
|      @@@@@@@@      |
|      @@@@@@@@      |
|     @@@@@@@@@@     |
|     @@@@@@@@@@     |
|     @@@@@@@@@@     |
|     @@@@@@@@@@     |
|      @@@@@@@@      |
|      @@@@@@@@      |
|        @@@@        |
+--------------------+

and from there to work out how to fix the aspect ratio. (hint: division by 2 needed)

An easy way to see if this is correct is to set samples to arbitrary values and see if it makes sense:

  • samples = 1: if i == 1, x + (i+0.5)/samples = 1.5 → overflow on next cell, therefore i in range [0:0].
  • samples = 2: if i == 2, x + (i+0.5)/samples = 1.25 → overflow on next cell, therefore i in range [0:1].
  • …

Cheers.

1 Like

Thanks a lot yhuberla, I will give it a try !