pchen66 / panolens.js

Javascript panorama viewer based on Three.js
https://pchen66.github.io/Panolens/
MIT License
2.79k stars 497 forks source link

How to add text spot #137

Closed aramvr closed 3 years ago

aramvr commented 6 years ago

Hi. I'm trying to add an html button instead of png button. how is that possible?

aramvr commented 6 years ago

I really need html marker feature. please help me to have it or please prompt me how to build with panolens or threejs

aramvr commented 6 years ago

I need to add this button as marker. https://codepen.io/anon/pen/QryxWx Also tried to add gif button for animation but animation not working in this case. Also svg animation don't works.

ricmob commented 6 years ago

Can you show us a codepen of where you added the png and gif buttons?

claytonrothschild commented 6 years ago

Did you ever figure this out? I tried following a guide here: http://learningthreejs.com/blog/2013/04/30/closing-the-gap-between-html-and-webgl/ and just adding the texture to PANOLENS.Panorama (since Panorama is an implementation of THREE.Scene). I had to add the CSS3D renderer from Three.JS (https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/CSS3DRenderer.js).

I got really close but ran out of time. This seems to be the approach to go though.