I made some 3d audio Spectrograms using Babylon.js and Audacity sound editor. The tutorial for these is here together with the HTML, textures and sound files.
An Audacity user noticed that they had all stopped working and traced the problem to this line:
Note that the minimum height of 40 is larger than the maximum height of -40. This is because the grayscale height texture has darker shades = higher elevations. However, it worked fine for several models back in March 2018.
He managed to get the model working by swapping the minimum and maximum heights and inverting the grayscale texture. The model fails if minimum is larger than maximum height.
Is this a permanent change or a glitch that slipped thru? Sorry that I can’t tell you exactly when it changed except it was some time after 12mar18.
I couldn’t get it to run in Playground but I found I could replicate the problem using the “Light projected texture” example.
The ground mesh is given by this line
var ground = BABYLON.Mesh.CreateGroundFromHeightMap(“ground”, “textures/heightMap.png”, 100, 100, 100, 0, 10, scene, false);
If you swap 0,10 for 10,0 the model fails which is the same problem I have.
Great stuff and many thanks. My models still don’t work and neither do the Playground inverted examples. Do I need to wait until your changes are officially released? (I don’t understand how GitHub works)