three.js how to make double sided object

In your case, you add the following to your callback function: objects.traverse( function( node ) { if( node.material ) { node.material.side = THREE.DoubleSide; } }); The doubleSided property of Mesh is deprecated. It was replaced with the side property of Material Also, it is best to learn from three.js examples that work with the current … Read more

How can I launch Chrome with flags from command line more concisely?

Just make an alias in your .bashrc or .bash_profile alias ogc=”open -a Google\ Chrome –args –disable-web-security” And then reload your shell. exec $SHELL Now, every time you type ogc (or whatever you want to call it) in your terminal, it will run the full command open -a Google\ Chrome –args –disable-web-security

How WebGL works?

Hopefully this little write-up is helpful to you. It overviews a big chunk of what I’ve learned about WebGL and 3D in general. BTW, if I’ve gotten anything wrong, somebody please correct me — because I’m still learning, too! Architecture The browser is just that, a Web browser. All it does is expose the WebGL … Read more

three.js outer glow for sphere object?

I’ve worked a bit on separating out the part of the WebGL Globe code (linked to above) that produces the atmospheric effect. A preliminary working version is here: http://stemkoski.github.io/Three.js/Atmosphere.html To the best of my understanding, there are a few interesting things going on in the original code to create the atmospheric effect. First, the glowing … Read more

Multiple transparent textures on the same mesh face in Three.js

Use ShaderMaterial and set both textures as uniforms, and then blend them within shader. I made this example: http://abstract-algorithm.com/three_sh/ and that really should be enough. So, you make ShaderMaterial: var vertShader = document.getElementById(‘vertex_shh’).innerHTML; var fragShader = document.getElementById(‘fragment_shh’).innerHTML; var attributes = {}; // custom attributes var uniforms = { // custom uniforms (your textures) tOne: { … Read more

Unity, Torque3D, Google O3D, WebGl….which to choose? [closed]

WebGL is not a failure in the making. Speaking like it’s a failure shows these peoples ignorance. That said, if you’re just starting out, explore your options. If you’re looking for more eyes than just windows users, stay away from proprietary solutions. Microsoft’s dominance isn’t big as people think, anymore. IE is fading in popularity, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)