porres / pd-else

ELSE - EL Locus Solus' Externals for Pure Data
Do What The F*ck You Want To Public License
287 stars 36 forks source link

flip x/y for rotation and add range, xrange and yrange messages (and flags) #2057

Closed ben-wes closed 5 months ago

ben-wes commented 5 months ago

i think i messed up the help a bit there ... but only the parameters of scope. will need a check.

porres commented 5 months ago

tested the range message and if doesn't seem right at all... also, there's a constant and annoying post

moreover, we could have a 'clip' mode that doesn't allow drawing outside of bounds

ben-wes commented 5 months ago

tested the range message and if doesn't seem right at all... also, there's a constant and annoying post

ah - sorry. i forgot to remove that after making a stupid mistake before where i had a wrongly written variable name. will be gone in the next PR.

moreover, we could have a 'clip' mode that doesn't allow drawing outside of bounds

unfortunately, this doesn't seem so simple to me. it could probably be abstracted in some way so that every line is just clipped to the object bounds and points added there instead of the point outside. but i wonder if there might be other options, @timothyschoen ?

besides that, i also have the feeling that range is not useful in this 3d context and honestly i also think that we should not do non-proportional scaling for 3d stuff (like with the previous test). imho, the "right" solution would be to scale up to the max. side (height or width) and clip if the empty space bothers you. i'll give the clip a try next (unless @timothyschoen tells me that there's an easier way to achieve this :) ).