PDA

View Full Version : Pixel Numeric Transformations in Fusion ??


Claus Friese
01-05-2005, 01:18 PM
I was just confronted a Fusion problem by a co-worker.

He wanted to transform a layer by using the transform tool in fusion, in general this is no problem but in this case he wanted to be sure that no pixelsubsampling took place by transforming it a full number of pixels.

How does one do that? a transform tool works from the center out (0,5 x 0,5) and then interpolates accross the image resolution from 0 to a full 1.

Dont I have the option of transforming something five full pixels to the left, or do I have to do the math and come up with a number such as 0,502141563, or what ever it comes to?

Thanks for any help!
Regards
Claus
Denmark

Azod
01-05-2005, 05:42 PM
Hello Clause,

I passed your question through tech and here is their response.

________________

By default Fusion is a resolution independent compositor, and all positional references are calculated between 0.0 and 1.0. This allows you to work on smaller proxy size footage for example when building your composite, and later swap in full film size footage to the same flow and produce the exact same results.
However there have been similar requests to yours in the past by artists who needed to reposition something by exact pixel amounts, and as a result this functionality was 'unofficially' added to DF 4. This option can be activated under the latest version of DF 4 by adding the following environment variable to your system.

Variable Name: DF_XF_REFSIZE

Variable Value: TRUE

With this variable added, restart Fusion and add a Transform tool (XF) to your flow. If the variable was added correctly you should see a 'Reference Size' option at the bottom of the Transform tools controls. Expand this option and you should see a Width and Height slider set by default to 1 and 1. You will need to make sure that these sliders match the size of the footage from the preceeding tool. (So if your flow is working in NTSC for example, this should be set to 720 and 486.) Once this is set up you should see the values in the 'X&Y Center' and 'X&Y Axis' appear as full pixel values. As you drag the Transform tool center crosshair around you will see these values change in pixel amounts as you need.

(Also remember that you can use any text entry window as a calculator. So to move the X value by 10 pixels just type in something like 250 + 10 and hit enter and the value will update accordingly.)

Cheers,

Adam

Azod
01-05-2005, 06:42 PM
Sorry, forgot to add the bit about adding environment variables.

How to Add an Environment Variable:
To add an Environment Variable, go to the Start>Settings>Control Panel, and then to System and open the Advanced Tab. Then click on the button labelled Environment Variables. In the window that opens, click on the New button under the 'System Variables' section and configure the new variable with the values indicated above.

Claus Friese
01-05-2005, 07:16 PM
Thanks alot for your answer Azod.

Regards.
Claus

comanche
01-05-2005, 07:19 PM
Cheers Adam! This is a great hidden feature!

BTW: there's a "Use Frame Format Settings" option, so that you don't have to adjust the sliders manually.

Regards,
Andreas

SalaTar
01-08-2005, 03:41 AM
Adam,
How about a listing of all these easter eggs?

EricD
01-09-2005, 11:43 PM
Here's a thread from Pigsfly...


Hi there,
Here is an incomplete list of (unsupported) DF_* env variables for DF.

ENV variables supported by DF:

DF_DV - set to true for DV preview using a Firewire Device. Also activates upport for DirectShow .avi files.

EYEON_LICENSE_FILE - set to @SERVERNAME; avctivate floating license support if a FlexLM server is installed with the proper license files on SERVERNAME.

DF_FLIPBOOK - set to OpenGL to turn on OpenGL flipbook support

DF_TEXTURE - set to true to use texturing for OpenGL flipbooks, rather than pixel blits.

DF_PREFS_FILE - specify a path to the DF prefs file to use (Defaults to "DFusion:DFusion.prf")

DF_WATCHBINS - true/false to watch for changes to bin files and auto-refresh (Defaults to true)

DF_AUTOHIDECONTROLS - set to true to show/hide controls when the mouse enters/leaves a view (Defaults to false)

DF_FBSTRETCH - set to false to disable hardware scaling, Windows software scaling will be used instead.

Thanks go to Daniel, Peter and SalaTar for helpiing me complete this.

If anyone knows any more, I'll gladly add them.

Cheers,
Mike

This post has been edited by Michael Wolf on Jul 9 2004, 04:53 AM

Of course you knew that already SalaTar ;)

bosti
01-23-2005, 07:58 PM
Hi Claus,

I think the easiest way to do this is by using a CROP tool instead of a XF, and use the offset sliders. Changing those evironmental settings will affect all your current flows.

Hope this helps,
Greetings from the pigsly forum :)

- Floor

CGTalk Moderation
01-23-2006, 08:00 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.