commit fb577e7687ce6f8e261ee09c5f4b4a1396df90ea Author: Victor Giers Date: Sun Jul 16 17:58:38 2017 +0200 initial commit diff --git a/.b4w_project b/.b4w_project new file mode 100644 index 0000000..f21c8f2 --- /dev/null +++ b/.b4w_project @@ -0,0 +1,30 @@ +[info] +author = preast +icon = +name = preset_firstperson +title = preset_firstperson + +[paths] +assets_dirs = projects/preset_firstperson/assets +blend_dirs = projects/preset_firstperson/blender +blender_exec = /home/giers/bin/blender/blender +build_dir = projects/preset_firstperson/build +deploy_dir = + +[compile] +apps = +css_ignore = +engine_type = copy +ignore = +js_ignore = +optimization = simple +use_physics = True + +[deploy] +assets_path_dest = assets +assets_path_prefix = assets +ignore = +override = + +[url_params] + diff --git a/README.md b/README.md new file mode 100644 index 0000000..24a0e77 --- /dev/null +++ b/README.md @@ -0,0 +1,26 @@ +# Preset blend4web-project for First-Person Controls. +## Recommended first blend4web project for noobs to get into it. +In this blend4web project you can control the camera without drag'n'drop but with a locked pointer, walk around with WASD, run with Shift, jump with space etc. and have physics enabled. + +Not being a skilled programmer, when I set up my first blend4web-project, I was very confused about whether I should go with a .html, .json or copy project, +and what was that web player instance anyway? +Fact is; .html export serves more like a preview-function in blend4web and does not let you use the possibilities of the API, which you will most likely want to use. +You need to generate a web-player by deploying your project with the blend4web project manager so it fits your needs after you wrote some code in a .js file. + +I created a project with the blend4web project manager (selecting "copy" :-)). +I then changed the .blend-file so it has the following: +- A camera with "Eye"-movestyle with vertical rotation limits of 90° up and down +- A transparent character-controller following the camera for physics like collision on layer 2 +- A rigid body cube you can push around +I also changed the .js code so it has the following: +- "fps_controls" instead of "camera_controls" +You don't necessarily need "camera_controls" any longer for simple first person control with WASD. +This way it is easy to "not" fly, but always walk and run with shift. +- Activated "pointerlock", so the mouse movement doesn't happen via drag and drop, but more like you know it from first person games. + +I think this setup is good for getting into blend4web which is why i publish it here. +In order to use it, put it into your blend4web's "projects"-folder, start the local server (potentially via script or via blender, just open blender and change to blend4web-engine), and go to your project manager on http://localhost:6687/project/ or by clicking on "Project Manager" in Blenders "Render"-properties panel. +Here you should see the project. +To build a standalone version that has its own web player, click "check modules", "re-export scenes", "convert resources" to be save, then necessarily "build project", and after that, "deploy project". + +Have fun! diff --git a/assets/logo.min50.png b/assets/logo.min50.png new file mode 100644 index 0000000..895e82f Binary files /dev/null and b/assets/logo.min50.png differ diff --git a/assets/logo.png b/assets/logo.png new file mode 100644 index 0000000..9d93405 Binary files /dev/null and b/assets/logo.png differ diff --git a/assets/preset.bin b/assets/preset.bin new file mode 100644 index 0000000..6023674 Binary files /dev/null and b/assets/preset.bin differ diff --git a/assets/preset.json b/assets/preset.json new file mode 100644 index 0000000..1f7cd69 --- /dev/null +++ b/assets/preset.json @@ -0,0 +1 @@ +{"b4w_format_version": "6.02", "b4w_filepath_blend": "../blender/preset.blend", "actions": [], "images": [], "textures": [], "materials": [{"use_orco_tex_coord": false, "name": "Material.001", "use_nodes": false, "diffuse_color": [0.2462, 0.2462, 0.2462], "diffuse_shader": "LAMBERT", "roughness": 0.5, "diffuse_fresnel": 0.1, "diffuse_fresnel_factor": 0.5, "darkness": 1, "diffuse_toon_size": 0.5, "diffuse_toon_smooth": 0.1, "diffuse_intensity": 0, "alpha": 0, "specular_alpha": 0, "raytrace_transparency": {"fresnel": 0, "fresnel_factor": 1.25}, "raytrace_mirror": {"reflect_factor": 0, "fresnel": 0, "fresnel_factor": 1.25}, "specular_color": [1, 1, 1], "specular_intensity": 0.5, "specular_shader": "COOKTORR", "specular_hardness": 50, "specular_ior": 4, "specular_slope": 0.1, "specular_toon_size": 0.5, "specular_toon_smooth": 0.1, "emit": 0, "ambient": 1, "use_vertex_color_paint": false, "b4w_water": false, "b4w_water_shore_smoothing": true, "b4w_water_absorb_factor": 6, "b4w_water_dynamic": false, "b4w_waves_height": 1, "b4w_waves_length": 10, "b4w_generated_mesh": false, "b4w_water_num_cascads": 5, "b4w_water_subdivs": 64, "b4w_water_detailed_dist": 1000, "b4w_water_fog_color": [0.4, 0.6, 0.7], "b4w_water_fog_density": 0.06, "b4w_foam_factor": 0.5, "b4w_shallow_water_col": [0, 0.8, 0.3], "b4w_shore_water_col": [0, 0.9, 0.2], "b4w_shallow_water_col_fac": 1, "b4w_shore_water_col_fac": 0.5, "b4w_water_dst_noise_scale0": 0.05, "b4w_water_dst_noise_scale1": 0.03, "b4w_water_dst_noise_freq0": 1.3, "b4w_water_dst_noise_freq1": 1, "b4w_water_dir_min_shore_fac": 0.4, "b4w_water_dir_freq": 0.5, "b4w_water_dir_noise_scale": 0.05, "b4w_water_dir_noise_freq": 0.07, "b4w_water_dir_min_noise_fac": 0.5, "b4w_water_dst_min_fac": 0.2, "b4w_water_waves_hor_fac": 5, "b4w_water_sss_strength": 1, "b4w_water_sss_width": 0.45, "b4w_water_norm_uv_velocity": 0.05, "b4w_water_enable_caust": false, "b4w_water_caust_scale": 0.25, "b4w_water_caust_brightness": 0.5, "b4w_terrain": false, "b4w_dynamic_grass_size": "", "b4w_dynamic_grass_color": "", "b4w_do_not_render": false, "b4w_lens_flares": false, "b4w_collision": false, "b4w_use_ghost": false, "b4w_collision_id": "", "b4w_collision_margin": 0.03999999910593033, "b4w_collision_group": 128, "b4w_collision_mask": 65407, "b4w_double_sided_lighting": false, "b4w_wettable": false, "b4w_refractive": false, "b4w_refr_bump": 0.0010000000474974513, "b4w_render_above_all": false, "physics": {"friction": 0.5, "elasticity": 0}, "type": "SURFACE", "b4w_halo_sky_stars": false, "b4w_halo_stars_blend_height": 10.0, "b4w_halo_stars_min_height": 0.0, "halo": {"hardness": 50, "size": 0.5, "b4w_halo_rings_color": [1, 1, 1], "b4w_halo_lines_color": [1, 1, 1], "ring_count": 0, "line_count": 0, "star_tip_count": 0}, "use_transparency": true, "use_shadeless": true, "use_tangent_shading": false, "pass_index": 0, "offset_z": 0, "game_settings": {"alpha_blend": "CLIP", "use_backface_culling": true}, "uv_vc_key": "", "node_tree": null, "texture_slots": [], "uuid": "8b1693ed0e0b990f5ac87fc2fdfe346f", "source_uuid": "8b1693ed0e0b990f5ac87fc2fdfe346f"}, {"use_orco_tex_coord": true, "name": "Material", "use_nodes": true, "diffuse_color": [1, 1, 1], "diffuse_shader": "LAMBERT", "roughness": 0.5, "diffuse_fresnel": 0.1, "diffuse_fresnel_factor": 0.5, "darkness": 1, "diffuse_toon_size": 0.5, "diffuse_toon_smooth": 0.1, "diffuse_intensity": 1, "alpha": 1, "specular_alpha": 1, "raytrace_transparency": {"fresnel": 0, "fresnel_factor": 1.25}, "raytrace_mirror": {"reflect_factor": 0, "fresnel": 0, "fresnel_factor": 1.25}, "specular_color": [1, 1, 1], "specular_intensity": 0.5, "specular_shader": "COOKTORR", "specular_hardness": 50, "specular_ior": 4, "specular_slope": 0.1, "specular_toon_size": 0.5, "specular_toon_smooth": 0.1, "emit": 0, "ambient": 1, "use_vertex_color_paint": false, "b4w_water": false, "b4w_water_shore_smoothing": true, "b4w_water_absorb_factor": 6, "b4w_water_dynamic": false, "b4w_waves_height": 1, "b4w_waves_length": 10, "b4w_generated_mesh": false, "b4w_water_num_cascads": 5, "b4w_water_subdivs": 64, "b4w_water_detailed_dist": 1000, "b4w_water_fog_color": [0.4, 0.6, 0.7], "b4w_water_fog_density": 0.06, "b4w_foam_factor": 0.5, "b4w_shallow_water_col": [0, 0.8, 0.3], "b4w_shore_water_col": [0, 0.9, 0.2], "b4w_shallow_water_col_fac": 1, "b4w_shore_water_col_fac": 0.5, "b4w_water_dst_noise_scale0": 0.05, "b4w_water_dst_noise_scale1": 0.03, "b4w_water_dst_noise_freq0": 1.3, "b4w_water_dst_noise_freq1": 1, "b4w_water_dir_min_shore_fac": 0.4, "b4w_water_dir_freq": 0.5, "b4w_water_dir_noise_scale": 0.05, "b4w_water_dir_noise_freq": 0.07, "b4w_water_dir_min_noise_fac": 0.5, "b4w_water_dst_min_fac": 0.2, "b4w_water_waves_hor_fac": 5, "b4w_water_sss_strength": 1, "b4w_water_sss_width": 0.45, "b4w_water_norm_uv_velocity": 0.05, "b4w_water_enable_caust": false, "b4w_water_caust_scale": 0.25, "b4w_water_caust_brightness": 0.5, "b4w_terrain": false, "b4w_dynamic_grass_size": "", "b4w_dynamic_grass_color": "", "b4w_do_not_render": false, "b4w_lens_flares": false, "b4w_collision": false, "b4w_use_ghost": false, "b4w_collision_id": "", "b4w_collision_margin": 0.03999999910593033, "b4w_collision_group": 128, "b4w_collision_mask": 65407, "b4w_double_sided_lighting": false, "b4w_wettable": false, "b4w_refractive": false, "b4w_refr_bump": 0.0010000000474974513, "b4w_render_above_all": false, "physics": {"friction": 0.5, "elasticity": 0}, "type": "SURFACE", "b4w_halo_sky_stars": false, "b4w_halo_stars_blend_height": 10.0, "b4w_halo_stars_min_height": 0.0, "halo": {"hardness": 50, "size": 0.5, "b4w_halo_rings_color": [1, 1, 1], "b4w_halo_lines_color": [1, 1, 1], "ring_count": 0, "line_count": 0, "star_tip_count": 0}, "use_transparency": true, "use_shadeless": false, "use_tangent_shading": false, "pass_index": 0, "offset_z": 1, "game_settings": {"alpha_blend": "ALPHA", "use_backface_culling": true}, "uv_vc_key": "", "node_tree": {"nodes": [{"name": "Output", "type": "OUTPUT", "inputs": [{"name": "Color", "identifier": "Color", "is_linked": false, "default_value": [1, 1, 1, 1]}, {"name": "Alpha", "identifier": "Alpha", "is_linked": true, "default_value": 1}], "outputs": []}, {"name": "Group", "type": "GROUP", "node_tree_name": "B4W_SMOOTHSTEP", "node_group": {"uuid": "1ab8753a40a64036ae9d791a3c13475b"}, "inputs": [{"name": "Value", "identifier": "Input_1", "is_linked": true, "default_value": 0.5}, {"name": "Edge0", "identifier": "Input_5", "is_linked": false, "default_value": 1}, {"name": "Edge1", "identifier": "Input_7", "is_linked": false, "default_value": 0.3}], "outputs": [{"name": "Value", "identifier": "Output_3", "is_linked": true, "default_value": 0}]}, {"name": "Geometry", "type": "GEOMETRY", "uv_layer": "", "color_layer": "", "inputs": [], "outputs": [{"name": "Global", "identifier": "Global", "is_linked": false, "default_value": [0, 0, 0]}, {"name": "Local", "identifier": "Local", "is_linked": false, "default_value": [0, 0, 0]}, {"name": "View", "identifier": "View", "is_linked": false, "default_value": [0, 0, 0]}, {"name": "Orco", "identifier": "Orco", "is_linked": true, "default_value": [0, 0, 0]}, {"name": "UV", "identifier": "UV", "is_linked": false, "default_value": [0, 0, 0]}, {"name": "Normal", "identifier": "Normal", "is_linked": false, "default_value": [0, 0, 0]}, {"name": "Vertex Color", "identifier": "Vertex Color", "is_linked": false, "default_value": [0, 0, 0, 0]}, {"name": "Vertex Alpha", "identifier": "Vertex Alpha", "is_linked": false, "default_value": 0}, {"name": "Front/Back", "identifier": "Front/Back", "is_linked": false, "default_value": 0}]}, {"name": "Vector Math", "type": "VECT_MATH", "operation": "NORMALIZE", "inputs": [{"name": "Vector", "identifier": "Vector", "is_linked": true, "default_value": [0.5, 0.5, 0.5]}, {"name": "Vector", "identifier": "Vector_001", "is_linked": false, "default_value": [0, 0, 0]}], "outputs": [{"name": "Vector", "identifier": "Vector", "is_linked": false, "default_value": [0, 0, 0]}, {"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}], "links": [{"from_node": {"name": "Geometry"}, "to_node": {"name": "Vector Math"}, "from_socket": {"identifier": "Orco"}, "to_socket": {"identifier": "Vector"}}, {"from_node": {"name": "Vector Math"}, "to_node": {"name": "Group"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Input_1"}}, {"from_node": {"name": "Group"}, "to_node": {"name": "Output"}, "from_socket": {"identifier": "Output_3"}, "to_socket": {"identifier": "Alpha"}}], "animation_data": null}, "texture_slots": [], "uuid": "c56f6bf1df47ca09e5109bcead027333", "source_uuid": "c56f6bf1df47ca09e5109bcead027333"}], "meshes": [{"name": "Cube_MODIFIERS_APPLIED", "uuid": "6dd5dd1c8417f6587a09f0835710a702", "materials": [], "b4w_vertex_anim": [], "vertex_groups": [], "uv_textures": [], "active_vcol_name": null, "submeshes": [{"boundings": {"bb": {"max_x": 0.50242, "max_y": 0.50242, "max_z": 0.50242, "min_x": -0.50242, "min_y": -0.50242, "min_z": -0.50242}, "be_ax": [0.87022, 0.87022, 0.87022], "be_cen": [0, 0, 0], "rbb": {"rbb_c": [0.0, 0.0, 0.0], "rbb_s": [0.5024235844612122, 0.5024235844612122, 0.5024236440658569]}, "caxis_x": [1.0, 0.0, 0.0], "caxis_y": [0.0, 1.0, 0.0], "caxis_z": [0.0, 0.0, 1.0]}, "base_length": 24, "indices": [0, 36], "position": [0, 72], "texcoord": [0, 0], "shade_tangs": [0, 0], "normal": [0, 72], "tangent": [0, 0], "group": [0, 0], "color": [0, 0], "vertex_colors": [], "uv_layers": []}], "b4w_shape_keys": [], "b4w_boundings": {"bb": {"max_x": 0.50242, "max_y": 0.50242, "max_z": 0.50242, "min_x": -0.50242, "min_y": -0.50242, "min_z": -0.50242}, "be_ax": [0.87022, 0.87022, 0.87022], "be_cen": [0, 0, 0], "bs_rad": 0.9555, "bc_rad": 0.74823, "bs_cen": [-0.09773, -0.01688, 0.02966], "bc_cen": [-0.04246, 0.01036, 0], "bb_src": {"max_x": 0.50242, "max_y": 0.50242, "max_z": 0.50242, "min_x": -0.50242, "min_y": -0.50242, "min_z": -0.50242}, "rbb": {"rbb_c": [0.0, 0.0, 0.0], "rbb_s": [0.5024235844612122, 0.5024235844612122, 0.5024236440658569]}, "caxis_x": [1.0, 0.0, 0.0], "caxis_y": [0.0, 1.0, 0.0], "caxis_z": [0.0, 0.0, 1.0]}, "is_boundings_overridden": false}, {"name": "Plane.001", "uuid": "3c346a42511edb35928ed76d0ddef065", "materials": [], "b4w_vertex_anim": [], "vertex_groups": [], "uv_textures": [], "active_vcol_name": null, "submeshes": [{"boundings": {"bb": {"max_x": 1, "max_y": 1, "max_z": 0, "min_x": -1, "min_y": -1, "min_z": 0}, "be_ax": [1.41421, 1.41421, 0], "be_cen": [0, 0, 0], "rbb": {"rbb_c": [0.0, 0.0, 0.0], "rbb_s": [1.0, 1.0, 0.0]}, "caxis_x": [1.0, 0.0, 0.0], "caxis_y": [0.0, 1.0, 0.0], "caxis_z": [0.0, 0.0, 1.0]}, "base_length": 4, "indices": [36, 6], "position": [72, 12], "texcoord": [0, 0], "shade_tangs": [0, 0], "normal": [72, 12], "tangent": [0, 0], "group": [0, 0], "color": [0, 0], "vertex_colors": [], "uv_layers": []}], "b4w_shape_keys": [], "b4w_boundings": {"bb": {"max_x": 1, "max_y": 1, "max_z": 0, "min_x": -1, "min_y": -1, "min_z": 0}, "be_ax": [1.41421, 1.41421, 0], "be_cen": [0, 0, 0], "bs_rad": 1.48925, "bc_rad": 1.48925, "bs_cen": [0.02062, -0.08452, 0], "bc_cen": [0.02062, -0.08452, 0], "bb_src": {"max_x": 1, "max_y": 1, "max_z": 0, "min_x": -1, "min_y": -1, "min_z": 0}, "rbb": {"rbb_c": [0.0, 0.0, 0.0], "rbb_s": [1.0, 1.0, 0.0]}, "caxis_x": [1.0, 0.0, 0.0], "caxis_y": [0.0, 1.0, 0.0], "caxis_z": [0.0, 0.0, 1.0]}, "is_boundings_overridden": false}, {"name": "characterController_MODIFIERS_APPLIED", "uuid": "fe9a5b9e5e2670a84518c74041b716c2", "materials": [{"uuid": "8b1693ed0e0b990f5ac87fc2fdfe346f"}], "b4w_vertex_anim": [], "vertex_groups": [], "uv_textures": [], "active_vcol_name": null, "submeshes": [{"boundings": {"bb": {"max_x": 0.52057, "max_y": 0.52057, "max_z": 1.03261, "min_x": -0.52057, "min_y": -0.52057, "min_z": -1.03261}, "be_ax": [0.90166, 0.90166, 1.78853], "be_cen": [0, 0, 0], "rbb": {"rbb_c": [0.0, 0.0, -1.1920928955078125e-07], "rbb_s": [0.5205710530281067, 0.5205711126327515, 1.0326100587844849]}, "caxis_x": [1.0, 0.0, 0.0], "caxis_y": [0.0, 1.0, 0.0], "caxis_z": [0.0, 0.0, 1.0]}, "base_length": 24, "indices": [42, 36], "position": [84, 72], "texcoord": [0, 0], "shade_tangs": [0, 0], "normal": [84, 72], "tangent": [0, 0], "group": [0, 0], "color": [0, 0], "vertex_colors": [], "uv_layers": []}], "b4w_shape_keys": [], "b4w_boundings": {"bb": {"max_x": 0.52057, "max_y": 0.52057, "max_z": 1.03261, "min_x": -0.52057, "min_y": -0.52057, "min_z": -1.03261}, "be_ax": [0.90166, 0.90166, 1.78853], "be_cen": [0, 0, 0], "bs_rad": 1.31912, "bc_rad": 0.77526, "bs_cen": [-0.06279, -0.03823, 0.01023], "bc_cen": [-0.044, 0.01074, 0], "bb_src": {"max_x": 0.52057, "max_y": 0.52057, "max_z": 1.03261, "min_x": -0.52057, "min_y": -0.52057, "min_z": -1.03261}, "rbb": {"rbb_c": [0.0, 0.0, -1.1920928955078125e-07], "rbb_s": [0.5205710530281067, 0.5205711126327515, 1.0326100587844849]}, "caxis_x": [1.0, 0.0, 0.0], "caxis_y": [0.0, 1.0, 0.0], "caxis_z": [0.0, 0.0, 1.0]}, "is_boundings_overridden": false}, {"name": "Plane", "uuid": "5abdc29e9502f8f1b548ddf32a1aeed7", "materials": [{"uuid": "c56f6bf1df47ca09e5109bcead027333"}], "b4w_vertex_anim": [], "vertex_groups": [], "uv_textures": [], "active_vcol_name": null, "submeshes": [{"boundings": {"bb": {"max_x": 0.25, "max_y": 0.25, "max_z": 0, "min_x": -0.25, "min_y": -0.25, "min_z": 0}, "be_ax": [0.35355, 0.35355, 0], "be_cen": [0, 0, 0], "rbb": {"rbb_c": [0.0, 0.0, 0.0], "rbb_s": [0.25, 0.25, 0.0]}, "caxis_x": [1.0, 0.0, 0.0], "caxis_y": [0.0, 1.0, 0.0], "caxis_z": [0.0, 0.0, 1.0]}, "base_length": 4, "indices": [78, 6], "position": [156, 12], "texcoord": [0, 0], "shade_tangs": [0, 0], "normal": [156, 12], "tangent": [0, 0], "group": [0, 0], "color": [0, 0], "vertex_colors": [], "uv_layers": []}], "b4w_shape_keys": [], "b4w_boundings": {"bb": {"max_x": 0.25, "max_y": 0.25, "max_z": 0, "min_x": -0.25, "min_y": -0.25, "min_z": 0}, "be_ax": [0.35355, 0.35355, 0], "be_cen": [0, 0, 0], "bs_rad": 0.37231, "bc_rad": 0.37231, "bs_cen": [0.00516, -0.02113, 0], "bc_cen": [0.00516, -0.02113, 0], "bb_src": {"max_x": 0.25, "max_y": 0.25, "max_z": 0, "min_x": -0.25, "min_y": -0.25, "min_z": 0}, "rbb": {"rbb_c": [0.0, 0.0, 0.0], "rbb_s": [0.25, 0.25, 0.0]}, "caxis_x": [1.0, 0.0, 0.0], "caxis_y": [0.0, 1.0, 0.0], "caxis_z": [0.0, 0.0, 1.0]}, "is_boundings_overridden": false}], "armatures": [], "cameras": [{"name": "Camera", "uuid": "e3d8155a1adf78c1ed7b6d2eaf8ee336", "type": "PERSP", "angle": 0.872665, "angle_y": 0.872665, "sensor_fit": "VERTICAL", "ortho_scale": 7.314, "clip_start": 0.1, "clip_end": 100, "dof_distance": 0, "b4w_dof_front_start": 1, "b4w_dof_front_end": 5, "b4w_dof_rear_start": 1, "b4w_dof_rear_end": 5, "b4w_dof_power": 2, "b4w_dof_bokeh": false, "b4w_dof_bokeh_intensity": 0.3, "b4w_dof_foreground_blur": false, "b4w_move_style": "EYE", "b4w_hover_zero_level": 0.0, "b4w_trans_velocity": 1, "b4w_rot_velocity": 1, "b4w_zoom_velocity": 0.1, "b4w_use_target_distance_limits": false, "b4w_distance_min": 1, "b4w_distance_max": 10, "b4w_use_horizontal_clamping": false, "b4w_rotation_left_limit": -0.7853981852531433, "b4w_rotation_right_limit": 0.7853981852531433, "b4w_horizontal_clamping_type": "LOCAL", "b4w_use_vertical_clamping": true, "b4w_rotation_down_limit": -1.5707963705062866, "b4w_rotation_up_limit": 1.5707963705062866, "b4w_vertical_clamping_type": "LOCAL", "b4w_horizontal_translation_min": -10, "b4w_horizontal_translation_max": 10, "b4w_vertical_translation_min": -10, "b4w_vertical_translation_max": 10, "b4w_use_zooming": false, "b4w_hover_angle_min": 0.0, "b4w_hover_angle_max": 1.5707963705062866, "b4w_enable_hover_hor_rotation": true, "b4w_use_panning": true, "b4w_use_pivot_limits": false, "b4w_pivot_z_min": 0.0, "b4w_pivot_z_max": 10.0, "b4w_target": [0, 0, 1], "dof_object": null}], "curves": [], "lamps": [{"animation_data": null, "name": "Spot", "uuid": "2625d3d6464d820f3f646fba8dc6295f", "type": "SPOT", "energy": 1.5, "distance": 30, "use_diffuse": true, "use_specular": true, "falloff_type": "INVERSE_SQUARE", "clip_start": 1.0007989406585693, "clip_end": 30.00200080871582, "use_sphere": false, "spot_size": 1.309, "spot_blend": 1, "b4w_generate_shadows": true, "b4w_dynamic_intensity": false, "color": [1, 1, 1]}], "sounds": [], "speakers": [], "particles": [], "objects": [{"name": "Cube", "uuid": "abfb79577a3372e316075bcf96901077", "type": "MESH", "body_text": null, "data": {"uuid": "6dd5dd1c8417f6587a09f0835710a702"}, "proxy": null, "dupli_group": null, "parent": null, "b4w_viewport_alignment": null, "pinverse_tsr": null, "parent_type": "OBJECT", "parent_bone": "", "b4w_cluster_data": {"cluster_id": -1, "cluster_center": null, "cluster_radius": 0}, "modifiers": [], "constraints": [], "particle_systems": [], "animation_data": null, "b4w_do_not_batch": false, "b4w_dynamic_geometry": false, "b4w_do_not_cull": false, "b4w_disable_fogging": false, "b4w_do_not_render": false, "b4w_hidden_on_load": false, "b4w_hide_chldr_on_load": false, "b4w_shadow_cast": false, "b4w_shadow_receive": false, "b4w_reflexible": false, "b4w_reflexible_only": false, "b4w_reflective": false, "b4w_reflection_type": "PLANE", "b4w_caustics": false, "b4w_wind_bending": false, "b4w_wind_bending_angle": 10, "b4w_wind_bending_freq": 0.25, "b4w_detail_bending_amp": 0.1, "b4w_detail_bending_freq": 1, "b4w_branch_bending_amp": 0.3, "b4w_main_bend_stiffness_col": "", "b4w_detail_bend_colors": {"leaves_stiffness_col": "", "leaves_phase_col": "", "overall_stiffness_col": ""}, "lod_levels": [], "b4w_proxy_inherit_anim": true, "b4w_selectable": false, "b4w_outlining": false, "b4w_billboard": false, "b4w_pres_glob_orientation": false, "b4w_billboard_geometry": "SPHERICAL", "b4w_outline_settings": {"outline_duration": 1, "outline_period": 1, "outline_relapses": 0}, "b4w_outline_on_select": false, "b4w_use_default_animation": false, "b4w_anim_behavior": "CYCLIC", "b4w_animation_mixing": false, "b4w_shadow_cast_only": false, "b4w_collision": true, "b4w_collision_id": "", "b4w_vehicle": false, "b4w_vehicle_settings": null, "b4w_character": false, "b4w_character_settings": null, "b4w_floating": false, "b4w_floating_settings": null, "pose": null, "field": null, "b4w_correct_bounding_offset": "AUTO", "game": {"physics_type": "RIGID_BODY", "use_ghost": false, "use_sleep": false, "mass": 1, "velocity_min": 0, "velocity_max": 0, "damping": 0.04, "rotation_damping": 0.1, "lock_location_x": false, "lock_location_y": false, "lock_location_z": false, "lock_rotation_x": false, "lock_rotation_y": false, "lock_rotation_z": false, "collision_margin": 0.03999999910593033, "collision_group": 1, "collision_mask": 65535, "use_collision_bounds": true, "collision_bounds_type": "BOX", "use_collision_compound": false}, "pass_index": 0, "location": [2.72188, 3.40747, 0.68817], "rotation_quaternion": [0.94441, 0, 0, 0.32878], "scale": [1, 1, 1], "b4w_object_tags": null, "b4w_custom_prop": null, "b4w_anchor": null}, {"name": "Plane.001", "uuid": "035a592b4e4393c3019bd143537d39f6", "type": "MESH", "body_text": null, "data": {"uuid": "3c346a42511edb35928ed76d0ddef065"}, "proxy": null, "dupli_group": null, "parent": null, "b4w_viewport_alignment": null, "pinverse_tsr": null, "parent_type": "OBJECT", "parent_bone": "", "b4w_cluster_data": {"cluster_id": -1, "cluster_center": null, "cluster_radius": 0}, "modifiers": [], "constraints": [], "particle_systems": [], "animation_data": null, "b4w_do_not_batch": false, "b4w_dynamic_geometry": false, "b4w_do_not_cull": false, "b4w_disable_fogging": false, "b4w_do_not_render": false, "b4w_hidden_on_load": false, "b4w_hide_chldr_on_load": false, "b4w_shadow_cast": false, "b4w_shadow_receive": false, "b4w_reflexible": false, "b4w_reflexible_only": false, "b4w_reflective": false, "b4w_reflection_type": "PLANE", "b4w_caustics": false, "b4w_wind_bending": false, "b4w_wind_bending_angle": 10, "b4w_wind_bending_freq": 0.25, "b4w_detail_bending_amp": 0.1, "b4w_detail_bending_freq": 1, "b4w_branch_bending_amp": 0.3, "b4w_main_bend_stiffness_col": "", "b4w_detail_bend_colors": {"leaves_stiffness_col": "", "leaves_phase_col": "", "overall_stiffness_col": ""}, "lod_levels": [], "b4w_proxy_inherit_anim": true, "b4w_selectable": false, "b4w_outlining": false, "b4w_billboard": false, "b4w_pres_glob_orientation": false, "b4w_billboard_geometry": "SPHERICAL", "b4w_outline_settings": {"outline_duration": 1, "outline_period": 1, "outline_relapses": 0}, "b4w_outline_on_select": false, "b4w_use_default_animation": false, "b4w_anim_behavior": "CYCLIC", "b4w_animation_mixing": false, "b4w_shadow_cast_only": false, "b4w_collision": true, "b4w_collision_id": "", "b4w_vehicle": false, "b4w_vehicle_settings": null, "b4w_character": false, "b4w_character_settings": null, "b4w_floating": false, "b4w_floating_settings": null, "pose": null, "field": null, "b4w_correct_bounding_offset": "AUTO", "game": {"physics_type": "STATIC", "use_ghost": false, "use_sleep": false, "mass": 1, "velocity_min": 0, "velocity_max": 0, "damping": 0.04, "rotation_damping": 0.1, "lock_location_x": false, "lock_location_y": false, "lock_location_z": false, "lock_rotation_x": false, "lock_rotation_y": false, "lock_rotation_z": false, "collision_margin": 0.03999999910593033, "collision_group": 1, "collision_mask": 65535, "use_collision_bounds": true, "collision_bounds_type": "BOX", "use_collision_compound": false}, "pass_index": 0, "location": [0, 0, 0], "rotation_quaternion": [1, 0, 0, 0], "scale": [8, 8, 8], "b4w_object_tags": null, "b4w_custom_prop": null, "b4w_anchor": null}, {"name": "characterController", "uuid": "1533e992a257b0e8efc2bbce4658d0c5", "type": "MESH", "body_text": null, "data": {"uuid": "fe9a5b9e5e2670a84518c74041b716c2"}, "proxy": null, "dupli_group": null, "parent": null, "b4w_viewport_alignment": null, "pinverse_tsr": null, "parent_type": "OBJECT", "parent_bone": "", "b4w_cluster_data": {"cluster_id": -1, "cluster_center": null, "cluster_radius": 0}, "modifiers": [], "constraints": [], "particle_systems": [], "animation_data": null, "b4w_do_not_batch": false, "b4w_dynamic_geometry": false, "b4w_do_not_cull": false, "b4w_disable_fogging": false, "b4w_do_not_render": false, "b4w_hidden_on_load": false, "b4w_hide_chldr_on_load": false, "b4w_shadow_cast": false, "b4w_shadow_receive": false, "b4w_reflexible": false, "b4w_reflexible_only": false, "b4w_reflective": false, "b4w_reflection_type": "PLANE", "b4w_caustics": false, "b4w_wind_bending": false, "b4w_wind_bending_angle": 10, "b4w_wind_bending_freq": 0.25, "b4w_detail_bending_amp": 0.1, "b4w_detail_bending_freq": 1, "b4w_branch_bending_amp": 0.3, "b4w_main_bend_stiffness_col": "", "b4w_detail_bend_colors": {"leaves_stiffness_col": "", "leaves_phase_col": "", "overall_stiffness_col": ""}, "lod_levels": [], "b4w_proxy_inherit_anim": true, "b4w_selectable": false, "b4w_outlining": false, "b4w_billboard": false, "b4w_pres_glob_orientation": false, "b4w_billboard_geometry": "SPHERICAL", "b4w_outline_settings": {"outline_duration": 1, "outline_period": 1, "outline_relapses": 0}, "b4w_outline_on_select": false, "b4w_use_default_animation": false, "b4w_anim_behavior": "CYCLIC", "b4w_animation_mixing": false, "b4w_shadow_cast_only": false, "b4w_collision": false, "b4w_collision_id": "", "b4w_vehicle": false, "b4w_vehicle_settings": null, "b4w_character": true, "b4w_character_settings": {"walk_speed": 4, "run_speed": 8, "step_height": 0.25, "jump_strength": 5, "waterline": 0}, "b4w_floating": false, "b4w_floating_settings": null, "pose": null, "field": null, "b4w_correct_bounding_offset": "AUTO", "game": {"physics_type": "RIGID_BODY", "use_ghost": false, "use_sleep": true, "mass": 100, "velocity_min": 0, "velocity_max": 0, "damping": 0.04, "rotation_damping": 0.1, "lock_location_x": false, "lock_location_y": false, "lock_location_z": false, "lock_rotation_x": false, "lock_rotation_y": false, "lock_rotation_z": false, "collision_margin": 0.03999999910593033, "collision_group": 1, "collision_mask": 65535, "use_collision_bounds": true, "collision_bounds_type": "BOX", "use_collision_compound": false}, "pass_index": 0, "location": [0, 0, 1.09601], "rotation_quaternion": [1, 0, 0, 0], "scale": [1, 1, 1], "b4w_object_tags": null, "b4w_custom_prop": null, "b4w_anchor": null}, {"name": "Spot", "uuid": "90676855d082c8cb9dd8f80a46143c3e", "type": "LAMP", "body_text": null, "data": {"uuid": "2625d3d6464d820f3f646fba8dc6295f"}, "proxy": null, "dupli_group": null, "parent": null, "b4w_viewport_alignment": null, "pinverse_tsr": null, "parent_type": "OBJECT", "parent_bone": "", "b4w_cluster_data": {"cluster_id": -1, "cluster_center": null, "cluster_radius": 0}, "modifiers": [], "constraints": [], "particle_systems": [], "animation_data": null, "b4w_do_not_batch": false, "b4w_dynamic_geometry": false, "b4w_do_not_cull": false, "b4w_disable_fogging": false, "b4w_do_not_render": false, "b4w_hidden_on_load": false, "b4w_hide_chldr_on_load": false, "b4w_shadow_cast": false, "b4w_shadow_receive": false, "b4w_reflexible": false, "b4w_reflexible_only": false, "b4w_reflective": false, "b4w_reflection_type": "PLANE", "b4w_caustics": false, "b4w_wind_bending": false, "b4w_wind_bending_angle": 10, "b4w_wind_bending_freq": 0.25, "b4w_detail_bending_amp": 0.1, "b4w_detail_bending_freq": 1, "b4w_branch_bending_amp": 0.3, "b4w_main_bend_stiffness_col": "", "b4w_detail_bend_colors": {"leaves_stiffness_col": "", "leaves_phase_col": "", "overall_stiffness_col": ""}, "lod_levels": [], "b4w_proxy_inherit_anim": true, "b4w_selectable": false, "b4w_outlining": false, "b4w_billboard": false, "b4w_pres_glob_orientation": false, "b4w_billboard_geometry": "SPHERICAL", "b4w_outline_settings": {"outline_duration": 1, "outline_period": 1, "outline_relapses": 0}, "b4w_outline_on_select": false, "b4w_use_default_animation": false, "b4w_anim_behavior": "CYCLIC", "b4w_animation_mixing": false, "b4w_shadow_cast_only": false, "b4w_collision": false, "b4w_collision_id": "", "b4w_vehicle": false, "b4w_vehicle_settings": null, "b4w_character": false, "b4w_character_settings": null, "b4w_floating": false, "b4w_floating_settings": null, "pose": null, "field": null, "b4w_correct_bounding_offset": "AUTO", "game": {"physics_type": "STATIC", "use_ghost": false, "use_sleep": false, "mass": 1, "velocity_min": 0, "velocity_max": 0, "damping": 0.025, "rotation_damping": 0.159, "lock_location_x": false, "lock_location_y": false, "lock_location_z": false, "lock_rotation_x": false, "lock_rotation_y": false, "lock_rotation_z": false, "collision_margin": 0.05999999865889549, "collision_group": 1, "collision_mask": 255, "use_collision_bounds": false, "collision_bounds_type": "BOX", "use_collision_compound": false}, "pass_index": 0, "location": [4, 3, 4.5], "rotation_quaternion": [0.86602, -0.28679, 0.40958, -0.004], "scale": [1, 1, 1], "b4w_object_tags": null, "b4w_custom_prop": null, "b4w_anchor": null}, {"name": "Plane", "uuid": "ccc7b5dc5bd63a6248635141ba5dc645", "type": "MESH", "body_text": null, "data": {"uuid": "5abdc29e9502f8f1b548ddf32a1aeed7"}, "proxy": null, "dupli_group": null, "parent": {"uuid": "90676855d082c8cb9dd8f80a46143c3e"}, "b4w_viewport_alignment": null, "parent_type": "OBJECT", "parent_bone": "", "b4w_cluster_data": {"cluster_id": -1, "cluster_center": null, "cluster_radius": 0}, "modifiers": [], "constraints": [], "particle_systems": [], "animation_data": null, "b4w_do_not_batch": false, "b4w_dynamic_geometry": false, "b4w_do_not_cull": false, "b4w_disable_fogging": false, "b4w_do_not_render": false, "b4w_hidden_on_load": false, "b4w_hide_chldr_on_load": false, "b4w_shadow_cast": false, "b4w_shadow_receive": false, "b4w_reflexible": false, "b4w_reflexible_only": false, "b4w_reflective": false, "b4w_reflection_type": "PLANE", "b4w_caustics": false, "b4w_wind_bending": false, "b4w_wind_bending_angle": 10, "b4w_wind_bending_freq": 0.25, "b4w_detail_bending_amp": 0.1, "b4w_detail_bending_freq": 1, "b4w_branch_bending_amp": 0.3, "b4w_main_bend_stiffness_col": "", "b4w_detail_bend_colors": {"leaves_stiffness_col": "", "leaves_phase_col": "", "overall_stiffness_col": ""}, "lod_levels": [], "b4w_proxy_inherit_anim": true, "b4w_selectable": false, "b4w_outlining": false, "b4w_billboard": true, "b4w_pres_glob_orientation": true, "b4w_billboard_geometry": "SPHERICAL", "b4w_outline_settings": {"outline_duration": 1, "outline_period": 1, "outline_relapses": 0}, "b4w_outline_on_select": false, "b4w_use_default_animation": false, "b4w_anim_behavior": "CYCLIC", "b4w_animation_mixing": false, "b4w_shadow_cast_only": false, "b4w_collision": false, "b4w_collision_id": "", "b4w_vehicle": false, "b4w_vehicle_settings": null, "b4w_character": false, "b4w_character_settings": null, "b4w_floating": false, "b4w_floating_settings": null, "pose": null, "field": null, "b4w_correct_bounding_offset": "AUTO", "game": {"physics_type": "STATIC", "use_ghost": false, "use_sleep": false, "mass": 1, "velocity_min": 0, "velocity_max": 0, "damping": 0.04, "rotation_damping": 0.1, "lock_location_x": false, "lock_location_y": false, "lock_location_z": false, "lock_rotation_x": false, "lock_rotation_y": false, "lock_rotation_z": false, "collision_margin": 0.03999999910593033, "collision_group": 1, "collision_mask": 65535, "use_collision_bounds": false, "collision_bounds_type": "BOX", "use_collision_compound": false}, "pass_index": 0, "pinverse_tsr": [1.24966, 0.65559, -6.57712, 1, 0.28679, -0.40958, 0.004, 0.86602], "location": [0, 0, 0], "rotation_quaternion": [0.4964, 0.77919, 0.37361, -0.08283], "scale": [1, 1, 1], "b4w_object_tags": null, "b4w_custom_prop": null, "b4w_anchor": null}, {"name": "Camera", "uuid": "aa4c264d5a4ac57acaa5ba1998f044e7", "type": "CAMERA", "body_text": null, "data": {"uuid": "e3d8155a1adf78c1ed7b6d2eaf8ee336"}, "proxy": null, "dupli_group": null, "parent": null, "b4w_viewport_alignment": null, "pinverse_tsr": null, "parent_type": "OBJECT", "parent_bone": "", "b4w_cluster_data": {"cluster_id": -1, "cluster_center": null, "cluster_radius": 0}, "modifiers": [], "constraints": [], "particle_systems": [], "animation_data": null, "b4w_do_not_batch": false, "b4w_dynamic_geometry": false, "b4w_do_not_cull": false, "b4w_disable_fogging": false, "b4w_do_not_render": false, "b4w_hidden_on_load": false, "b4w_hide_chldr_on_load": false, "b4w_shadow_cast": false, "b4w_shadow_receive": false, "b4w_reflexible": false, "b4w_reflexible_only": false, "b4w_reflective": false, "b4w_reflection_type": "PLANE", "b4w_caustics": false, "b4w_wind_bending": false, "b4w_wind_bending_angle": 10, "b4w_wind_bending_freq": 0.25, "b4w_detail_bending_amp": 0.1, "b4w_detail_bending_freq": 1, "b4w_branch_bending_amp": 0.3, "b4w_main_bend_stiffness_col": "", "b4w_detail_bend_colors": {"leaves_stiffness_col": "", "leaves_phase_col": "", "overall_stiffness_col": ""}, "lod_levels": [], "b4w_proxy_inherit_anim": true, "b4w_selectable": false, "b4w_outlining": false, "b4w_billboard": false, "b4w_pres_glob_orientation": false, "b4w_billboard_geometry": "SPHERICAL", "b4w_outline_settings": {"outline_duration": 1, "outline_period": 1, "outline_relapses": 0}, "b4w_outline_on_select": false, "b4w_use_default_animation": false, "b4w_anim_behavior": "CYCLIC", "b4w_animation_mixing": false, "b4w_shadow_cast_only": false, "b4w_collision": false, "b4w_collision_id": "", "b4w_vehicle": false, "b4w_vehicle_settings": null, "b4w_character": false, "b4w_character_settings": null, "b4w_floating": false, "b4w_floating_settings": null, "pose": null, "field": null, "b4w_correct_bounding_offset": "AUTO", "game": {"physics_type": "STATIC", "use_ghost": false, "use_sleep": false, "mass": 1, "velocity_min": 0, "velocity_max": 0, "damping": 0.566, "rotation_damping": 0.626, "lock_location_x": false, "lock_location_y": false, "lock_location_z": false, "lock_rotation_x": false, "lock_rotation_y": false, "lock_rotation_z": false, "collision_margin": 0.05999999865889549, "collision_group": 1, "collision_mask": 255, "use_collision_bounds": false, "collision_bounds_type": "BOX", "use_collision_compound": false}, "pass_index": 0, "location": [0, 0, 1.5], "rotation_quaternion": [0.70711, 0.70711, 0, 0], "scale": [1, 1, 1], "b4w_object_tags": null, "b4w_custom_prop": null, "b4w_anchor": null}], "groups": [], "scenes": [{"name": "Scene", "uuid": "b72a9be493916bc1ff39959d0607f9d4", "b4w_use_nla": false, "b4w_nla_cyclic": false, "b4w_logic_nodes": [], "b4w_use_logic_editor": false, "b4w_enable_dynamic_compressor": false, "b4w_dynamic_compressor_settings": {"threshold": -24, "knee": 30, "ratio": 12, "attack": 0.003, "release": 0.25}, "b4w_shadow_settings": {"csm_resolution": 512, "blur_samples": "16x", "soft_shadows": true, "self_shadow_polygon_offset": 1, "self_shadow_normal_offset": 0.07, "b4w_enable_csm": false, "csm_num": 1, "csm_first_cascade_border": 10, "first_cascade_blur_radius": 5, "csm_last_cascade_border": 100, "last_cascade_blur_radius": 1.5, "fade_last_cascade": true, "blend_between_cascades": true}, "b4w_god_rays_settings": {"intensity": 0.7, "max_ray_length": 1, "steps_per_pass": 10}, "b4w_ssao_settings": {"radius_increase": 3, "hemisphere": false, "blur_depth": false, "blur_discard_value": 1, "influence": 0.7, "dist_factor": 0, "samples": 16}, "b4w_color_correction_settings": {"brightness": 0, "contrast": 0, "exposure": 1, "saturation": 1}, "b4w_bloom_settings": {"key": 1, "blur": 4, "edge_lum": 1, "adaptive": true, "average_luminance": 0.5}, "b4w_motion_blur_settings": {"motion_blur_factor": 0.01, "motion_blur_decay_threshold": 0.01}, "b4w_glow_settings": {"render_glow_over_blend": true, "small_glow_mask_coeff": 2, "large_glow_mask_coeff": 2, "small_glow_mask_width": 2, "large_glow_mask_width": 6}, "b4w_outline_color": [1, 1, 1], "b4w_outline_factor": 1, "b4w_enable_physics": "AUTO", "b4w_render_shadows": "AUTO", "b4w_render_reflections": "ON", "b4w_reflection_quality": "MEDIUM", "b4w_render_refractions": "AUTO", "b4w_render_dynamic_grass": "AUTO", "b4w_enable_god_rays": false, "b4w_enable_glow_materials": "AUTO", "b4w_enable_ssao": false, "b4w_batch_grid_size": 0, "b4w_anisotropic_filtering": "8x", "b4w_enable_bloom": false, "b4w_enable_motion_blur": false, "b4w_enable_color_correction": false, "b4w_antialiasing_quality": "MEDIUM", "b4w_enable_object_selection": "AUTO", "b4w_enable_outlining": "AUTO", "b4w_enable_anchors_visibility": "AUTO", "b4w_lod_smooth_type": "NON-OPAQUE", "b4w_lod_hyst_interval": 4.0, "b4w_tags": null, "b4w_custom_prop": null, "objects": [{"uuid": "abfb79577a3372e316075bcf96901077"}, {"uuid": "035a592b4e4393c3019bd143537d39f6"}, {"uuid": "1533e992a257b0e8efc2bbce4658d0c5"}, {"uuid": "90676855d082c8cb9dd8f80a46143c3e"}, {"uuid": "ccc7b5dc5bd63a6248635141ba5dc645"}, {"uuid": "aa4c264d5a4ac57acaa5ba1998f044e7"}], "camera": {"uuid": "aa4c264d5a4ac57acaa5ba1998f044e7"}, "world": {"uuid": "d83eaa5f96a281112da0df416068b37a"}, "frame_start": 1, "frame_end": 250, "timeline_markers": null, "fps": 24, "audio_volume": 1, "audio_doppler_speed": 343.3, "audio_doppler_factor": 1, "audio_distance_model": "INVERSE_CLAMPED"}], "worlds": [{"name": "World", "uuid": "d83eaa5f96a281112da0df416068b37a", "texture_slots": [], "use_orco_tex_coord": false, "horizon_color": [0.3529, 0.7289, 1], "zenith_color": [1, 1, 1], "use_sky_paper": false, "use_sky_blend": true, "use_sky_real": false, "b4w_use_default_animation": false, "b4w_anim_behavior": "CYCLIC", "use_nodes": false, "uv_vc_key": "", "light_settings": {"use_environment_light": true, "environment_energy": 0.2, "environment_color": "SKY_COLOR"}, "b4w_sky_settings": {"render_sky": true, "reflexible": true, "reflexible_only": false, "procedural_skydome": false, "use_as_environment_lighting": false, "color": [0.087, 0.255, 0.6], "rayleigh_brightness": 3.3, "mie_brightness": 0.1, "spot_brightness": 20, "scatter_strength": 0.2, "rayleigh_strength": 0.2, "mie_strength": 0.006, "rayleigh_collection_power": 0.35, "mie_collection_power": 0.5, "mie_distribution": 0.4}, "fog_settings": {"use_fog": false, "intensity": 0, "depth": 25, "start": 5, "height": 0, "falloff": "QUADRATIC", "use_custom_color": false, "color": [0.5, 0.5, 0.5]}, "animation_data": null, "node_tree": null}], "node_groups": [{"name": "B4W_SMOOTHSTEP", "use_orco_tex_coord": false, "uv_vc_key": "", "uuid": "1ab8753a40a64036ae9d791a3c13475b", "node_tree": {"nodes": [{"name": "Math.006", "type": "MATH", "operation": "SUBTRACT", "use_clamp": false, "inputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 3}, {"name": "Value", "identifier": "Value_001", "is_linked": true, "default_value": 2}], "outputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}, {"name": "Math.002", "type": "MATH", "operation": "MULTIPLY", "use_clamp": false, "inputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0.5}, {"name": "Value", "identifier": "Value_001", "is_linked": true, "default_value": 0.5}], "outputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}, {"name": "Math.008", "type": "MATH", "operation": "DIVIDE", "use_clamp": false, "inputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 3}, {"name": "Value", "identifier": "Value_001", "is_linked": true, "default_value": 2}], "outputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}, {"name": "Math.005", "type": "MATH", "operation": "SUBTRACT", "use_clamp": false, "inputs": [{"name": "Value", "identifier": "Value", "is_linked": false, "default_value": 3}, {"name": "Value", "identifier": "Value_001", "is_linked": true, "default_value": 2}], "outputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}, {"name": "Group Input", "type": "GROUP_INPUT", "inputs": [], "outputs": [{"name": "Value", "identifier": "Input_1", "is_linked": true, "default_value": 0.5}, {"name": "Edge0", "identifier": "Input_5", "is_linked": true, "default_value": 2}, {"name": "Edge1", "identifier": "Input_7", "is_linked": true, "default_value": 3}]}, {"name": "Group Output", "type": "GROUP_OUTPUT", "inputs": [{"name": "Value", "identifier": "Output_3", "is_linked": true, "default_value": 0}], "outputs": []}, {"name": "Math.001", "type": "MATH", "operation": "MAXIMUM", "use_clamp": false, "inputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 1}, {"name": "Value", "identifier": "Value_001", "is_linked": false, "default_value": 0}], "outputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}, {"name": "Math", "type": "MATH", "operation": "MINIMUM", "use_clamp": false, "inputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0.5}, {"name": "Value", "identifier": "Value_001", "is_linked": false, "default_value": 1}], "outputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}, {"name": "Math.003", "type": "MATH", "operation": "MULTIPLY", "use_clamp": false, "inputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0.5}, {"name": "Value", "identifier": "Value_001", "is_linked": true, "default_value": 0.5}], "outputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}, {"name": "Math.004", "type": "MATH", "operation": "MULTIPLY", "use_clamp": false, "inputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0.5}, {"name": "Value", "identifier": "Value_001", "is_linked": false, "default_value": 2}], "outputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}, {"name": "Math.007", "type": "MATH", "operation": "SUBTRACT", "use_clamp": false, "inputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 3}, {"name": "Value", "identifier": "Value_001", "is_linked": true, "default_value": 2}], "outputs": [{"name": "Value", "identifier": "Value", "is_linked": true, "default_value": 0}]}], "links": [{"from_node": {"name": "Math.001"}, "to_node": {"name": "Math.002"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value"}}, {"from_node": {"name": "Math.001"}, "to_node": {"name": "Math.002"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value_001"}}, {"from_node": {"name": "Math.002"}, "to_node": {"name": "Math.003"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value"}}, {"from_node": {"name": "Math.003"}, "to_node": {"name": "Group Output"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Output_3"}}, {"from_node": {"name": "Math.001"}, "to_node": {"name": "Math.004"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value"}}, {"from_node": {"name": "Math.004"}, "to_node": {"name": "Math.005"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value_001"}}, {"from_node": {"name": "Math.005"}, "to_node": {"name": "Math.003"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value_001"}}, {"from_node": {"name": "Group Input"}, "to_node": {"name": "Math.006"}, "from_socket": {"identifier": "Input_1"}, "to_socket": {"identifier": "Value"}}, {"from_node": {"name": "Group Input"}, "to_node": {"name": "Math.006"}, "from_socket": {"identifier": "Input_5"}, "to_socket": {"identifier": "Value_001"}}, {"from_node": {"name": "Group Input"}, "to_node": {"name": "Math.007"}, "from_socket": {"identifier": "Input_7"}, "to_socket": {"identifier": "Value"}}, {"from_node": {"name": "Group Input"}, "to_node": {"name": "Math.007"}, "from_socket": {"identifier": "Input_5"}, "to_socket": {"identifier": "Value_001"}}, {"from_node": {"name": "Math.006"}, "to_node": {"name": "Math.008"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value"}}, {"from_node": {"name": "Math.007"}, "to_node": {"name": "Math.008"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value_001"}}, {"from_node": {"name": "Math.008"}, "to_node": {"name": "Math"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value"}}, {"from_node": {"name": "Math"}, "to_node": {"name": "Math.001"}, "from_socket": {"identifier": "Value"}, "to_socket": {"identifier": "Value"}}], "animation_data": null}}], "binaries": [{"binfile": "preset.bin", "int": 0, "float": 336, "short": 1008, "ushort": 1344, "uchar": 1344}], "b4w_export_warnings": [], "b4w_export_errors": []} diff --git a/blender/preset.blend b/blender/preset.blend new file mode 100644 index 0000000..3974188 Binary files /dev/null and b/blender/preset.blend differ diff --git a/preset.css b/preset.css new file mode 100644 index 0000000..c26a5c8 --- /dev/null +++ b/preset.css @@ -0,0 +1,13 @@ +body { + background-color: #000; + margin: 0; + overflow: hidden; +} + +#main_canvas_container { + position: absolute; + left: 0px; + top: 0px; + width: 100%; + height: 100%; +} diff --git a/preset.html b/preset.html new file mode 100644 index 0000000..a0844d1 --- /dev/null +++ b/preset.html @@ -0,0 +1,125 @@ + + + + + +preset_firstperson + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + diff --git a/preset.js b/preset.js new file mode 100644 index 0000000..a5bde35 --- /dev/null +++ b/preset.js @@ -0,0 +1,96 @@ +"use strict" + +// register the application module +b4w.register("preset_main", function(exports, require) { + +// import modules used by the app +var m_app = require("app"); +var m_cfg = require("config"); +var m_data = require("data"); +var m_preloader = require("preloader"); +var m_ver = require("version"); +var m_fps = require("fps"); //kek + +//kek +var cb = function(element) { + console.log("pointerlock is enabled"); +} + +// detect application mode +var DEBUG = (m_ver.type() == "DEBUG"); + +// automatically detect assets path +var APP_ASSETS_PATH = m_cfg.get_assets_path("preset_firstperson"); + +/** + * export the method to initialize the app (called at the bottom of this file) + */ +exports.init = function() { + m_app.init({ + canvas_container_id: "main_canvas_container", + callback: init_cb, + show_fps: false, //set to DEBUG for editing / if you need debug + console_verbose: false, //set to DEBUG for editing / if you need debug + autoresize: true + }); +} + +/** + * callback executed when the app is initialized + */ +function init_cb(canvas_elem, success) { + + if (!success) { + console.log("b4w init failure"); + return; + } + + m_preloader.create_preloader(); + + // ignore right-click on the canvas element + canvas_elem.oncontextmenu = function(e) { + e.preventDefault(); + e.stopPropagation(); + return false; + }; + + load(); +} + +/** + * load the scene data + */ +function load() { + m_data.load(APP_ASSETS_PATH + "preset.json", load_cb, preloader_cb); +} + +/** + * update the app's preloader + */ +function preloader_cb(percentage) { + m_preloader.update_preloader(percentage); +} + +/** + * callback executed when the scene data is loaded + */ +function load_cb(data_id, success) { + + if (!success) { + console.log("b4w load failure"); + return; + } + + //m_app.enable_camera_controls(); + //your code here + m_fps.enable_fps_controls(); //instead of camera controls + m_fps.set_plock_enable_cb(cb); //mouse no drag and drop, but direct input + var current_state = m_fps.get_character_state(); + if (current_state == m_fps.CS_FLY) //disable fly + m_fps.switch_state(m_fps.CS_WALK); +} + +}); + +// import the app module and start the app by calling the init method +b4w.require("preset_main").init();