News for hackers. Stuff that matters.
Re:Practical Real-Time Hex Tiling by billconan on Monday July 18, 2022 @12:53PM (#32140442)
> Using hex-tiling allows us to hide the repetition but requires a solution to hide the seams between adjacent hex tiles.

I don't understand this part. If I use square tiles and hide the seams between adjacent tiles, will it look OK? What's the benefit of using hex tiles?

Re:Practical Real-Time Hex Tiling by rootlocus on Monday July 18, 2022 @01:03PM (#32140571)
> If I use square tiles and hide the seams between adjacent tiles, will it look OK?

Square tiling is very obvious, as you can see from the first example [0]. Hex tiling shifts tiles to a less obvious pattern. Also, as I can see from the video, tiles can be rotated while hiding the seams perfectly, which eliminates repetition altogether.

0. https://github.com/mmikk/mmikk.github.io/blob/master/picture...

Re:Practical Real-Time Hex Tiling by BeeOnRope on Monday July 18, 2022 @04:38PM (#32143338)
Is that first example comparing squaring filing with the same _fixed_ rotation for each tile versus hex-tiling with random or otherwise varying rotation?
Re:Practical Real-Time Hex Tiling by pugworthy on Monday July 18, 2022 @01:03PM (#32140565)
You don't get the typical visual repetition of features along X/Y lines
Re:Practical Real-Time Hex Tiling by jayd16 on Monday July 18, 2022 @01:07PM (#32140618)
You could use world position (or just some non-uniform sampling) to offset the UVs and get a similar effect, no? Is hex significant or is it just one of any number of ways to break up the uniformity?
Re:Practical Real-Time Hex Tiling by carbadtraingood on Monday July 18, 2022 @01:13PM (#32140692)
In practice, yes, it's very common to use a shader to sample the texture with some rotation and noise. Most games have a shader level implementation to address this, and we've done that for a decade at least.

See: https://iquilezles.org/articles/texture repetition/ for a good breakdown on some techniques.

Re:Practical Real-Time Hex Tiling by adamrezich on Monday July 18, 2022 @05:06PM (#32143713)
the URL should have been https://iquilezles.org/articles/texturerepetition but this is indeed a great resource