Skip to main content
Inspiring
Nov 7, 2022 11:37 AM UTC
Open for Voting

Why pixel processor couldn't be relative to input ?

It's a huge source of issues . lost resolution, etc.   Can we have it  same way Fx-map node do?

 

8 replies

kirkr5689Author
Inspiring
Dec 19, 2022 11:06 AM UTC

Yeah, I am doing exactly what you suggested .  Good to know I am at right puth. Thanks again

Translate
Luca Giarrizzo
Community Manager
Community Manager
Dec 19, 2022 10:55 AM UTC

I am glad this was helpful!

 

You may also be interested in the $getsize float2 variable, which returns the size of the output image and helps you calculate the exact image proportion of a pixel:

float2(1,1) / $getsize. This lets you be precise and operate on single pixels.

Use a Get float2 node to access this variable.

 

Best regards.

 

Translate
Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe
kirkr5689Author
Inspiring
Dec 19, 2022 10:47 AM UTC

Thanks a lot Luca

Translate
kirkr5689Author
Inspiring
Dec 19, 2022 10:46 AM UTC

I am just want to make all my pixel processing be  working in actual pixels . Like shifting or scaling  exactly one pixel,   not just some 0.003   for better pixel to pixel accuracy .

So I come  to what Luca suggested  and all my nodes now have green dot to output size in pixels  and input green dot #input size.    It helps to eliminate that suddent  blur  that something happens because of missing primary input or pixel processor .

Translate
Luca Giarrizzo
Community Manager
Community Manager
Dec 19, 2022 10:27 AM UTC

Hello,

 

You may use a Get Size node to acquire an node's resolution as a float2 value, then pass it to the Pixel Processor as an input value to drive its Output Size parameter using a function.

 

 

I hope this helps!

 

Best regards.

 

Translate
Luca Giarrizzo | Quality Engineer - Substance 3D Designer | Adobe
Inspiring
Dec 19, 2022 9:57 AM UTC

Parsing of the inputs using the Sample nodes is normalized (0..1) so you usually don't need to know the resolution of the input node. What is it you need to do exactly?

Translate
kirkr5689Author
Inspiring
Nov 9, 2022 9:57 AM UTC

Could you elleborate please.  Sorry, I havn't understood.  For example I need a pixel processor to keep having same  output size in pixels  as its first input.  What should be the function graph  in  "output size"?

Translate
ShelLuser
Inspiring
Nov 8, 2022 4:03 PM UTC

Isn't that something you'd sort out within your functions?  Just grab $pos (which is a Float2 from mind) and then apply your offset before the rest of the operations.

Translate