troisjs / trois

✨ ThreeJS + VueJS 3 + ViteJS ⚡
https://troisjs.github.io
MIT License
4.11k stars 302 forks source link

How to use trois with CSS3DRenderer? #196

Open jvolker opened 1 year ago

jvolker commented 1 year ago

This looks like an awesome project, thanks for creating this. 🙏

Is there any way to use this with the CSS3DRenderer and DOM elements?

Examples:

Thanks.

hopepdm commented 4 months ago

Check the source code, the author did not implement a rendering for css3d. You can refer ‘src/core/Renderer.ts’ to implement the Vue cssrender component and use it in your own project.. The key is to implement the provide() interface