Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Create mask to see underneath an upper layer

Community Beginner ,
Jul 28, 2018 Jul 28, 2018

Good people, my project requires a mask effect which creates the effect of looking deeper into an object. For example, the upper layer contains an engine and when the mask is applied, the pistons inside the engine are visible. Ideally, the mask should be interactive and dragable by the user.

I have figured out the code for the dragable mask on a mouse click but have not succeded so far in creating the final end result of looking underneath an upper layer through a mask.

Your inputs are higly appreciated 🙂

478
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , Jul 28, 2018 Jul 28, 2018

So... just move the mask and masked layers above the upper layer.

Translate
Community Expert ,
Jul 28, 2018 Jul 28, 2018

as3 or html5/canvas?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 30, 2018 Jul 30, 2018

AS3

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 28, 2018 Jul 28, 2018

So... just move the mask and masked layers above the upper layer.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 30, 2018 Jul 30, 2018

Thanks - will try and give feedback when I am back home. Currently travelling.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jul 31, 2018 Jul 31, 2018
LATEST

Intuitively one wants to create the hidden layer underneath the upper layer but in this case, it is the opposite. I appreciate your insights  - thanks!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 30, 2018 Jul 30, 2018

Try this tutorial. Should help you out.

AS3 Masking

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines