NatronGitHub / Natron

Open-source video compositing software. Node-graph based. Similar in functionalities to Adobe After Effects and Nuke by The Foundry.
http://NatronGitHub.github.io
GNU General Public License v2.0
4.54k stars 332 forks source link

(Bug): Transform node does not take image center into account #900

Open monocrmd opened 1 year ago

monocrmd commented 1 year ago

Make sure to follow our issue report guidelines

Natron version

2.5

Operating system

Windows 11

System specs

RAM: 128gb Intel 13700 Zotac 4090

Did you install Natron using the official installer?

Custom installation path

No response

What were you trying to do?

I tried to take an image from a read node and center it to the image via a transform node. In my case, HD Format 1920px, so I put in 960px in x.

What did you expect to happen? What happened instead?

The transform node puts the image off center by the half value of the images width. If I reset the center on the transform node and minus that value from the translate value, the image appears to be at the right position.

I think the transform node does not take the center of the image into account and uses the x0y0 origin of the image instead.

Step-by-step reproduction instructions

  1. load image via read node
  2. add a transform to half the size of your canvas size
  3. the image is off
  4. press reset center if your transform is not at the middle already
  5. minus that value with the translate x value
  6. the image is at the right location image

Additional details

No response