mattrdowney / planetaria

A Unity framework for Euclidean 2-sphere games (e.g. 2D virtual reality games) [quasi-MIT license]
Other
10 stars 2 forks source link

"PlanetRenderer" that is actually composed of multiple 2DRenderers #41

Open mattrdowney opened 6 years ago

mattrdowney commented 6 years ago

A flyweight pattern for when the Planetarium is large enough (requires zoom) but enormous textures should not be used (e.g. 100,000x100,000 (10Gb) textures to try to render the globe).

mattrdowney commented 6 years ago

The so-called texelplex mentioned in circular/radial texture #44

mattrdowney commented 6 years ago

Texelplexes needn't be precisely the center of mass definition of a radial pixel.

Instead, I once made a brick shader that tried to interweave itself (using a greedy algorithm) to maximize distances between adjacent pixel "sides". Ideally, the algorithm would have a hash table of (global) offsets for each row that are computed by finding the minimum distance between adjacent pixel "sides" at the next row.

I'm unsure whether or not I would prefer a min of mins algorithm or a min(aggregate(min)).