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

Create mask to see underneath an upper layer

Community Beginner ,
Jul 28, 2018 Jul 28, 2018

Copy link to clipboard

Copied

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 🙂

Views

422

Translate

Translate

Report

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.

Votes

Translate

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

Copy link to clipboard

Copied

as3 or html5/canvas?

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

AS3

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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!

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

Try this tutorial. Should help you out.

AS3 Masking

Votes

Translate

Translate

Report

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