Author Topic: Support of file Lens Distortion parameters  (Read 6076 times)

2013-11-01, 10:08:45

vicnaum

  • Active Users
  • **
  • Posts: 69
    • View Profile
Please add support for file Lens Distortions.



THE PURPOSE:
I have footage shot on 16mm (with lens distortions). Rendering background in Corona, but it doesn't match perfectly, cause no lens distortions.
Applying the distortions in post - matches great, but the pixels are smoothed and blurred by post. Need to render with lens distortions already there.

The lens distortions can be obtained for example by this utility:
http://help.chaosgroup.com/vray/help/300R1/tools_lens.htm

.VRLens format is plain simple:
Quote
version 0.2
# Calibration photo #0 begin
calibrationPhotoFile=C:\Users\vicnaum\Documents\lens-01d.jpg
focalLength=16.000
k0=1.0230671
k1=-0.0544355
k2=0.0103712
squeeze=0.9922962
lambda_x=-0.0099095
lambda_y=0.0023432
flags=1
# Calibration photo #0 end

(Couldn't find the second .lens file format specs.)

VrayPhysicalCam can load those .vrlens files and render using them (but only in vray, corona renders are still straight).
Btw, Corona supports Spherical vrayPhysicalCamera disctortions, but not File.

Also the parameters from Nuke lens distortion can be used (they look a bit different, but have Anamorphic mode also):
« Last Edit: 2013-11-01, 10:21:46 by vicnaum »

2016-04-28, 16:43:19
Reply #1

sk-films

  • Active Users
  • **
  • Posts: 19
    • View Profile
Agree!!! Need to have one!
Small add-on:

Usually for compositing the camera is matched to real photo - therefore there's an distortion value given. Would be nice if Corona would also accept different types of input (From Simple to Advance).

2017-01-06, 13:38:12
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13736
  • Marcin
    • View Profile
Bumping this by public demand. ;)

Either lens distortion files, or generally some sort of lens distortion, such as fisheye.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-02-27, 21:12:45
Reply #3

Ondra

  • Administrator
  • Active Users
  • *****
  • Posts: 9048
  • Turning coffee to features since 2009
    • View Profile
added
Rendering is magic.How to get minidumps for crashed/frozen 3ds Max | Sorry for short replies, brief responses = more time to develop Corona ;)