New answers tagged

0 votes

Tiling perlin noise seamlessly, but without repeating to generate an infinite 3D world

I know this is super old, but the underlying implementations of both perlin noise and value noise are just grids that interpolate value fields between cells, so there are two possible options for ...
  • 1
0 votes

How to find out which biome the player is currently on

So the answer is my code. As the @DMGregory pointed in my question post comments I could use my determination function to find out which biome I can find. Like this: ...
1 vote

Consistent cross platform procedural generation

Using a noise-based RNG might be an option? It seems to work well, and generates its numbers via bit shifting, so there's no precision issues to get in the way. Not sure where the slides are, but the ...
  • 121
1 vote

Consistent cross platform procedural generation

Rather than designing your PCG around real number arithmetic and then trying to make it deterministic, it may be easier to start from this constraint and design around it. There are a wide variety of ...
  • 151
2 votes

Consistent cross platform procedural generation

As others pointed out, if you want true determinism, then avoid floating point variables and use integer math instead. If you need a large universe, use 64bit integers. Their resolution is good enough ...
  • 113k
7 votes

Consistent cross platform procedural generation

What I would be trying to do is to generate on multiple levels, where things at one level could be calculated from the level above with integer math. For example, at the top level I might draw a bunch ...
0 votes

Consistent cross platform procedural generation

You can just use regular floating point math (single precision or double precision). It's a myth (that maybe once upon a time had some truth to it) that floating point math gives different results on ...
24 votes
Accepted

Consistent cross platform procedural generation

The best resource I've found on this topic is Bruce Dawson's blog article "Floating-Point Determinism" It establishes that yes, in theory, you could get cross-platform determinism out of ...
  • 117k
2 votes

Diamond square texture: too-diamond-ish?

While this is an old question, it still ranks on google and the marked answer does not explain the artefacts seen in the output. I have just implemented this algorithm (for fun) in c# using linqpad ...
  • 21

Top 50 recent answers are included