Go to: https://mp.weixin.qq.com/wxopen/waregister?action=step1 to register
Tips:
- Do not use your qq email address, if your wechat account has binded to that qq account... (Otherwise you cannot get a notion on this email address has been used, nor receive a validation email)
- Select the mini-game category instead of mini-programme
- If you are not about to publish it, you can skip this registering step. You can develop your mini-game ahead by using tourist-app-id.
You can follow this 1'37'' video:
If you are using the "touristappid" or storing your files on "http" address instead of "https", please Enable the Debugging Mode on phone after scanning the preview:Btw, for the published mini-game, you need to add your appid into the project.config.json file, and add the request address (which must be HTTPS) here:

I'm using this 3rd party weapp-adapter: https://github.com/finscn/weapp-adapter
Then, adding following lines in index.js:
window.performance.now = function(){
return Date.now();
};Reasons: (It can be fixed by the official team while you're reading this article.) According to the threejs docs on Clock:
I should get the period in seconds, but I got in milliseconds in the mini-game.
Refs:
three.min.js:
https://raw.githubusercontent.com/mrdoob/three.js/dev/build/three.min.js
OrbitControls.js:
https://raw.githubusercontent.com/mrdoob/three.js/dev/examples/js/controls/OrbitControls.js
Adding following lines at the beginning of OrbitControls.js:
var THREE = require('three.min');So do other ThreeJS 3D model Loaders.
- How to add the wechat loading wiget with threejs loading manager;
- How to add skybox to the scene; (I downloaded the skybox images from: http://www.custommapmakers.org/skyboxes.php)
- How to import GLTF/GLB models (you have to put it online) and add lights; (I was recently playing the game ZooKeeper Battle, so I just made that cute rabbit in that game by online threejs editor, and exported the .glb file.)





