I was wondering...
Is it possible to add Three.js elements to a A-frame scene? Assuming A-frame is built upon Three.js, and
three Version: ^0.74.0
is logged into your console it shouldn't be a weird thing right?
I tried this code onto my A-frame scene element:
let scene = document.getElementsByTagName('a-scene');
console.log(scene);
var sphereMaterial = new THREE.MeshLambertMaterial( { } );
var sphere = new THREE.Mesh( new THREE.SphereGeometry( 15, 10, 10 ), sphereMaterial );
sphere.position.set(150, 20, -170);
scene.add( sphere );
But it doesnt work because the scene object doesnt have a add function.. Maybe because the A-frame scene is not an instance of a normal WebGLRenderer?
Does anybody have experience with this? It would be very awesome!