Chaos Corona Forum

General Category => General CG Discussion => Topic started by: Phasma on 2017-06-29, 13:30:33

Title: Scripted Plugin limitations?
Post by: Phasma on 2017-06-29, 13:30:33
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
(

.....
)
Title: Re: Scripted Plugin limitations?
Post by: Phasma on 2017-07-11, 10:31:24
hmm. no idea? or should I describe it in other words or even provide a simple script?
Title: Re: Scripted Plugin limitations?
Post by: maru on 2017-07-11, 11:25:15
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?
Title: Re: Scripted Plugin limitations?
Post by: Phasma on 2017-07-11, 16:21:56
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 :-(
Title: Re: Scripted Plugin limitations?
Post by: maru on 2017-07-13, 16:48:04
I lack the knowledge to help here. You can try contacting Deadclown (https://forum.corona-renderer.com/index.php?action=profile;u=103).
Title: Re: Scripted Plugin limitations?
Post by: Phasma on 2017-07-14, 15:27:38
thanks for establishing the connection, I will contact him