Three.js & Dat.gui - TrackballControls renderer.domElement disables rotate and pan

前端 未结 2 1625
难免孤独
难免孤独 2021-01-20 20:07

I am trying to use dat.gui with a very simple three.js (r73) scene but am running into an issue with rotate and pan not working after adding \"renderer.domElement\" to the t

2条回答
  •  旧巷少年郎
    2021-01-20 20:17

    Make sure the renderer DOM element is added to the html before it is being used as a reference.

    document.body.appendChild(renderer.domElement);
    

提交回复
热议问题