kaetemi / ryzomclassic

A classic fork of Ryzom. The goal is to remove outposts, reactivate the Ring, and only include the classic in-game web components.
https://ryzom.dev/
GNU Affero General Public License v3.0
1 stars 0 forks source link

Landscape assets are different after every build #223

Open kaetemi opened 3 years ago

kaetemi commented 3 years ago

Possibly it's using some randomization during the lightmapping. Use a repeatable pseudo-random instead.

mlcdev commented 3 years ago

This one worked nicely for me https://gist.github.com/blixt/f17b47c62508be59987b

mlcdev commented 3 years ago

Converted to PHP, I'm sure you can make this complex function work for you:

/**

function manual_rng(&$seed) { $seed = $seed * 16807 % 2147483647; return abs(($seed - 1) / 2147483646); };

kaetemi commented 3 years ago

We'll just use wang hash.