Jump to content

[HELP] Cut out a circle from renderTarget


Ceeser

Recommended Posts

Hey, renderTargets are squares and I want to display a circle by cutting out a part of the renderTarget.

I've been trying the HUD Mask Shader, but that gives a weirdly distorted output image for some reason.
Somebody told me that it is possible to "cut out" a circle from an input image using dxSetBlendMode and dxDrawCircle.
I've been trying out a bit but it seems like I can't find a solution.. is it even possible to "cut images" using dxSetBlendMode and dxDrawCircle?

Or even, like how does "overwrite" behaves? If I use dxDrawCircle(X, Y, r, 0, 360, tocolor(0, 0, 0, 0) I still see it as a black circle with 255 alpha - why?

Edited by Ceeser
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...