Sie sind nicht angemeldet.

1

Donnerstag, 11. Juli 2019, 13:42

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!

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

2

Donnerstag, 11. Juli 2019, 23:17

What would you have in the background behind the panorama?

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

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

3

Freitag, 12. Juli 2019, 10:50

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.

5

Freitag, 12. Juli 2019, 13:38



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

Fortgeschrittener

Beiträge: 297

Wohnort: Kobyłka, Poland

Beruf: Virtual Tours - Spherical Panoramas - Krpano developer

  • Nachricht senden

6

Dienstag, 16. Juli 2019, 01:08

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

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

Scott Witte

Fortgeschrittener

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

7

Mittwoch, 17. Juli 2019, 22:06

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

Fortgeschrittener

Beiträge: 297

Wohnort: Kobyłka, Poland

Beruf: Virtual Tours - Spherical Panoramas - Krpano developer

  • Nachricht senden

8

Mittwoch, 14. August 2019, 14:51

Yes, it's my project.

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

Scott Witte

Fortgeschrittener

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

9

Sonntag, 18. August 2019, 00:14

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

Quellcode

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.

10

Dienstag, 17. März 2020, 12:26

If alpha would be enabled for the tiled images we could create higher res masks by our self.
Just create normal vtour in krpano and key out or what ever the mask, save as png with transparency.

Rename jpg to png in the xml and ready

<image>
<cube url="xxx/xxx.tiles/pano_%s.png" />
</image>




@Klaus
You think its possible to enable alpha for the tiled images?



Best
Peter

Ähnliche Themen