Scaling Texture post render error?

d3lray's picture

Hi Hi,

I was just trying something very simple, but seem to be getting some weird results. Wondering if it is a bug, or user error...

I am attempting to scale a texture after it is rendered, using the Image Transform patch, then compositing to another rendered texture. What ends up happening on my machine is that one scales and then the other. Weird. I've attached a simplified version of the patch to illustrate. Any clues are really welcome.

best matthew

PreviewAttachmentSize
simple_tex_scale.qtz4.06 KB

cwright's picture
relativity

What's happening is that the "rings" image is getting scale (not the clouds one).

However, it appears as though the clouds scale when the rings one is scaled down, because it becomes smaller than the clouds image, and the multiply patch uses the size of the top input for the output size.

Here's a slight modification to help illustrate what's happening -- it changes the sprite to be the size of the scaled output (cut in half, so it fits on the screen).

As for a fix -- you'll have to size both images to be the same size (use Image Resize, it's faster than Texturing Properties), and then combine them in the multiply patch.

PreviewAttachmentSize
simple_tex_scale.qtz4.65 KB