User posts ChrisM
09 May 2020 15:13
09 May 2020 14:37
09 May 2020 14:37
[ON MODERATION]
09 May 2020 13:28
[ON MODERATION]
09 May 2020 13:27
[ON MODERATION]
09 May 2020 13:27
[ON MODERATION]
08 May 2020 21:40
[ON MODERATION]
Hello, there :)
Proper explaination Thanks for everything i read.
But I have the problem it says "m_scenes is not defined" … Is there any file missing or what does it mean ?
This is the code i copied from the first page of this thread
m_app.enable_camera_controls();
// place your code here
var move_camera_element = document.getElementById("layer_1_move");
var cam_obj = m_scenes.get_active_camera();
var cam_move_cb = function() {
var pivot_point = new Float32Array(3);
var pivot_pos_obj = m_scenes.get_object_by_name("campos1");
m_trans.get_translation(pivot_pos_obj, pivot_point);
m_cam.target_setup(cam_obj, {pivot:pivot_point});
};
move_camera_element.addEventListener("click", function(e) {
var final_pos_obj = m_scenes.get_object_by_name("welcomeCollective");
m_cam.static_setup(cam_obj);
m_cam_anim.move_camera_to_point(cam_obj, final_pos_obj, 1.0, 0.5, cam_move_cb);
}, false);
}
Thanks in advance <3
Proper explaination Thanks for everything i read.
But I have the problem it says "m_scenes is not defined" … Is there any file missing or what does it mean ?
This is the code i copied from the first page of this thread
m_app.enable_camera_controls();
// place your code here
var move_camera_element = document.getElementById("layer_1_move");
var cam_obj = m_scenes.get_active_camera();
var cam_move_cb = function() {
var pivot_point = new Float32Array(3);
var pivot_pos_obj = m_scenes.get_object_by_name("campos1");
m_trans.get_translation(pivot_pos_obj, pivot_point);
m_cam.target_setup(cam_obj, {pivot:pivot_point});
};
move_camera_element.addEventListener("click", function(e) {
var final_pos_obj = m_scenes.get_object_by_name("welcomeCollective");
m_cam.static_setup(cam_obj);
m_cam_anim.move_camera_to_point(cam_obj, final_pos_obj, 1.0, 0.5, cam_move_cb);
}, false);
}
Thanks in advance <3