Bug in Leap Motion Project
06 September 2017 02:26
I used the "Make Project" button to copy the Leap Motion code snippet. I get this error when trying to run it.
Error occurs on dev and build version.
The Code Snippet version works fine.
Error occurs on dev and build version.
The Code Snippet version works fine.
06 September 2017 04:13
Solved. leap-0.6.4.min.js is not referenced in the HTML file of the new project.
The Code Snippets verion has this:
So I copied leap-0.6.4.min.js to my project directory and added a line into my new project HTML file:
Works now.
The Code Snippets verion has this:
<script type="text/javascript" src="scripts/libs/leap-0.6.4.min.js"></script>
So I copied leap-0.6.4.min.js to my project directory and added a line into my new project HTML file:
<script type="text/javascript" src="leap-0.6.4.min.js"></script>
Works now.
06 September 2017 04:21
Might be a missing material:
But the robot hand looks good. No console errors and the hand texture is in the asset directory.
But the robot hand looks good. No console errors and the hand texture is in the asset directory.
B4W LOG: INIT ENGINE 17.09 DEBUG (05.09.2017 18:21:05)
print.js:40 B4W LOG: USER AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36
print.js:40 B4W LOG: INIT WEBGL 2
print.js:40 B4W LOG: GET EXTENSION WEBGL_debug_renderer_info
print.js:40 B4W LOG: RENDERER INFO: Google Inc., ANGLE (NVIDIA GeForce GTX 980 Direct3D11 vs_5_0 ps_5_0)
print.js:106 B4W WARN: Windows, Chrome and WebGL 2 detected, applying multisample hack, disabling MSAA.
exports.warn @ print.js:106
print.js:40 B4W LOG: GET EXTENSION (WebGL 2) ANGLE_instanced_arrays
print.js:40 B4W LOG: GET EXTENSION (WebGL 2) OES_vertex_array_object
print.js:40 B4W LOG: GET EXTENSION (WebGL 2) WEBGL_depth_texture
print.js:40 B4W LOG: GET EXTENSION WEBGL_compressed_texture_s3tc
print.js:40 B4W LOG: GET EXTENSION EXT_texture_filter_anisotropic
print.js:40 B4W LOG: GET EXTENSION (WebGL 2) EXT_shader_texture_lod
print.js:40 B4W LOG: SET PRECISION: highp
print.js:40 B4W LOG: LOAD METADATA http://localhost:6687/src/../projects/leap_motion/assets//leap.json?v=05092017182105
print.js:127 B4W EXPORT WARNING: Texture "cubemap_sharp" has no image. See more details in https://www.blend4web.com/doc/en/addon.html#other-messages
exports.export_warn @ print.js:127
print.js:127 B4W EXPORT WARNING: Texture "cubemap_rought" has no image. See more details in https://www.blend4web.com/doc/en/addon.html#other-messages
exports.export_warn @ print.js:127
print.js:40 B4W LOG: LOAD BINARY http://localhost:6687/src/../projects/leap_motion/assets//leap.bin?v=05092017182105
print.js:106 B4W WARN: material "baby_cubes" is not assigned to any face (object "cube_2.004").
exports.warn @ print.js:106
print.js:106 B4W WARN: material "bautton" is not assigned to any face (object "green_button").
exports.warn @ print.js:106
print.js:106 B4W WARN: material "bautton" is not assigned to any face (object "red_button").
exports.warn @ print.js:106
print.js:40 B4W LOG: LOAD PHYSICS Using Separate Worker Thread, Max FPS: 60
print.js:40 B4W LOG: PHYSICS PATH http://localhost:6687/src/../deploy/apps/common/uranium_wasm.js?v=05092017182105
print.js:40 B4W LOG: LOAD IMAGE 1536x1024 http://localhost:6687/deploy/assets/code_snippets/vr/cubemap_rought.png?v=05092017182106
print.js:40 B4W LOG: PHYSICS READY
print.js:40 B4W LOG: LOAD IMAGE 512x256 http://localhost:6687/projects/leap_motion/assets/button.jpg?v=05092017182106
print.js:40 B4W LOG: LOAD IMAGE 1024x1024 http://localhost:6687/projects/leap_motion/assets/norm.png?v=05092017182106
print.js:40 B4W LOG: LOAD IMAGE 1024x1024 http://localhost:6687/projects/leap_motion/assets/hand_diff.png?v=05092017182106
print.js:40 B4W LOG: LOAD IMAGE 512x512 http://localhost:6687/deploy/assets/code_snippets/vr/karpet_kids.png?v=05092017182106
print.js:40 B4W LOG: LOAD IMAGE 1024x1024 http://localhost:6687/projects/leap_motion/assets/hand_norm.png?v=05092017182106
print.js:40 B4W LOG: LOAD IMAGE 1024x1024 http://localhost:6687/deploy/assets/code_snippets/vr/carpet_vr_diff.png?v=05092017182106
print.js:40 B4W LOG: LOADED ALL IMAGES
print.js:40 B4W LOG: THREAD 0: LOADED CALLBACK
print.js:40 B4W LOG: START NLA
leap-0.6.4.min.js:9 Optimized for desktop usage.
leap_motion.js:307 Object Object Float32Array(8)
06 September 2017 04:38
Looks like the node material in the blend file is incomplete. Now I am at the end of my abilities LOL, I can't complete it.
06 September 2017 10:26
Might be a missing material:Yes, it's our mistake. leap.blend - here's the correct blend file, just replace it your file in the SDK or attach the humanhead_skin material to it.
Blend4web and that kind of thing.
06 September 2017 11:39