≡
Products
▼
Support
▼
Company
▼
Forum
Ambiera Forum
Discussions, Help and Support.
Create a new account
,
Search
, or Login:
Create reply in
Cameras and Viewports
Posted by:
(you are not logged in)
Enter the missing letter in: "I?ternational"
(you are not logged in)
Text:
[quote][b][/b] wrote: I don't know much about jquery (not a web nerd *g*), but what you probably simply want is switching the active camera to another camera in your scene, correct? It should work fairly easily: You usually get the object of your engine using something like this: [code]var engine = new CL3D.CopperLicht('yourCanvasID'); [/code] or if you started using the editor, this: [code]var engine = startCopperLichtFromFile('yourCanvasID', 'someFile.ccbjs');[/code] Once you have this and you are sure your scene is loaded and running (which I guess you are in the click handler of your list), you can switch to another camera using this: [code]var scene = engine.getScene(); var cam = scene.getSceneNodeFromName('theNameOfYourCamera'); if (cam != null) scene.setActiveCamera(cam); [/code] That's it. :)[/quote]
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