Reorder TOP aspect ratio issue

I am instancing a movie file with a Reorder TOP and a couple Ramp TOPs. The issue is the Reorder TOP is turning the aspect ratio to a square instead of maintaining the 16:9 ratio i have set. Any fixes for this or a workaround? I’m including my network and you can also see the pillarboxed image. Thanks!

Probably one of your TOPs has a different aspect ratio. It would be easier to help if you post your actual network (the .toe file) instead of a screenshot

Pretty sure I checked the resolution on the preceding TOPs. I would attach the file but I guess I’m too new a user to this forum. The forum won’t allow me.

This happens because the pixel values in the ramp1 and ramp2 go from 0 to 1. In this instancing setup you’re ‘instancing‘ a rectangle for each pixel in fit1. You’ve probably set the geo up like this:

This means that the rectangle will use the rgb values of each pixel for its xyz value. Because both ramp TOPs range from 0 to 1, the rectangles will be spaced from x = 0 to x = 1, same for y. You need to adjust these ranges. You can do this by inserting a math TOP between the reorder and the fit. In the range page you can adjust the range for r and g. You can either scale x (r) up or y (g) down. To match the 16:9 ratio you need to make the to range of r 1920/1080. Make sure to set the pixel format of the ramps to at least 16bit rgba, 8bit is clamped to 0-1.

Here is an example file! Also I changed the camera to orthographic, and set the ortho width to the aspect ratio. This way the camera exactly matches the grid.

instanceCorrectAspect.toe (7.1 KB)

Ok you rule. Thanks so much I’ve spent like 6 hours trying to solve this stupid problem and didn’t consider that the ramp TOPs were the problem. True hero for taking the time to include the .toe file as well. :raising_hands:

1 Like