A common problem with OrbitControls is that it hijacks (or “they hijack”) the mouse. This in practice disables dat.gui controls. The solution is to supply OrbitControls with renderer.domElement as the second argument.

The same applies to other testing templates, but I have not checked them.

@looeee

EliasHasle:

#17612 will break the current fiddles, as well as all fiddles based on them (except those specifying a version)

I have to correct/moderate myself here. #17612 only gives warnings when domElement is undefined . So the change is safe for current fiddles. I suppose it may be changed to errors or exceptions in the far future.

OK, I didn’t check all of them. Thanks for clarifying. Then this stands for OrbitControls and TrackballControls :

Note that #17612 will break the current fiddles, as well as all fiddles based on them (except those specifying a version). So this is some of a bleeding wound.

dev: https://jsfiddle.net/x84yuLnd/

CodePen:
master: https://codepen.io/eliashasle/pen/ZEEQOgM
dev: https://codepen.io/eliashasle/pen/qBBbNee

The “embedding” example (although not working, AFAICS) uses the CodePen master address.

Thanks @EliasHasle ! And sorry for the delay, this totally slipped my mind.

We should update these to use modules at some point too I guess, or provide module and non-module versions.

EDIT: I’ve taken the opportunity to update the Question category sticky.

I’m thinking it might be more useful to have templates in Codesandbox or Glitch that show how to load a model rather than dev/master branch. What do you guys think?

Use this category for any questions related to three.js. Before posting here, please use the search function to check if your question has already been answered. There are also a lot of answered questions about three.js on Stackoverflow, so please search through the three.js questions there as well. If you think you’ve found a bug, you can report it on the three.js issue tracker on Github , but if you are not sure, post your issue here and we will help you confirm whether it is a bug or not. looeee:

I’m thinking it might be more useful to have templates in Codesandbox or Glitch that show how to load a model rather than dev/master branch. What do you guys think?

You mean removing two of the jsfiddle/codepen templates (dev or master), and adding Codesandbox or Glitch templates that load 3D models?