Jump to content

2D masks


Rick
 Share

Recommended Posts

I tested it, and it worked, you remember the MOD2X trick. Maybe you did the textures wrong, but I could make a demo, since the old demo is on my old PC, and it's not ready yet.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Got it to work again:

2docclusion.zip

 

You need to draw to a temporary buffer, which doesn't need to be bigger than your image (64x64 in this demo).

Then you draw the occlusion image, which has transparent areas, with BLEND_ALPHA.

Then you draw the actual image with BLEND_MOD2X.

Then you draw the temporary buffer to your real background buffer.

  • Upvote 1

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...