wire question - Scaling of TextureIN with different Comp sizes

Post your questions here and we'll all try to help.
User avatar
cosmowe
Knows Resolume better than the devs
Posts: 1597
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

wire question - Scaling of TextureIN with different Comp sizes

Post by cosmowe »

Hey folks,
I am building a patch again, and I need some advice from you pros ;)
For me it's a bit hard to describe...

Simplified:
I have a png graphic (1920x1080) included in the patch which should functioning as an image frame.
Resolume should take everything and scale it into this frame. This seems to work fine with a comp size of 1920x1080...but with a comp size for example 5000x1080 the image stretches over the borders of the png frame when the Resolume layer properties are set to "fill" or "stretch"

My final goal is to make this patch suitable for any compsize. When this fx patch is applied the content should only be visible in the frame no matter what :)

Again.. I am feeling I missed something or I am just having an heat stroke .... I hope I described it okayisch

Video

Compiled Patch with image:
https://e1.pcloud.link/publink/show?cod ... RmR7WeFF5X

--begin-wire-patch--
789.3ocwU0zaiBCD8uRkOCUf4K6bCHTodnpqT2curjCNfSBpDLBLca1J9uuiIjPnIMIUUqVNPvNOOy7dy3YdCkHJJ3IxLQQMZxudCsnRrF9vTCIZjkMRzLMjT.6f0PYEvFXzrVs83LNBmUOtQvr1Ay3H6YNBH9H64NXuY8ephTTmkJDobX0avJ3ESJqxl2H2tUVQsjUjrcgbSIGMAUzrdNuBogdgk2.aX11pglKZJR6PshmsbkDMg.gwuyRkq.DV.EeEMwkRt0QCsAMww1DNTRNqdqaRA6544R8vtN5AXertcnYnNIzNTGSMcl5QBCIQTkW4U0fRilXzYAQxyvYeIKkKf+LQjKpf0KfGWlgQ2VcbP1yGkJLvEI+UYSEGmNPmhl7bEiVkklxKTpTuzAJEas5Pee6gt49BDfy7Dp1Z1R9AdohWKZpR3CNAgsvLtWpmoskQBgYjBelZS8XoDuEDBGcZQUIj6DUpSmnZZ551qp1t1erpZ4RrzsMnAfpRn51V924G4S8wAFeUUsVVw1Fe6o7bgHeftxpF9XMc+QFj066TM.E9XEcdlLkWpn8dOjrRjMRR+FSlr5lfL4MS6f11Woqm.xn7LEv3NjWSgtVWpLuQ1IUWJTdJ6OeTdz7TIRar40jH8wdF51ScMzolvcDeBIvLHx0xk5+USjy2T16xSlFWvxq4s664b4qQ6a2cMPWC8gN.XVgjubj7qzeQIKISt4PmuHWvjiyR8nvmC0nxwdh2GDC0j+TIb27P1qPf.Gv5TcHUkXacx.IU+LTNLv4OQkVcBKmeAC2QJ7moFanYwYaASwXGnYgAUmNEOU24NBE59ZGFZY8Uqw.tuRAXblAOvJXdnwrckNWUkSkPxd2Ux2ktM1Inm0u2RrgGKpmKwCtaQIdZmXOUrAcuJpyOoSOhIGVncvPDkEVHpVqpIb+2M4EuMuS8tpdKAQQ9PuEKhNIJxQ2HJv2NLXpgeTz+iQuGOy8QvFs88gUiTGOu8hSUALkLkvfBmDG+iZfPwwgO9zCOFGOkW+rTTFGunB74skEKAO019WPZwhwj
--end-wire-patch--
patch.PNG

Thanks in advice
cosmowe
Image Do you like outlines? Easy Outliner on Juicebar

User avatar
cosmowe
Knows Resolume better than the devs
Posts: 1597
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

Re: wire question - Scaling of TextureIN with different Comp sizes

Post by cosmowe »

I may have figured it out myself.... I need to place a -resize- node (stretch) after the TextureIN which resizes the comp back to 1920x1080..And from that point...I can treat it like I want it...no matter what comp size is used.
Unbenannt.PNG
Unbenannt.PNG (7.9 KiB) Viewed 1279 times
I hope that's it :) looks promising...
Image Do you like outlines? Easy Outliner on Juicebar

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

Re: wire question - Scaling of TextureIN with different Comp sizes

Post by Zoltán »

Texture In will already be at the patch size when it's loaded in a host like Arena.
So I'd say it could be probably better to resize the PNG you have embedded in the patch to patch size.
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

User avatar
cosmowe
Knows Resolume better than the devs
Posts: 1597
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

Re: wire question - Scaling of TextureIN with different Comp sizes

Post by cosmowe »

Zoltán wrote: Tue Aug 09, 2022 11:02 Texture In will already be at the patch size when it's loaded in a host like Arena.
So you say this:
Unbenannt.PNG
...should result to this:
Unbenannt2.PNG
:?
Image Do you like outlines? Easy Outliner on Juicebar

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

Re: wire question - Scaling of TextureIN with different Comp sizes

Post by Zoltán »

Wire sets the patch size to the size of the incoming texture, so they will be the same.
You can use that info to determine if that's useful for you or not ;)
Patchinfo can give that resolution and there is also a node called dimension, you can use on images or textures to get their size.

How does the patch which produces that output for you look like?

Do you want a fixed 1920x1080 output from your patch with your png and the content filled into it, or do you want your input image get a bit smaller and have the png frame it?
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

User avatar
cosmowe
Knows Resolume better than the devs
Posts: 1597
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

Re: wire question - Scaling of TextureIN with different Comp sizes

Post by cosmowe »

Hey Zoltán,
thanks for stepping in again :)
Zoltán wrote: Wed Aug 10, 2022 08:39 How does the patch which produces that output for you look like?
I just faked it in Resolume for better a better explanation...hmmm

---

Maybe my first simplified post lacked of details.... here I've made an image which hopefully explains better what I am trying to archive.
explain.png

Thanks in advice.
cosmwoe
Image Do you like outlines? Easy Outliner on Juicebar

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

Re: wire question - Scaling of TextureIN with different Comp sizes

Post by Zoltán »

This should about do it I think:
--begin-wire-patch--
1449.3oc2Xs1ahaDE8uBxepUhwZd+Hey1XZWotsU6VUopl7Aiw.VqwFAC6lzU4+duyfSLI7HNcY2JsfDAlblW2yYN263OGj2TWWjaKap2Db0e+4fYqaVBegNLnYqc0VavMCCrMPKjgAKalVDby8CeDE6.ThgAk09F1CF+.Xx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4btgQ9RCkGTkDn9y1SqhCcqq0tM6yAw6PA25v+9l6eLBbtA7TY0ygk07JO0vuXoG5m47tN9duIQeqD6TjqP+J31TcZBhOlDiLXRDBrUSHX9HVLV8kxsStaU6TdzpalkUswUdS6vbZxk3IWxMO8PU6n2weuuopb5fD+nAHEWzCWGI7SkDe7mvzRE4wpedUmrjTNFNOknPZ7HH2FIAaRjhzQ5weqh9KxpqKp1bdBv+9lGJh40d2uCnp2TCaM6f28SwNlR9U6J06UEhio3bllu2AEi7UPUIwZvDLRNFEEEGgv.QwSzwwhDx2Vp57UgzeJxgzQCu375enQ+2n7tE8dY+bCG.V8kTITOJkdmweuqapuG6QPYrgbFVovZEGS6JOgHHuFiWSJAJqMJAYTbJBZJUPwpHBlsudhbIJq8vbfRr+EbCdNQKTlSjSb7CwP8EKenewgxgP84psjdwu9yKlgkvHGP1ZrLjJkJ35rRU2UbgZPCwfUhRoYzWfminJvhejDiLDRBJRqiIwoRlzD8Mx2n8Qa1OGA+ye8RbgHxtqhjkWZuibZs3dnnmC0wcWd10r9SWfavaKusvWBf4q2ypk5kGD3ZzgJifHk6c6VhVGpYZinye3L2tMMEtc6HlFoSSEHbZbDOIdDNJM8+imS6gOf1eCFi6aOksc8tH282+u.YL35F
--end-wire-patch--

Try replacing the nodes above the comment with your png.

The resize on the texture in is set to the resolution you want to scale it to, and you can use the resize modes to set the scaling.
Attachments
Képernyőfotó 2022-08-10 - 12.32.34.png
Képernyőfotó 2022-08-10 - 12.32.06.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

User avatar
cosmowe
Knows Resolume better than the devs
Posts: 1597
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

Re: wire question - Scaling of TextureIN with different Comp sizes

Post by cosmowe »

Zoltán wrote: Wed Aug 10, 2022 11:28 This should about do it I think:
Thank you very very much Zoltán for your extra effort.
I've tested your solution and it works for the texture scaling inside the frame - Great.
But when the composition resolution for example is 800x600...the frame is out of bounce ;)

Best wishes
cosmwoe
Image Do you like outlines? Easy Outliner on Juicebar

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

Re: wire question - Scaling of TextureIN with different Comp sizes

Post by Arvol »

Maybe a dumb question, but are you changing comp sizes with these fx/sources in your comp? I've noticed that if you add in a source (for example) and then change your comp size, the source won't update to the new comp size and has to be re-added in.

User avatar
cosmowe
Knows Resolume better than the devs
Posts: 1597
Joined: Fri Mar 25, 2011 10:27
Location: cologne // germany

Re: wire question - Scaling of TextureIN with different Comp sizes

Post by cosmowe »

This is not a dumb question at all ;). This is something you definitely have to figure out.
Since I figured that out I always reinsert a source or effect after I change the comp size.

Thanks for asking
Image Do you like outlines? Easy Outliner on Juicebar

Post Reply