26 November 2015 05:28
Hi
I am trying to have the ability to mask parts of objects out so that the background is visible where things are masked out.I use a static camera for my project so that makes things a bit easier.
The app user has to be able to "paint" on the canvas which would reveal the background behind the 3d objects.
One solution I was thinking of is to have background and foreground that match perfectly and the the foreground starts out masked out (black alpha map). Then the user can interactively paint the alpha map which would reveal the foreground and create the illusion of masking.
However I am not sure how to realize the painting part :)
Do you think something like this is possible through the API or do you think it would be better to use some other technology "on top" of b4w? Any pointers are welcome!
I am trying to have the ability to mask parts of objects out so that the background is visible where things are masked out.I use a static camera for my project so that makes things a bit easier.
The app user has to be able to "paint" on the canvas which would reveal the background behind the 3d objects.
One solution I was thinking of is to have background and foreground that match perfectly and the the foreground starts out masked out (black alpha map). Then the user can interactively paint the alpha map which would reveal the foreground and create the illusion of masking.
However I am not sure how to realize the painting part :)
Do you think something like this is possible through the API or do you think it would be better to use some other technology "on top" of b4w? Any pointers are welcome!