Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Made a simple Plugin to Undistort the Editor Camera so that it actually look correct, encounter this problem.

bracer
Registered User
Quote
2017-05-04 02:42:44

var Human_Eye_Fov = 39.598;

function Undistort_Viewport()
{
var ActiveCamera = ccbGetActiveCamera();
ccbSetSceneNodeProperty(ActiveCamera, "FieldOfView_Degrees", Human_Eye_Fov);

editorUpdateAllWindows();
}

editorRegisterMenuEntry("Undistort_Viewport()", "Undistort Viewport");

Error report:
ReferenceError: ccbGetActiveCamera is not defined

If this works, the viewport will look really really good.
As in correct to the Human Eye.


niko
Moderator
Quote
2017-05-05 08:13:22

Ah, yes, you are right. That function doesn't exist in the editor, so that's not possible. Sorry.


bracer
Registered User
Quote
2017-05-06 04:08:04

"Ah, yes, you are right."
Does that mean you will update the viewport FOV on your next update ? Plus the ability to rotate around selected object, that could make Coppercube REALLY AWESOME !


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internat?onal" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact