You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,124

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

1

Monday, January 6th 2014, 11:41am

masking the other way around

Hi Klaus,

i would like to see a masking option that works the other way around.
Maybe it's already there but i don't see/can't find a way..
i explain.

now we make a mask and we see only what is in the 'masked' area , and we can control it with white and black.

I would like to see that it is also possible to see something the whole time, and that when it moves over the masked area (with a white or black mask(?) ) it hides…
So i only need a small mask to cover that area where it should be invisible..

I found a work around to make a large white png with the anti mask area cut out…
That works sort of but it makes the graphic go fully white.. :-/
I would prefer an anti mask or negative mask option..
Cutting out the area that should be hiding the graphic is not an option for my special case.

In this video at the end you can see what i mean http://youtu.be/620QJXEYkSo
the text ballon has text and a border.. (just a graphic).. but because of the masking works the other way around it doesn't show.
Would be great when we can get that right isn't it?


Is that possible?

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

This post has been edited 1 times, last edit by "Tuur" (Jan 7th 2014, 3:13pm)


Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

2

Tuesday, January 7th 2014, 4:39pm

Why your graphic/balloon is not containing text at all. Why you have to use mask there?
Is there some example you can share to understand better what you want to achieve?
Thinking on invert masking of the mask but not sure what you want to hide *huh*
Umalo

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,124

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Tuesday, January 7th 2014, 5:06pm

i make another example with the same video and graphics.

maybe i made a thinking fault..

i like just to mask the pole, so that the part of the balloon that is over the pole is invisible, so it looks like it goes behind the pole.
You can see that at the end of the video i posted above..
But i will make a new example..
you got me thinking about it and i tried one thing not yet..
could be the solution.

normally we place a mask and in the mask it shows.
Now i want that it shows everywhere, but that it hides in the mask.

I make a example tonight/tomorrow

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

4

Tuesday, January 7th 2014, 5:42pm

Something like this: masking visible/invisible
If not at least to tickle your brain a little bit ;)

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,124

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

5

Tuesday, January 7th 2014, 5:49pm

the other way around
like this

http://www.virtualtuur.com/krpano/mask/2/

drag the hotspot up down .. then you see that my mask is big and looks like: see attach
a big mask with a transparent area in the middle..

i like to just use the mask to do the hiding .. and not the showing..
:-/

haha

understand?


Edit: sorry i wrote some nonsense here..but took it away now..

Tuur
*thumbsup*
Tuur has attached the following image:
  • mask.png
http://www.virtualtuur.com
Skype:studiotuur

This post has been edited 2 times, last edit by "Tuur" (Jan 7th 2014, 6:05pm)


6

Tuesday, January 7th 2014, 7:25pm

Hi,

no, sorry, that's not possible...

That 'Flash-masking' is already very inefficient (in kind of rendering performance and memory usage) and adding another custom layer where the mask image will be drawn inverted every frame before applying it was mask, would make it even more inefficient...

And for HTML5 there not even a equality for the normal mask usage...

Best regards,
Klaus

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,124

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

7

Tuesday, January 7th 2014, 7:32pm

Thanks Klaus..

such a pitty..

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

8

Tuesday, January 7th 2014, 8:55pm

Tried with masking the mask *blink* , blending *blink* , and even scale9grid mask type on each cube but all of that was as Klaus confirmed soooo slow and crushing Flash. In combination with Video I think not usable so, you have to go in another direction *whistling*

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,124

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

9

Tuesday, January 7th 2014, 8:59pm

That would be with the big mask that i just track as an moving hotspot for some frames then.. As you see in my example.
In the video i made a small mistake.. It actually works nice.

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

10

Tuesday, January 7th 2014, 9:03pm

than try with scale9grid. I covered whole cube with one small 136b in size and stretched it over whole cube with small tranparent area in the middle.

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

11

Wednesday, January 8th 2014, 4:39pm

What about making Distorted Hotspot with perfect pixel alignment with higher zorder than your hotpot. This will work as you expected.
I'm only not sure if this is usable for your as I assume you need this for your video moving hotspots. Than mean this would be needed to be done for each frame -> time consuming. But from one pano perspective this is the way you can "hide" hotspot behind other (which actually act as part of the image)

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,124

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

12

Wednesday, January 8th 2014, 7:02pm

Yes i know, but for the video..
I have the masking working good.
I will make a example later.
Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur