Author Topic: Scripted Plugin limitations?  (Read 3004 times)

2017-06-29, 13:30:33

Phasma

  • Active Users
  • **
  • Posts: 112
    • View Profile
Hello.

I am currently writing a custom camera based on the Physical camera.

If you render out of a Physical camera and adjust the camera distortion, it will work. however, the camera distortion parameter (distortion_cubic_amount) will not be taken into consideration if I use my extended camera based on the same camera class. I see de difference of the view cone in the viewport though, so the value gets through. Also everything works as expected if i change the focal length...

Code: [Select]
plugin camera lumière_camera
name:"lumière cam"
classID:#(685325,452281)
extends:Physical replaceUI:true version:1
(

.....
)

2017-07-11, 10:31:24
Reply #1

Phasma

  • Active Users
  • **
  • Posts: 112
    • View Profile
hmm. no idea? or should I describe it in other words or even provide a simple script?

2017-07-11, 11:25:15
Reply #2

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13741
  • Marcin
    • View Profile
Hi, so the issue is that changing the distortion parameter does not work in your script, or in Corona in general?
Does the distortion parameter in your script work fine with other renderers than Corona?
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-07-11, 16:21:56
Reply #3

Phasma

  • Active Users
  • **
  • Posts: 112
    • View Profile
Hi. thanks for the reply. changing the distortion parameter in a normal physical camera does work with corona. extending the phys cam as a scripted plugin does not work although it is still the same camera under the hood.

And Yes, it worked with other renderers :-(

2017-07-13, 16:48:04
Reply #4

maru

  • Corona Team
  • Active Users
  • ****
  • Posts: 13741
  • Marcin
    • View Profile
I lack the knowledge to help here. You can try contacting Deadclown.
Marcin Miodek | chaos-corona.com
3D Support Team Lead - Corona | contact us

2017-07-14, 15:27:38
Reply #5

Phasma

  • Active Users
  • **
  • Posts: 112
    • View Profile
thanks for establishing the connection, I will contact him