CubeTexture 360 panaroma, hdri from hand drawn or blender model

This was a codepen, but I can’t find a working example. I’m new at this so not sure how to explain this.

The questions:

  • I am assuming that I can somehow map a users click from some point on the above scene to some object. That if I click on a door in the image, it is possible (for me) to have a mapping and know it is door to “Chamberlains”. Click on the person and then play the sound “ouch”. Yes? No? Harder than I think?

  • Imagine that I want to change the scenery. That I want to have streets, but farm houses and barns. Or skyscrapers from NYC. Not real ones - either a blender model or hand drawn(?).
    I would somehow have to export the model from blender, put it into threejs and convert it into a 360 panorama?

  1. Here is a link to someone who wrote about hand drawing one: Drawing a Spherical Panorama – D. M. Swart I get that but I want to do many of these and be able to rearrange them so hand drawing them is out for me. Is there a way to do one or more line drawing on 2D paper then convert to spherical coordinates?

Hoping for someone to point me in the right direction, but very happy to accept complete solutions!!
Thanks!

Yes to both, and the click part is easier than it looks. Keep each hotspot as a direction rather than a pixel: on click, raycaster.setFromCamera gives you ray.direction, and atan2 and asin turn it into longitude and latitude (check the offset once against a door you know). Store each door or person as a lon/lat box measured in the panorama image and test against those, no hidden geometry needed. For new scenery you don’t build the panorama in three.js: in Blender, set the Cycles camera to Panoramic, Equirectangular, render at 2:1, then load the image with texture.mapping = THREE.EquirectangularReflectionMapping and assign it to scene.background. Rearranging modular Blender pieces and re-rendering beats redrawing by hand.

Wow! I am very grateful!. Thanks you, to all the three.js people and all the others who make working with this so much fun.