As I dive into the world of JavaScript and experiment with Three.js, I came across a fascinating tutorial by Paul Lewis. He demonstrated how to create an interactive liquid metal ball with Three.js, similar to the one showcased at
In an attempt to incorporate an external model using the ThreeBinaryLoader, I modified the code on this http://codepen.io/gnazoa/pen/wKVLNG page. However, I encountered a syntax error:
sphereGeometry = loader.load(
"sources/obj/mmlogo/mm_logo.js",
function(
200, // radius
60, // resolution x
30); // resolution y
Subsequently, I attempted a different syntax:
var loader = new THREE.BinaryLoader();
loader.load( "sources/obj/mmlogo/mm_logo.js", function ( sphereGeometry ) {
var material = new THREE.MeshPhongMaterial( {
color: 0x515151,
morphTargets: true,
overdraw: 0.5,
envMap: reflectionCube,
combine: THREE.AddOperation,
reflectivity: 1,
shininess: 0,
side: THREE.DoubleSide,
} );
Unfortunately, I continue to encounter the same syntax issue.
While I understand that the solution may be simple, the complexity is overwhelming as I navigate through the learning process.
Can anyone offer guidance on achieving the correct syntax for this task?