The longer see won't render

Yea, One day later… ERROR…
My Url…
https://www.code3dgames.com/3de/#B/hVbxT9s6EP69f4XFLw2jpGVvsA3oJNQxhgQFAY896Wma3OTamCV2ZjuUDvG/vzvbCQkwHgKa2t99992d75z9mUpXn/aH7qO3bxItSsuMTsZrQ5tpgPjGrOG+33iKKLOVEa8iEiWtVrkZnumZsJPw7VUTkygNM8V1+ipMKmH+oO5Tj7HhkJ2TusQwA9YKuTC46pZuTOxxJuZFodiY9Yf0gGT9vRdAS6V/gnaw0m/98EvewDu7yoCtmQQkrDFh2DIDDczYaj5nQjJVabbgBbClyHOW8bIEuYuGt1wzZ4TsEpaN60tai9ZJjduOMYYjzW+FXUWEu/p6cXgYX0Nilf4rYqMB29zCfyO27myIdp5zi6z39HmZ8RQzsMusruChRuRikdng2BMeFDMB0p7QRtRfZsJCH1njty0lPE0jZ+nW6hgq+Zzts9AoUCjJ8z8xBrO4VEYQkuKM3g3YDmK6iIQbF4Zaog8Ko6uoxjXhpwjbGnUojDNHpgI0j3OYk9zN9BWMDjG9hrGq/B/ETFmriuCrdVr8djguWCwDYJjNwrGpjwc3JWbxgmN6kGIpJDELKUF/E6nN2LCz9hVIQJ0E76FTlHPQjlDcwsTtRu+3B20nVJ2tAebOFyDE0CnQ5ocBo98np8JD1zsxapApdoJeY6nmyxAoxRikuZhxKigfeIITp2mM2raj/xvMjk4uwk50z6UVPBfchLPtJNWGJHaSA9cTlSsd9c3P1SyvoP8E5Ip1yssYJJ/lkLYOWJvpUvyG6Fn+By+k3/GnKqkKbKaYRmvsOj6dZCJPo4Y0VcVhDgSipD3G2JmVIa0D9rKZS/Wb8MMurw4urtjk7PPx9IidTZHvkE0P/7liJ8fTwwbWo+wutKokxYqlO3LPNG9680q6nm0vs/t6pvAEyzVmHz/WJwyTV0L3gOVcwhGoAqxeRTSV3uKfswwfTY/KqrgGbYUndVTxbVjA/pQLmzVQmvan/GdzGi5FUeZwN6V1PyjnWGKCivFoj4n9Fjl+3djwUXg2cgJ3z3z+K77vNRjnESE4q7bZm5aA2D1GniO+GwS2eOVPPqu//yalBCXOBz8ra403420UedMVebMxpq4LOp9Iu/nuCDe3PFuvBiSqKCsLXzCxU6ULjgfGt2V799op6uyTih+Jun3SXqdgsvNMycUpt6CxtaL7hJpnl/UX1Js4vE0mpJBgsOVGDw1Xm6q+xbCbkaVh8u5ovnxwQ6Z9gRTo94m176W5gDwlVZGLaMBqEmdNZrFWlj/OplH87j0VDN1m8fnxgC7HNhgSwNn37Cpxmy9eMp0ZR7AwPmylpTPb62E9fCMeSFFguKxQrofw5qexRjc/Fb9pLY+K6lJr+FWBsd4YAV80GkQBtb4XMKH7/UPkJA1YM3P9EWuY6yF8UUlW+vegtgJSdGmhbCSEtwxRVHmwp1Uk+LtMKaDAwXZGzAoMmtHoxpe7lBka3TjU65DxfatQymaeFuwVwlVlo9qlu1pGw51RI/pRzF6veZf7Dw==

I’m not seeing an error in the JavaScript console when I open that code. It looks like this is the code after fixing it from the previous post – after moving the for-loop.

https://is.gd/ugKe3o Sorry, now there is the issue

It looks like the i and j loops starting on line 55 are a bit mixed up:

  for(var i=0; i<numVertices; i++) {
  var curve = 20 * Math.sin(7*Math.PI * j/numVertices);
  var riverCenter = j + Math.floor(curve);
  
  shape.vertices[riverCenter].z = -1;
  }
  
  for(var j=50; j<numVertices; j+=100) {
    shape.vertices[j].z = -1;
  }

Instead of the above, replace them with:

  for (var i=0; i<numVertices; i++) {
    var vertex = shape.vertices[i];
    var noise = 0.25 * noiseMaker.noise(vertex.x, vertex.y);
    vertex.z = noise;
  }

  for (var j=50; j<numVertices; j+=100) {
    var curve = 20 * Math.sin(7*Math.PI * j/numVertices);
    var riverCenter = j + Math.floor(curve);

    shape.vertices[riverCenter].z = -1;
  }

-Chris