I\'m trying to achieve something like this answer to another post, however I have one major difference which is that I\'m not using three.js, instead I\'m using an x3d objec