javascript - how to add a text to all sides of 3d cube using 3js -
//cube var materials = [ new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '1.png' ) }), new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '2.png' ) }), new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '3.png' ) }), new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '4.png' ) }), new three.meshlambertmaterial({ ambient: 0xffffff, map: three.imageutils.loadtexture( '5.png' ) }), new three.meshlambertmaterial( { ambient: 0xffffff, map: three.imageutils.loadtexture( '6.png' ) }) ]; var geometry = new three.boxgeometry(80, 80, 80, 3, 3, 3), cube = new three.mesh( geometry, new three.meshfacematerial(materials) ); cube.position.set( 0, 0, 0 ); var scene = new three.scene(); scene.add( cube );
hello have label in aspx page...named "abc1", want give name 3js cube on sides...how do that...i know code add image not text....how do that...when run application whatever text label has got should displayed on cube
Comments
Post a Comment