вот пример того, что связывают с Q
https://jsfiddle.net/91zcdm5r/1/
Exact problem: entity is adding from pool well, but it is not showing inside videsphere.
Looks like if videosphere have something like z-index 9999 , it is overlapping a-sphere entity. (not literally but looks like)
Подумайте, основная причина, потому что невозможно добавить а-сферу внутри а-сферы?
Пример:
AFRAME.registerComponent('mainvideo', {
init: function() {
//....
let intersection = this.raycaster.components.raycaster.getIntersection(this.el);
sphere.setAttribute('position', intersection.point)
console.log('sphere', sphere) //logs entity ok
//but it is not showing here
/* If try to add explit way like this:
// doc.querySelector('a-scene').appendChild(sphere)
//fall with core error
*/
})
Что можно сделать здесь, чтобы показать сущность a -phere Visible.
Пожалуйста, проверьте Js Fiddle раздвоенные от Петра
https://jsfiddle.net/91zcdm5r/1/
PS: предыдущий Q. связан с этим здесь
Как правильно создать пул с 10-a-сферой A-frame