round corner

Post your awesome Wire patches here, share tutorials
Post Reply
User avatar
yochee
Hasn't felt like this about software in a long time
Posts: 122
Joined: Sun Sep 28, 2008 18:49
Location: Münster | Germany

round corner

Post by yochee »

Hi there, long time no see :D

I currently need an effect to round a corner shape, basically something like this
https://www.youtube.com/watch?v=EmNBF5ve18w in realtime

The source graphic to be rounded (or say "simplified") will be an image file maybe png with a more a less complicated shape (outline of a logo) which is applied to a clip slot in Resolume.

I had a look at the effects in Resolume and only in Wire i could find the "round" node. However I can only apply that to "shape2d" or a "slice", not to a "texture in".

Is there a way I could use the "round" node to a texture? maybe convert the texture somehow..
Or do I have to paint the shape included in the png to a slice, and then import to wire..? seems overly complicated.

Any ideas?


oh, and I'm still using Wire 7.13...

User avatar
Arvol
Might as well join the team
Posts: 2799
Joined: Thu Jun 18, 2015 17:36
Location: Oklahoma, USA

Re: round corner

Post by Arvol »

Maybe using a few circles [different x/y translations] as a Mask sources?

User avatar
yochee
Hasn't felt like this about software in a long time
Posts: 122
Joined: Sun Sep 28, 2008 18:49
Location: Münster | Germany

Re: round corner

Post by yochee »

Arvol wrote: Mon Sep 18, 2023 15:29 Maybe using a few circles [different x/y translations] as a Mask sources?
..can you explain a bit further, what you mean by that?

for now I only have the logo with sharp corners that should be transitioned to rounded corners.


The "round" node in wire does exactly what I need but only to slices or shape2d.
Do you mean Mask sources = slices?

Other approach might be to import a custom shape2d, is it possible to do so in Wire?

User avatar
yochee
Hasn't felt like this about software in a long time
Posts: 122
Joined: Sun Sep 28, 2008 18:49
Location: Münster | Germany

Re: round corner

Post by yochee »

btw a little feature request for the "round"-node.

for now the round node rounds the corners of a slice to the outside. but i think it should be into the inside, because otherwise the rounded corners would be outside of the visible area of a slice in the projection.

use case for round would be for example if you'd wanna round up the hexagon to a circle
Attachments
Screenshot (826).png
Screenshot (825).png
Screenshot (824).png

Zoltán
Team Resolume
Posts: 7114
Joined: Thu Jan 09, 2014 13:08
Location: Székesfehérvár, Hungary

Re: round corner

Post by Zoltán »

Textures inputs are rasterized images, shapes are math formulas.
Finding corners in textures would require some kind of object recognition which Wire doesn't have currently.

Slice masks are not constrained to the slice areas. If you modify the shape of a slice mask (which is a formula), you might be making bigger.
Transform can be used to make it smaller with the Scale < 1

Outside corners could be rounded with something like this:
--begin-wire-patch--
1022.3oc6WszaihDD9uxn9r6Q8aZxsFLLZOrZkVM6oQ4.wPhQCFxBMSR1H+eeKZvA63WjWJ6gkHGra9pp5ppupplGQKpJKyVXyqJaPW7iGQWWWsB9BYFpp0daqEc4LjsBVgNCkW5VX8rS.icHX7Cosz7FaR4hrcPx1Co3PJjtGLuAXjcv4sAG4IfpCoO8Q0GcGbp80m+AM7S.o6A7HZjsGP1N.822zPvZURyOAXWNHRWNDQPyPb3itCXYUZFr5ivpv+Rr157qZs8KkW1mAb+v9vsYnKPksqtJqFj9WIEsvBz0qmgtppsL0gZYV9MKsnKzfsuKO0tDPvAVv8vcArEe.tK8AQVTjzzajTPqddJeOlRhCXFFVDRCw5PQHl4Sky8zgg5H+NalU2.LQzEDmFpV7SP1ekmlUAObQUQUM76qgKUBg3Vx4A1AuoK+M5I1r6ss0YrzQmorsnnyeVlmllU1EqFnBPbJYUmPeuWnu7akH.G8cMl4BTaBZ9RWPiQ6CZPf33AMYLkhEJ4brejliM7vXoQRlqizu0f1UEs0a4IWWTkX21Q.+3gaG1TCXtpppXDx0IEMYq2pZ9YJiMB8GjuxH8WLeMgwYLwrCrFv5Q2jz1zjmTd78F4qbtmhQIDNW6ykZIa8rISBlg961jhb6Cmx42goLDGFoJAcgN.B6CqvZfiHozdNB4DEVgAZEVXTwXiIvfIDen9RGDHCouYNxzX.KVl.iRJ1BWdoM6ls8YxKJCkWBaa6YsqqE3KrrevkF2zio0euScq65ftWZEHH2sKe4tQifZxuoLonSzkIM3UI2ezctstMaCr7xyAaZjot3v8mCwNF64HHStSOwQG4R4woiyYbYGczfCTJJlvLAQRYnGKN98tO+d8EfAQbkOb4oTbgum+oa4G2I+PCewG2PRlKzAAn9ZYJ+DCIihLXwbtFqihjXRTfQDFLmXhh9LFRt+zw+.zAfP85KQb6CbOpmPuXYUNLAYD+22r69xe9s.CZxECSd7qP22ZUPHmfKGHfyr3EAieIyCvlvPFatgGExYetoi+p71jEtlUduwLAAmluJqro+0.dRnsVbbJ9kiB8r7m61nMFclMRPeMlgdFy3p+EnIONkI084b0I5ewMLAVDEqwFgLBahiCDvYLl6E99z+hLwIft2W3Y85DaejpYt+t7HLjuUmkXybGSQ++yyN5atP7bLBov6+lSz78oJeMb9XNmJ5NF3IGnYWVm0rrpvU24+YzY3UUmydgB0j+OYmH82Mes6QjIzfxUfz8P5KALaZfO7vHhZuFSdj9yFHXm3cAM9lX3EnCD3.JIFy8U5.tJHPwC93ZLUe9NSmCKaJXObSLSZpKJBr5p159FGqW+ufmgniL
--end-wire-patch--
Attachments
Képernyőfotó 2023-09-20 - 15.37.53.png
Software developer, Sound Engineer,
Control Your show with ”Enter” - multiple Resolume servers at once - SMPTE/MTC column launch
try for free: http://programs.palffyzoltan.hu

Post Reply