≡
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: "Internation?l"
(you are not logged in)
Text:
[quote][b]smithandweb[/b] wrote: Hi there, First time using CopperCube and CL, so far enjoying every minute of it! I'm building an app to showcase boat models in a variety of ways. I may be going about this the wrong way, just looking for a little direction. My scene has 5 cameras: Top, Left, Right, Front, and Perspective. Pretty much the same as viewports. I'm using <li> elements with data attributes to pass camera names. ex: [code]<li data-view="Top">Top</li>[/code] Any hints on how I could change cameras in the scene when the <li> element is clicked? Using jQuery to get data attribute: [code]$(document).ready(function(){ //Get the view from the data-view attribute after click $("li.view").click(function(){ var $view = $(this).attr("data-view"); //trickery with CL3D.Scene }); [/code] Disclaimer: I'm a web nerd, not an engine nerd. Thanks![/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