First issue… Your plane is one single quad.
You need to pass an additional 2 params to the PlaneGeometry constructor to subdivide it. like new PlaneGeometry(WIDTH,HEIGHT, 100,100)
Second issue.. you’re setting the material.color = 0xFFFFFF
Integer values like that don’t work.. it’s showing black. try:
color:‘white’ or ‘black’, “orange” or ‘#FFFFFF’
( edit: I was wrong here.. its showing black because there are no lights in the scene. Switching to .emissive instead of .color fixes it. )
Third issue: Your image loading is being blocked by CORS (errors in console) since it’s an external resource. You’ll need to add that asset to JSFiddle somehow.
(imo jsfiddle basically sucks. You can fork a fiddle but it’s time limited? You can’t easily upload resources? I click “login” and it takes me to an empty fiddle instead of the one I’m looking at?
really not great. I wish glitch.io was still around.
If I were you, I’d just develop this locally, and then host it on github pages.)
FireFox is also not a great browser for threejs dev imo. I would use chrome to get things working, then get it working in FF.
I’m not just hating on it.. I just know that there are issues that can occur in FF that don’t in chrome, so using chrome as a baseline or at least testing in 2 browsers can save a lot of headaches.
Make sure hardware accel is enabled in both browsers as well.
I also didn’t see any way to import your image into jsfiddle. hence.. why it kinda sucks, humbly, imo.
since color is affected by lighting and there are no lights in your scene.
emissive: emits the pure color regardless of light.
I also increased displacementScale.
I also added some styling to body, and the container to make sure they size with the window, and clip overflow so we don’t get scrollbars. just stylistic choices..