Krock wrote:Short question: How to detect in which biome a player is?
HeroOfTheWinds' [tempidity] is a simple demonstration of how temerature and humidity data (which control biome generation) can be polled for player position, during play. That data (as well as things like elevation, sea-level, and light level) can be used to make valid inferences about the player's surroundings, and select music and other ambience accordingly.
[EDIT] A though struck me while I was posting this. It might be possible to do things like differentiation in the displacement domain (dx / dd) to the temperature-humidity data in order to guess what biome the player might move into next. That would allow preloading of media in anticipation of a biome change. The problem is that I don't know how well that would work with Perlin-generated noise.