Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Programming and Scripting
Camera FOV changes in real time

outlawsoftware
Registered User
Quote
2020-12-18 02:34:47

Hi, is it possible to change the camera’s FOV value when called on, something like FOV adjustment buttons (to set it at 70, 90, 110, etc.) for a game in CopperCube? Any help is appreciated. :)


count2rfeit
Registered User
Quote
2020-12-18 04:27:23

yes, you can use

var s = ccbGetSceneNodeFromName("Camera1");
var fov = ccbGetSceneNodeProperty(s,"FieldOfView_Degrees");
ccbSetSceneNodeProperty(s, "FieldOfView_Degrees", fov + 0.3);

set -- fov + 0.3 -- to be -- fov + (any value you want) --


outlawsoftware
Registered User
Quote
2020-12-20 16:47:51

Thank you


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Internatio?al" (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