由用户创建的信息 martial
31 March 2016 12:44
18 March 2016 13:49
10 March 2016 20:01
Hi
I would like to restore the default position of the camera on click, after the user has moved it.
It's not a static or eye camera, and it has got limitations angles.
I was able to retrieve position, but don't know how to restore it, i'm lost with parallel translation…
Any way to make it simple???
I would like to restore the default position of the camera on click, after the user has moved it.
It's not a static or eye camera, and it has got limitations angles.
I was able to retrieve position, but don't know how to restore it, i'm lost with parallel translation…
Any way to make it simple???
var camera = m_scenes.get_active_camera();
var vec3_tmp = new Float32Array(3);
var pos = m_cam.get_translation(camera, vec3_tmp);
09 March 2016 10:00
07 March 2016 13:15
Hi
On my project i load blend4web in a iframe, with custom javascrit etc…
I want the main object to take 100% of the iframe, but i can't make it work.
I tried focale etc….
Then i realised i haven't the same position camera in blender and blend4web preview.
So i tried with an scene with 3 cubes and go some differences, but i my project it makes huge differences.
On a simple scene with 3cube, we can see in blender the upper face on the 2nd cube, but not in blend4web preview…
On my project i load blend4web in a iframe, with custom javascrit etc…
I want the main object to take 100% of the iframe, but i can't make it work.
I tried focale etc….
Then i realised i haven't the same position camera in blender and blend4web preview.
So i tried with an scene with 3 cubes and go some differences, but i my project it makes huge differences.
On a simple scene with 3cube, we can see in blender the upper face on the 2nd cube, but not in blend4web preview…
07 March 2016 12:50
01 March 2016 19:09