The room effect in the Threejs can be seen inside the building
The beautiful Life of the Sun Vulcan (http://blog.csdn.net/opengl_es)
This article follows "Attribution-non-commercial use-consistent" authoring public agreement
Reprint Please keep this sentence: Sun Vulcan's Beautiful Life-this blog focuses on Agile development and mobile and IoT device research: IOS, Android, HTML5, Arduino, Pcduino , Otherwise, the article from this blog refused to reprint or re-reproduced, thank you for your cooperation.
var Cubetex = three. Imageutils.loadtexture ('./maps/house_wall.png '); var geo = new three. Cubegeometry (6, 3); var cube = new three. Mesh (GEO, new three. Meshphongmaterial ({Map:cubetex})); cube.material.side = three. Backside;cube.position.set (0, 0, 1.5); Scene.add (Cube);
This code, condensed a lot of things in the inside, the key part is
. Material.side = three. backside;
It is not difficult to understand the opengles of the foundation.
But in the boundless threejs source of the sea, to catch this needle, it is not easy, expect, Threejs can quickly grow up, but also hope that the open source community can actively make it bigger and stronger, better documentation, which also requires the participation of spectators.
I am JS layman, it is estimated that the heart is intentional and weak, Threejs strong, the more research can appreciate, there are a lot of ideas and architectural ways to learn from.
At the same time, Threejs is also a very good opengles textbook, by studying it, can well understand various concepts, from the abstraction to become practical.