Hi!
Looking for a way to use alpha mask or some other kind of transparency with panos.
Any suggestions?
Thanks!
Hi!
Looking for a way to use alpha mask or some other kind of transparency with panos.
Any suggestions?
Thanks!
What would you have in the background behind the panorama?
Piotr
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.
these links may be helpful for you:
https://krpano.com/examples/hotspotextract/
https://krpano.com/forum/wbb/inde…d&threadID=7272
these links may be helpful for you:https://krpano.com/examples/hotspotextract/
https://krpano.com/forum/wbb/index.php?p…d&threadID=7272
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.
Hi, This is an example that use the same techique.
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?
Yes, it's my project.
Sorry, but I didn't catch what you want to do...
I was wondering about some XML I saw in the network traffic, for instance, the file 6878.xml:
{
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', _);
}
})
}
}
Alles anzeigen
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.
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
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!