Hi, I would like to know if drawing something like this is possible without having to draw another object on top to hide the previous one.
Any easy solution?
How to draw only a certain part of an object?
Hi, I would like to know if drawing something like this is possible without having to draw another object on top to hide the previous one.
Any easy solution?
@cuinjune Hello Cuinjune.......... You could move ("drop" in this case) it through a plane........... a "sea" of the same colour as the background...... but that is still another object (a big square rotated at 90 degrees)....... which is useful if you want to build in some perspective...
Or you could use [pix_crop].......
David.
Hi, whale-av! Thank you for your answer!
You mean drawing another square with the same color on top right? that's what I wanted to avoid.
I would like to simulate a separate subview which means every object (which will be moving around the gem window) will only be visible in the small rectangular area and not visible outside of the area.
The simplest way would be to draw 4 rectangles around the area to make the frame but then I would like to make the subview area the topmost than all other objects so I can even create a table view that looks like below.
Maybe this is not easy with GEM?
@cuinjune Ah! I see.... a different problem...........
...... pd/extra/Gem/examples/02.advanced/03.View_OSD.pd shows that much can be achieved in Gem...........
I think then that you need to look at it another way......
...... as you move your objects you could maybe turn on/off the objects associated gemhead (rendering) according to the objects translated position.
They will "magically" appear once their centre comes into range........ not slide into view.
Or...... you could set an alpha channel for your overlay and use [pix_mask] which might do exactly what you are looking for...... but there will be a problem with scaling.
I will post back if I mange to solve it......... in the meantime...........
Oops! Looks like something went wrong!