Forum

User posts martial
31 March 2016 12:44
Hi

I'm working on a projet, and after using different JSON, i want to use shape keys to transform my object.
I read the doc, and it works well, but it forces shading Smooth each time

Any idea?
I did a simple cube with a shape, and as soon as i click preview the shading is smooth.
Any idea?
18 March 2016 13:49
i succeed, it was so simple… Thanks Evgeny Rodygin

I save the original position :
	
var camera = m_scenes.get_active_camera();
var trans = m_cam.get_translation(camera);
var pivot = m_cam.target_get_pivot(camera);


and when needed

setTranslation = m_cam.target_set_trans_pivot(camera,trans,pivot);

18 March 2016 13:23
Yes it's a target camera.
I'm 100% lost.
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???


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
Hi

Thanks for reply.
yeah i use the default camera, i have to export and test to be sure of the camera position each time.

I deal with it.
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…
07 March 2016 12:50
Hi

Did you use the "py" file to patch the 29 february?
If yes, restore the original one.
02 March 2016 11:11
work like a charm thanks
02 March 2016 02:29
problem still here :(
01 March 2016 19:09
ouah, didn't notice them, until you show me.
I correct this and check after