From 19d82611741a0aea7309206ef33f95ac6fc8e83a Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Tue, 20 Sep 2011 18:31:13 -0700 Subject: [PATCH] More examples clean up. --- examples/canvas_camera_orthographic.html | 12 +- examples/canvas_geometry_birds.html | 14 +- examples/canvas_geometry_cube.html | 10 +- examples/canvas_geometry_earth.html | 10 +- examples/canvas_geometry_hierarchy.html | 10 +- examples/canvas_geometry_panorama.html | 6 +- .../canvas_geometry_panorama_fisheye.html | 6 +- examples/canvas_geometry_terrain.html | 12 +- examples/canvas_geometry_text.html | 12 +- examples/canvas_interactive_cubes.html | 10 +- examples/canvas_interactive_cubes_tween.html | 12 +- examples/canvas_interactive_particles.html | 10 +- examples/canvas_interactive_voxelpainter.html | 10 +- examples/canvas_lights_pointlights.html | 10 +- .../canvas_lights_pointlights_smooth.html | 10 +- examples/canvas_lines.html | 8 +- examples/canvas_lines_sphere.html | 8 +- examples/canvas_materials.html | 10 +- examples/canvas_materials_depth.html | 10 +- examples/canvas_materials_normal.html | 10 +- examples/canvas_materials_reflection.html | 12 +- examples/canvas_materials_video.html | 10 +- examples/canvas_particles_floor.html | 10 +- examples/canvas_particles_random.html | 10 +- examples/canvas_particles_shapes.html | 16 +- examples/canvas_particles_sprites.html | 12 +- examples/canvas_particles_waves.html | 10 +- examples/canvas_performance.html | 10 +- examples/canvas_sandbox.html | 226 +++++++------- examples/misc_camera_path.html | 10 +- examples/misc_camera_roll.html | 8 +- examples/misc_camera_trackball.html | 8 +- examples/misc_lights_test.html | 10 +- examples/misc_lookat.html | 10 +- examples/misc_materials_multimaterials.html | 10 +- examples/misc_sound.html | 10 +- examples/misc_ubiquity_test.html | 12 +- examples/webgl_animation_skinning.html | 12 +- examples/webgl_collada.html | 12 +- examples/webgl_collisions_box.html | 10 +- examples/webgl_collisions_mesh.html | 10 +- examples/webgl_collisions_normal.html | 10 +- examples/webgl_collisions_primitives.html | 10 +- examples/webgl_collisions_reaction.html | 8 +- examples/webgl_collisions_terrain.html | 211 +++++++------ examples/webgl_collisions_trigger.html | 284 ++++++++++-------- examples/webgl_custom_attributes.html | 13 +- .../webgl_custom_attributes_particles.html | 8 +- .../webgl_custom_attributes_particles2.html | 8 +- .../webgl_custom_attributes_particles3.html | 8 +- examples/webgl_flycamera_earth.html | 22 +- examples/webgl_geometries.html | 10 +- .../webgl_geometry_blenderexport_colors.html | 10 +- examples/webgl_geometry_colors.html | 10 +- examples/webgl_geometry_dynamic.html | 10 +- examples/webgl_geometry_hierarchy.html | 8 +- examples/webgl_geometry_hierarchy2.html | 8 +- examples/webgl_geometry_large_mesh.html | 8 +- examples/webgl_geometry_minecraft.html | 12 +- examples/webgl_geometry_minecraft_ao.html | 12 +- examples/webgl_geometry_shapes.html | 8 +- examples/webgl_geometry_terrain.html | 12 +- examples/webgl_geometry_terrain_fog.html | 12 +- examples/webgl_geometry_text.html | 44 +-- examples/webgl_hdr.html | 10 +- examples/webgl_interactive_cubes.html | 8 +- .../webgl_interactive_draggablecubes.html | 8 +- examples/webgl_interactive_voxelpainter.html | 10 +- examples/webgl_lights_pointlights.html | 10 +- examples/webgl_lines_colors.html | 22 +- examples/webgl_lines_cubes.html | 10 +- examples/webgl_lines_sphere.html | 10 +- examples/webgl_lines_splines.html | 10 +- examples/webgl_lod.html | 10 +- examples/webgl_lod_text.html | 26 +- examples/webgl_materials.html | 10 +- examples/webgl_materials_cars.html | 10 +- examples/webgl_materials_cars_anaglyph.html | 10 +- examples/webgl_materials_cars_camaro.html | 10 +- ...webgl_materials_cars_camaro_crosseyed.html | 10 +- examples/webgl_materials_cubemap.html | 10 +- ...gl_materials_cubemap_balls_reflection.html | 8 +- ...als_cubemap_balls_reflection_anaglyph.html | 8 +- ...gl_materials_cubemap_balls_refraction.html | 8 +- ...ls_cubemap_balls_refraction_crosseyed.html | 8 +- examples/webgl_materials_cubemap_escher.html | 10 +- .../webgl_materials_cubemap_refraction.html | 10 +- examples/webgl_materials_grass.html | 8 +- examples/webgl_materials_normalmap.html | 10 +- examples/webgl_materials_normalmap2.html | 10 +- examples/webgl_materials_shaders.html | 10 +- examples/webgl_materials_shaders_fresnel.html | 8 +- examples/webgl_materials_skin.html | 26 +- examples/webgl_materials_texture_filters.html | 10 +- examples/webgl_materials_video.html | 22 +- examples/webgl_morphtargets.html | 10 +- examples/webgl_morphtargets_horse.html | 8 +- examples/webgl_multiple_canvases_complex.html | 10 +- examples/webgl_multiple_canvases_grid.html | 10 +- examples/webgl_objconvert_test.html | 10 +- examples/webgl_panorama_equirectangular.html | 6 +- examples/webgl_particles_billboards.html | 10 +- .../webgl_particles_billboards_colors.html | 10 +- examples/webgl_particles_dynamic.html | 24 +- examples/webgl_particles_random.html | 10 +- examples/webgl_particles_shapes.html | 28 +- examples/webgl_particles_sprites.html | 10 +- examples/webgl_performance.html | 8 +- examples/webgl_postprocessing.html | 28 +- examples/webgl_postprocessing_dof.html | 14 +- examples/webgl_ribbons.html | 22 +- examples/webgl_rtt.html | 10 +- examples/webgl_sandbox.html | 228 +++++++------- examples/webgl_scene_test.html | 10 +- examples/webgl_scene_test_blender.html | 10 +- examples/webgl_shader.html | 10 +- examples/webgl_shader2.html | 10 +- examples/webgl_shader_lava.html | 24 +- examples/webgl_shadowmap.html | 14 +- examples/webgl_sprites.html | 8 +- examples/webgl_test_memory.html | 4 +- examples/webgl_trackballcamera_earth.html | 10 +- examples/webgl_utf8loader.html | 10 +- 123 files changed, 1160 insertions(+), 1140 deletions(-) diff --git a/examples/canvas_camera_orthographic.html b/examples/canvas_camera_orthographic.html index 2bd1036fc9..d4aad195a1 100644 --- a/examples/canvas_camera_orthographic.html +++ b/examples/canvas_camera_orthographic.html @@ -4,7 +4,7 @@ three.js canvas - camera - orthographic - - + - - + + - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - + - + - + - + - - + + - + - - + + - + - - + + - + - - + + - + - + - - + + - + - - - + + + - + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + -#options { - position: absolute; - top: 10px; left: 10px; width: 800px; - color: #000000; - padding: 5px; - font-family: Monospace; - font-size: 13px; - text-align: left; - z-index:100; -} + - + var theta = 0, radius = 250, speed = 0.002, sphereSize = 4; - -function vts(v) { - if(!v) return "undefined
"; - else return v.x + " , " + v.y + " , " + v.z + "
"; -} + - - - - - -
-
- + +
+
+ diff --git a/examples/webgl_collisions_trigger.html b/examples/webgl_collisions_trigger.html index bedf619adc..7b83e11e2a 100644 --- a/examples/webgl_collisions_trigger.html +++ b/examples/webgl_collisions_trigger.html @@ -1,161 +1,181 @@ - - - three.js webgl - collision detection - - - - - - - + + + - - -
-
-
-
- + renderer.render(scene, camera); + + } + + function vts(v){ + + if (!v) + return "undefined
"; + else + return v.x + " , " + v.y + " , " + v.z + "
"; + + } + + + + +
+
+
+
+ diff --git a/examples/webgl_custom_attributes.html b/examples/webgl_custom_attributes.html index fcf7724f7c..c13fca266b 100644 --- a/examples/webgl_custom_attributes.html +++ b/examples/webgl_custom_attributes.html @@ -1,8 +1,9 @@ - + - three.js webgl - custom attributes + + - + - + - - - - - + + + + + - - - + + + @@ -53,7 +53,7 @@ WASD move, R|F up | down, Q|E roll, up|down pitch, left|right yaw
- + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - - + + - + - - + + - + - - + + - + - + - - - + + + - + - + - - - + + + - + - - + + - + - + - - - + + + - + - + - - - + + + - + - + - - - - - - + + + + + + - - - + + + - - - - - - - - - - + + + + + + + + + + - + - - - + + + @@ -101,7 +101,7 @@ - + - - + + - + - - + + - + - - - + + + - + - - - + + + - + - + - - - - - + + + + + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - - + + + - + - - - + + + - + - - + + - - - - + + + + - + - - - + + + - + - - - + + + - + - - + + - + - - + + - - - - - - + + + + + + - - - + + + - + - - - + + + - + - + - - - - - + + + + + - - - + + + - + - - - + + + - + - - + + - + - - - + + + - + - - - + + + - + - - - + + + - - + + - + - - - + + + - + - - - + + + - + - + - - - - - - + + + + + + - - - + + + - + - - - + + + - + - - - - + + + + - - - - - - - + + + + + + + - + - + - - - + + + - + - - + + - + - + - - - - - - - - + + + + + + + + - - - + + + @@ -90,7 +90,7 @@ - + - - - - + + + + - +
three.js - webgl depth-of-field with bokeh example - @@ -46,7 +46,7 @@
- + - + - - - - - + + + + + - - - + + +
three.js - webgl ribbons example
- + - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - + - - - - - - + + + + + + - - - + + + - + - + - - - + + + - + - - - + + + - + - - - - + + + + @@ -44,7 +44,7 @@ MOVE mouse & press LEFT/A: rotate, MIDDLE/S: zoom, RIGHT/D: pan - + - - - + + + -