Author Topic: corona camera texture distortion  (Read 3333 times)

2019-12-09, 00:35:11

barrubba

  • Active Users
  • **
  • Posts: 8
    • View Profile
i have a 180° panoramic photo and it must be used as background in 3dsmax to place a solar farm project
The problem is that the focal is wrong becouse of huge field of view of panoramic photo.
I think to resolve using distortion texture setting in corona camera, right?
what kind of texture i have to create to reproduce that distortion, in order to render correctly project placement and perspective?
Last step will be post processing in photoshop where merge both image and rendering.
Thank you

2019-12-09, 08:27:22
Reply #1

GeorgeK

  • Corona Team
  • Active Users
  • ****
  • Posts: 838
  • George
    • View Profile
Hey, is this what you are trying to achieve? (see attached)
George Karampelas | chaos-corona.com
Chaos Corona QA Specialist | contact us

2019-12-09, 08:46:04
Reply #2

barrubba

  • Active Users
  • **
  • Posts: 8
    • View Profile
No.. The panorama is not a spherical 360 photo but a 180 degree panorama, obtained merging several photo in ptgui software.
I have either another panorama of 120 degree.. And even in that case I need to create correct (or approximated) distorsion map

2019-12-09, 10:18:39
Reply #3

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Hi,
Your bacplate has cylindrical projection, not spherical. Corona supports both, so instead of spherical, choose cylindrical.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures


2019-12-09, 11:18:24
Reply #5

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
No, barrel distortion is entirely different thing, it absolutely has nothing to do with projection. Your last example is partial spherical (most likely) projection with unleveled horizon. First you need to level horizon and then proceed with the rest.

Edit: changed some wording, to be more clear.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-12-09, 12:32:25
Reply #6

barrubba

  • Active Users
  • **
  • Posts: 8
    • View Profile
i'm not a specialist! so the final job is to fit corona camera perspective/lens distortion with the one you can see in photo i0ve attached in original post.
It's not important the process but the results..i0m ready to do everything but imho horizon leveling is not so important as the rest..

2019-12-09, 14:56:24
Reply #7

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Hm, i didn't realise that Corona camera doesn't give you an option to adjust horizontal FOV and always renders full 360. That complicates things a little bit, but i think it's still doable. You just need to cheat a little and pretend that you have full 360 backplate. I'm attaching quick attempt to match perspective. It's not perfect match because backplate's horizon is not leveled. Once you level the horizon, you should be able to achieve much better match.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-12-10, 11:59:07
Reply #8

barrubba

  • Active Users
  • **
  • Posts: 8
    • View Profile
How did you "cheat a little" ? with camera distance from target and fov?

2019-12-10, 12:08:55
Reply #9

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
I just "added" missing horizontal degrees by setting bitmap's U tiling to 1,9 After render, you will have to crop what's not needed, or just render a region.

Edit: don't forget to multiply output horizontal resolution by 1,9 otherwise aspect ratio will be wrong.
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures

2019-12-11, 14:47:12
Reply #10

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 12754
  • Marcin
    • View Profile
Another idea would be to apply this photo to some cylindrical/spherical geometry and use it as background, right?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2019-12-11, 16:09:17
Reply #11

barrubba

  • Active Users
  • **
  • Posts: 8
    • View Profile
i need to ha(ve that background yet cylindrical panoramic, even if not perfect, and to work on barrel effect of 3d rendered model, to fit with background sphericity perspective

2019-12-11, 17:31:53
Reply #12

romullus

  • Global Moderator
  • Active Users
  • ****
  • Posts: 8839
  • Let's move this topic, shall we?
    • View Profile
    • My Models
Did you manage to achieve satisfactory result?
I'm not Corona Team member. Everything i say, is my personal opinion only.
My Models | My Videos | My Pictures