Jump to content


Lens Distortion From Syntheyes


  • Please log in to reply
34 replies to this topic

#1 Dietmar

Dietmar

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 158 posts

Posted 28 July 2012 - 12:45 PM

Has anyone worked out how to use the distortion, calculated by Syntheyes, with the Fusion Lens Distortion?

#2 PeKi7i

PeKi7i

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 119 posts

Posted 28 July 2012 - 12:51 PM

there is macro on vfxpedia

#3 PeKi7i

PeKi7i

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 119 posts

Posted 28 July 2012 - 12:52 PM

or script for lensdistortion tool

#4 Dietmar

Dietmar

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 158 posts

Posted 28 July 2012 - 08:16 PM

Thanks.
But I can't find a way to get an UV Distortion map out of Syntheye.

#5 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1730 posts

Posted 29 July 2012 - 01:22 AM

I've written a script that converts the Syntheyes distortion coefficient to a 3D Equalizer value (maybe that's what PeKi7i meant): http://www.vfxpedia....r_Syntheyes.zip
I hope Fusion gains Syntheyes support in the next version. After all, PFTrack has already been added. But maybe an email to requests@ eyeonline won't hurt :-)

I went the UV map route once as well. You need to create a UV map at the right size in Fusion and then replace your image sequence in Syntheyes with it. Export it as float and bring it back into Fusion... but it's a convoluted workflow, it needs the right settings for the Displace tool (which might break in proxy mode), needs special care if an undistorted image has a different size than the original plate et cetera...

#6 Dietmar

Dietmar

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 158 posts

Posted 29 July 2012 - 06:00 AM

Thanks, I will contact support for syntheyes support too!!

#7 fusionWannabe

fusionWannabe

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 488 posts

Posted 29 July 2012 - 10:30 AM

Tilt has a post with a graphic showing more info about his script here:

http://www.pigsfly.c...112

Just sent my request to Eyeon about SynthEyes

BTW - DigitalTutors has a SynthEyes/Fusion course that I've just watched which is pretty useful for getting up to speed on SynthEyes/Fusion integration.

http://www.digitaltu...heyes-tutorials

He didn't use Fusion's fog for the shot, but rather a 2D EXR sequence, which seemed to give him a lot of control, but ... I'd be curious about using the fog tool (as he had a depth pass).

Some of the course objects are in Modo format, but the author was nice enough to convert them to Lightwave for me, and I expect he'd do the same for OBJ/3ds/etc.

#8 Dietmar

Dietmar

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 158 posts

Posted 30 July 2012 - 05:13 AM

Thanks, fore the tips!
I normally had been using the syntheye workflow. But saving the undistorted image sequences and distort them after compositing, is something I would like to avoid!
It is better to all the distortion stuff in one compositing without an extra "generation" of the material.

#9 Alkesh

Alkesh

    Power Pig

  • Adv Members
  • PipPipPipPip
  • 45 posts

Posted 30 December 2012 - 07:59 PM

Hi... one very basic question (sorry!)  How do I use SynthEyes lens distortion script in Fusion?  I copied the script file in Utility folder under script.  I can see it when I go to Fusion / File / Script.  Now what?  Thanks.  Alkesh.

#10 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1730 posts

Posted 31 December 2012 - 01:22 AM

It's a tool script so it goes into the Scripts\Tools folder. Then you need to right-click on a LensDistort node and select it from the scripts menu.

#11 Alkesh

Alkesh

    Power Pig

  • Adv Members
  • PipPipPipPip
  • 45 posts

Posted 31 December 2012 - 06:59 AM

Thanks, Tilt.  So I moved the file to Tool folder.  Now I see it when I right click LensDistortion node under script.  But nothing happens when I select it.  Could it be the version of py in which the file was written vs the one I have in the machine as issue? I have Fusion 6.4 latest built (1111).

#12 Alkesh

Alkesh

    Power Pig

  • Adv Members
  • PipPipPipPip
  • 45 posts

Posted 31 December 2012 - 07:03 AM

ps: I am running Py 2.7.



#13 Alkesh

Alkesh

    Power Pig

  • Adv Members
  • PipPipPipPip
  • 45 posts

Posted 31 December 2012 - 07:22 AM

Also, I just noticed the following error in Console when I right click LensDistortion and try to select "LensDistort for Syntheyes.py" from script.  Not sure what it means:

Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:/Users/Public/Documents/eyeon/Fusion/Scripts/Tool/LensDistort for Syntheyes.py", line 61
print e
^

#14 Tilt

Tilt

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 1730 posts

Posted 31 December 2012 - 09:39 AM

It doesn't even pop up a dialog box? hm....

I'm running 2.7.1 myself.  I have no idea what that error might indicate. There *might* be a warning about "import math" when you first start the script but that doesn't abort the script and it won't show up again when you run it again.

You could try to replace "print e" (almost the last line in the script) with the word "pass" and then see what happens.

#15 bfloch

bfloch

    Flying Pig

  • Adv Members
  • PipPipPipPipPip
  • 903 posts

Posted 31 December 2012 - 09:55 AM

Can you check if you have also Python 3.1 installed and if your Preference->Script->Python is set to 2.7.

If something like print e is an error it looks as if python 3.x is used as the print statement was replaced with a print function (which needs brackets).

Cheers,




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users