Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
js
textures
README.md
app.js
index.html

README.md

day 0010


No interactions for this one
[project link](http://caiyuli.com/projects/xDaysOfMaking/d0010/)

three.js

笑相遇,似觉琼枝玉树相依,暖日明霞光烂。

The moment we encountered, smiling, I saw the trees in paradise. It was bright, it was warm, it was blazing and shimmering.

learned today

Feb 5th 2017

Practicing the basics applications of threejs

basics

geometry, material >> mesh

light, mesh >> scene

camera, scene >> renderer

update position

If update needed, then need to add these two kinds of code accordingly to the render function


mesh.geometry.verticesNeedUpdate = true;
//if using bufferGeometry, use the following pattern instead
//geometry.attributes.position.needsUpdate = true;
 

color control

threejs documentation

var color = new THREE.Color("rgb(255, 0, 0)");
var color = new THREE.Color( 'skyblue' );

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.