You are not logged in.

robertl

Beginner

  • "robertl" started this thread

Posts: 30

Location: Croatia

  • Send private message

1

Thursday, July 11th 2019, 1:42pm

Any way to use alpha masks with panos?

Hi!
Looking for a way to use alpha mask or some other kind of transparency with panos.
Any suggestions?

Thanks!

spacerywirtualne

Professional

Posts: 889

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Thursday, July 11th 2019, 11:17pm

What would you have in the background behind the panorama?

Piotr
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

robertl

Beginner

  • "robertl" started this thread

Posts: 30

Location: Croatia

  • Send private message

3

Friday, July 12th 2019, 10:50am

What would you have in the background behind the panorama?

Piotr

I want to be able to overlay a part of the panorama on top of the original one.
Say for example, I have a panorama with a table and four chairs, and I would to make each chair a different color when I hover or interact with them.
Currently I either have to make four different panos and blend them or muck around with distorted image hotspots.
Being able to use alpha masks with 360 images would make the process a whole lot easier and straightforward and would also open the doors to a whole lot of new possibilities.


I hope that make sense.

light_line

Trainee

Posts: 82

Occupation: krpano freelancer || creating ideas & coding them || krpano developer

  • Send private message

robertl

Beginner

  • "robertl" started this thread

Posts: 30

Location: Croatia

  • Send private message

5

Friday, July 12th 2019, 1:38pm



Thanks. I'm familiar with those, and was looking for a way to avoid it and just have equirectangular images, preferably tiled for larger high resolution areas.

panomaster

Intermediate

Posts: 277

Location: Kobyłka, Poland

Occupation: Virtual Tours - Spherical Panoramas - Krpano developer

  • Send private message

6

Tuesday, July 16th 2019, 1:08am

Hi, This is an example that use the same techique.

https://www.ai360.pl/projekty/car1/

Scott Witte

Intermediate

Posts: 253

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

7

Wednesday, July 17th 2019, 10:06pm

https://www.ai360.pl/projekty/car1/

Excellent demo! The car is the hotspot(s) (png with transparancy) floating over the pano with distance something other than infinity. Clever. May I assume this is your project?

What really interests me is how just the pano images (including preview) are replaced without a full loadscene(). This is something I've wanted to do. Could you share your wisdom, oh (pano)master?

panomaster

Intermediate

Posts: 277

Location: Kobyłka, Poland

Occupation: Virtual Tours - Spherical Panoramas - Krpano developer

  • Send private message

8

Wednesday, August 14th 2019, 2:51pm

Yes, it's my project.

Sorry, but I didn't catch what you want to do...

Scott Witte

Intermediate

Posts: 253

Location: Milwaukee, WI USA

Occupation: Professional Photographer

  • Send private message

9

Sunday, August 18th 2019, 12:14am

I was wondering about some XML I saw in the network traffic, for instance, the file 6878.xml:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{
    const open = XMLHttpRequest.prototype.open;
    XMLHttpRequest.prototype.open = function (method, url) {
      open.apply(this, arguments);
      this.addEventListener('readystatechange', function _() {
        if(this.readyState == this.HEADERS_RECEIVED) {
          const contentType = this.getResponseHeader('Content-Type') || '';
          if (contentType.startsWith('video/') || contentType.startsWith('audio/')) {
            window.postMessage({
              source: 'xmlhttprequest-open',
              url,
              mime: contentType,
              method,
              contentType
            }, '*');
          }
          this.removeEventListener('readystatechange', _);
        }
      })
    }
  }

Don't think I've seen that before and briefly wondered if, instead of doing a loadscene and probably keeping the car hotspot(s) from one scene to another, you were somehow replacing the pano images in some other way. Still don't understand what is going on with those xml files, however.

Anyway, great example for the OP.