Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Help with CopperCube
Camera problems

zcfwei
Registered User
Quote
2021-01-19 08:19:59

1. How to use the code to move the camera's position point and target point?
2. How to change the focal length of the camera, why the FOV setting of the first person camera according to the following code has no effect?
var s = ccbGetSceneNodeFromName(“ Camera1”);
var fov = ccbGetSceneNodeProperty(s,“ FieldOfView_Degrees”);
ccbSetSceneNodeProperty(s,“ FieldOfView_Degrees”,fov + 0.3);
3. General FOV size how much appropriate, how to set,thanks for help?


Robo
Guest
Quote
2021-01-20 00:27:23

syntax looks wrong - don't use spaces:

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


Create reply:


Posted by: (you are not logged in)


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