Reputation: 935
I'm trying to build something like a HUD in Three.js --
the thing is, I need this HUD to be able to show dynamically updated DOM elements and also respond to drag & drop events inside of my Three.js scene.
I just discovered the CSS3DRenderer, and it looks like the perfect solution, however when I try to implement it, CSS3DRenderer doesn't seem to exist anymore. I checked the migration logs and there is no mention of removal.
(It seems to have dropped around revision 77, at the same time that the ShadowMaterial appeared, which I am also using heavily, so I don't intend to use an earlier revision.)
So my questions are:
Is this simply a naming issue, and the CSS3DRenderer object still exists in the library?
If not, is there an alternative in Three.js that will allow rendering 'dynamic' DOM elements (and possibly iframes) within a Three.js scene that will also register a collision from a ray?
here is my implimentation:
var m = new THREE.ShadowMaterial();
var r = new THREE.CSS3DRenderer();
Thanks for any guidance.
Upvotes: 0
Views: 141