wire question - Scaling of TextureIN with different Comp sizes

Post your questions here and we'll all try to help.
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 »

cosmowe wrote: Wed Aug 10, 2022 19:48 But when the composition resolution for example is 800x600...the frame is out of bounce ;)
That's then smaller than the output of 1920x1080 you wanted, right?
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 »

Good morning Zoltán :)
Zoltán wrote: Thu Aug 11, 2022 08:14 That's then smaller than the output of 1920x1080 you wanted, right?
I don't defined an output resolution....do you mean the big red frame at the bottom of my explanation image? There I just defined the size of the png itself.
Unbenannt.PNG


Using also smaller resolutions and fit the frame including scaled contend was part of my "I don't know how" :mrgreen:
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 »

Ok, so let's go step by step, because I lost track.
- you got a 1920x1080 png, with a 1:1 cut in it, this is let's say 900px * 900 px.
- you got random sized videos as source
- you want to play these videos behind the png, so the videos get the png as their frame,
- and the videos don't spill at the edges out of the 1920x1080
- with options to fit/fill/stretch into the 900x900 px cut

Right?

What should happen when you load the patch in a composition which is smaller than 1920x1080?
Should the patch output scale down to the composition size, or should it get cropped?
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 there,
you described everthing correct.
Zoltán wrote: Thu Aug 11, 2022 13:01 What should happen when you load the patch in a composition which is smaller than 1920x1080?
Should the patch output scale down to the composition size, or should it get cropped?
If the patch is loaded into composition smaller than 1080p...the patch output should scale down to fit into the smaller resolution by keeping his aspect ratio. No cropping.
Image Do you like outlines? Easy Outliner on Juicebar

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

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

Post by Arvol »

Not sure if this would help?
I originally built it out using floats to change the shape size, but then changed it to a Slice input for ease of use (I find building shapes in ASS is a lot quicker and easier than using floats):

Code: Select all

--begin-wire-patch--
2132.3oc6Zs0iihqD9uRKdNF4KkM18agbQZk1aZ5yay1OPBjtQCAhHjc5YG0+2OkIj.LPRHI8dN5bYFMLIjxksq5yU8UE7cmkYooQKKhyR2573m+typ7r03GXxQNY6J1rqv44QNEY1aoF4Dmh2g5776iNJIWzqjqyBiZKGzQNtrRisEDuaX75nzs3hpVVTm3ZsHHNMJus7ptJ1qWEq6JHN1EQuDm1YEr80fMQGkS.1YOIYuk5RZ0JcbZXzasDTbz.PqkrdlZpRb4u70.zwjzPTce6IgtGkZPktLHosRYp9krqNA5Hm7nsYI6JZ5ArSkUBx5f25XtVFkVX8KUxBrS5s5ZtrB20IXu6OJnn2kqnOqEtyJxCR2lDzwiIjcsD.5bVGr8Ks0bWHKb.xxZab6dbAfd8WldlaYuGrf9VlpZk9b0Gsmac3fyHGlDuvE1KZ6PRwyf3u9c6OfWCJJxiWrqX+8hS2VDjtb+WJ9FBAezIc25En+ZjyeFjrCuA682QWS1tzvRodMJ9kWKbdTyG4703vhWQIDHX4MmGILMyUBFPnAOkTYwDeCuMG.Wk1yC.FPw6h5aYRv18qfPbJ87TFOtRR74i4DXBaBQOAlP3FlbpmdxD8LicAEkWFN3QZoFxV9Ebr+YbXTlS4Iyrb76qv+nBnzxaUt8Jp1pVKV81rH5shc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PI
--end-wire-patch--

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 »

In this one, texture comes in, it's resized to the 1:1 resolution defined.
1920x1080 png is used to make an overlay, to mix with, nodes set to specific resolution of 1920x1080.
output resizing is determined by the png resolution vs patch resolution.
Attachments
Képernyőfotó 2022-08-11 - 17.51.58.png
png borders.zip
(25.21 KiB) Downloaded 54 times
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: Thu Aug 11, 2022 16:51 In this one, texture comes in, it's resized to the 1:1 resolution defined.
1920x1080 png is used to make an overlay, to mix with, nodes set to specific resolution of 1920x1080.
output resizing is determined by the png resolution vs patch resolution.
Wow....what a monster of a patch for this kind of functionality ;)
Thank you so much Zoltán. Yes this works perfect... I surely first need to fully analyze it to understand whats going on there before I integrate it into my project....

how long did you fiddle around?
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 »

Not too long, once it's clear how it should behave it's pretty straighforward.
By default, Wire patches scale automatically with input texture changes. This specific use case requires overriding the automatic resolutions.
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