Skip to content

Commit

Permalink
Deploy vispy.org website for SHA:1626b539bc611b899ed6f5b8d6e349a49f73…
Browse files Browse the repository at this point in the history
…ddf8 (Ref: refs/heads/main)
  • Loading branch information
brisvag committed Aug 27, 2024
1 parent 4c71697 commit 4048b75
Show file tree
Hide file tree
Showing 720 changed files with 2,722 additions and 1,245 deletions.
Binary file modified _downloads/00fec6ceaff6234ed58e31ef54e9ee6f/spatial_filters.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/030b10c2712e8b14bd29f611bc0f841a/linear_region.zip
Binary file not shown.
Binary file modified _downloads/0503b34c87629a7bfecd025c3638b60a/axes_plot.zip
Binary file not shown.
Binary file modified _downloads/06e6f6b2e705908dffff6372d1bafe48/graph.zip
Binary file not shown.
Binary file modified _downloads/09543ecc1ef189cf698fdf69264c4248/display_shape.zip
Binary file not shown.
Binary file modified _downloads/0b005ede613b9e131b37f9ff1b60342e/quad_instanced.zip
Binary file not shown.
Binary file modified _downloads/0c49139053e34358d498c28190a44c8c/post_processing.zip
Binary file not shown.
Binary file modified _downloads/0d30a6a0db1157ce4e85fb4e33f31390/grid_large.zip
Binary file not shown.
Binary file modified _downloads/0ed469509c6f9e451b304c8907683c00/plotting_jupyter.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/12840a08d1a5f2c2d0cbfc4f78350a3d/geometry_shader.zip
Binary file not shown.
Binary file modified _downloads/161d271cdbc47d5c7cb7c8b90ee275e0/grid_x_y_viewbox.zip
Binary file not shown.
Binary file modified _downloads/1a3f5f59e4b39edadeb711bcfe77a9f5/turntable_box.zip
Binary file not shown.
Binary file modified _downloads/1c49e60cfefe2c67fa45471a2edf5eca/volume_plot.zip
Binary file not shown.
Binary file modified _downloads/1c786e53f4659dc56a9f3c4cae90bfc2/image.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/259e43876142fc1a1f5c2b9d6ed9698b/infinite_line.zip
Binary file not shown.
Binary file modified _downloads/271afb41d8ed8ce4e537d6a8683a59b4/multi_texture.zip
Binary file not shown.
Binary file modified _downloads/2741b93a56d2d94b19d1a552895b2754/line.zip
Binary file not shown.
Binary file modified _downloads/2769614f5e69c4d8064e3eecef16418d/scene_python.zip
Binary file not shown.
Binary file modified _downloads/279a95dc2797f082f3686ebca15066c7/colorbar.zip
Binary file not shown.
Binary file modified _downloads/2ba52bc2500f12d32018355c7cdc12be/sensitivity.zip
Binary file not shown.
Binary file modified _downloads/310bb77a536f264f26fe7acc68b5df76/isosurface.zip
Binary file not shown.
Binary file modified _downloads/3135124026cb71210d11f7f7ec0730be/colored_cube.zip
Binary file not shown.
Binary file modified _downloads/33e214bcd239cc0ec2da9c18f64ded71/gloo_python.zip
Binary file not shown.
Binary file modified _downloads/366580435bcd6e56d242890e0ea178c9/volume_plane.zip
Binary file not shown.
Binary file modified _downloads/368917c4f99f599ea70b008404278ccd/quad.zip
Binary file not shown.
Binary file modified _downloads/3ca496720d0a0117725019536cb71612/mesh_texture.zip
Binary file not shown.
Binary file modified _downloads/3d0813f6deaa7202bc83aea2839e269a/mesh_normals.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/40235c0863b6e3337b0bd4fadfc51785/polygon.zip
Binary file not shown.
Binary file modified _downloads/464290337c0b50a7fe09e9214fde1300/outlined_cube.zip
Binary file not shown.
Binary file modified _downloads/525ba611eee69b65e6bebb23b3db5756/instanced_mesh.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/5da802f3956bb2eb278de952572ab1a7/grid_uneven_col.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/63057a68b50499ebc7b4083d75aad454/start_shaders.zip
Binary file not shown.
Binary file modified _downloads/64c33a1b63e167ed97744dc997c37214/fireworks.zip
Binary file not shown.
Binary file modified _downloads/64f33fc8252b05acfc4d8014dea59b99/volume.zip
Binary file not shown.
Binary file modified _downloads/6535598a5a4af74200305fac0852eeaf/isocurve_updates.zip
Binary file not shown.
Binary file modified _downloads/670a59d0c30c44bba6bf1ed1241672a0/textured_cube.zip
Binary file not shown.
Binary file modified _downloads/67bac057e1e5314932b4d2189c67d82b/plotting_python.zip
Binary file not shown.
Binary file modified _downloads/70dd477704473c05eca2e7d20845cfb7/marker_spheres.zip
Binary file not shown.
Binary file modified _downloads/721e59203ed731e42bcae32261b82dc5/display_lines.zip
Binary file not shown.
Binary file modified _downloads/775ea87e534b30b0a988ecc0550213fa/textured_quad.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/83c4dc0ffbe434159ebbbfa880dbfb9c/start.zip
Binary file not shown.
Binary file modified _downloads/84820cb9b70639e78e0dc5805ecd19e6/rotating_quad.zip
Binary file not shown.
Binary file modified _downloads/84bd0ed76a7df911d250cba19c5ea8c5/magnify.zip
Binary file not shown.
Binary file modified _downloads/84c5ac059c59c919ec6d636fec2a859e/clipping_planes.zip
Binary file not shown.
Binary file modified _downloads/872c98af3306d692220bd1c8cdf60f59/gloo_jupyter.zip
Binary file not shown.
Binary file modified _downloads/8da8a21cf26dfa456e54da8bb0f1320d/display_points.zip
Binary file not shown.
Binary file modified _downloads/9076aef953f977f9ca61ddb39fb6d853/contour.zip
Binary file not shown.
Binary file modified _downloads/907e27d238dbe42348834a05327776bd/console.zip
Binary file not shown.
Binary file modified _downloads/9231c0d390c086e665fe39959e0493e1/plot.zip
Binary file not shown.
Binary file modified _downloads/931a0ab02f9d925a3910a1f59041cb90/line_update.zip
Binary file not shown.
Binary file modified _downloads/93d7ff2c929a44896deb11805d1e96f4/complex_image.zip
Binary file not shown.
Binary file modified _downloads/9431f4129aaff279f8c03c0bd3f565e1/grid_basic.zip
Binary file not shown.
Binary file modified _downloads/959574eb6838a963192f8fa4cfac404c/face_picking.zip
Binary file not shown.
Binary file modified _downloads/9d13d8a32dae4dbe622d224abeac9f0c/viewbox.zip
Binary file not shown.
Binary file modified _downloads/9eabc1ac66be5414ea740ee1632e5a49/grid.zip
Binary file not shown.
Binary file modified _downloads/9eeedda81672ef97d3a047fbd0b41ae0/animate_images.zip
Binary file not shown.
Binary file modified _downloads/a063a1d8cd908877b76ff80a62e0c268/export.zip
Binary file not shown.
Binary file modified _downloads/a48d99f4e0c09c4f1ee4cb2fbf08ef39/grid_holed.zip
Binary file not shown.
Binary file modified _downloads/a5814d5f25aa70c52c5598f477abb552/mesh_shading.zip
Binary file not shown.
Binary file modified _downloads/a6f4e90ce5b4c1a6c89d103bcf14b132/colored_line.zip
Binary file not shown.
Binary file modified _downloads/a89a7f869d1f5ee179aff2b67fcfac07/colored_quad.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/ac86467d9a20f7e32175055fc4331dec/scene_jupyter.zip
Binary file not shown.
Binary file modified _downloads/ac8c3701c44c3ecc71b5aee141c401c5/lasso.zip
Binary file not shown.
Binary file modified _downloads/adcffee2777489c8c2ade2b478c8d676/shape_draw.zip
Binary file not shown.
Binary file modified _downloads/ae9742957cc7ceefed48b4cc200cfbec/animate_shape.zip
Binary file not shown.
Binary file modified _downloads/b19bd9fa9aaf0f7d3ade09bea1999f0a/hello_fbo.zip
Binary file not shown.
Binary file modified _downloads/b4658bcd0aeca8f3d74f97bc62b4bd24/isocurve.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# -*- coding: utf-8 -*-
# vispy: gallery 30
# -----------------------------------------------------------------------------
# Copyright (c) Vispy Development Team. All Rights Reserved.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
# -----------------------------------------------------------------------------
"""
Picking Instance of InstancedMeshes
===================================
Demonstrates how to identify (pick) individual instanced meshes.
"""

import numpy as np

from vispy import app, scene, use
from vispy.io import read_mesh, load_data_file
from vispy.scene.visuals import InstancedMesh
from vispy.scene import transforms
from scipy.spatial.transform import Rotation

#Necessary to use InstancedMesh
use(gl='gl+')

canvas = scene.SceneCanvas(keys='interactive', bgcolor='white')
view = canvas.central_widget.add_view()

view.camera = 'turntable'
view.camera.depth_value = 1e3

#Load an mesh file
mesh_path = load_data_file('spot/spot.obj.gz')

n_instances = 8
vertices, faces, normals, texcoords = read_mesh(mesh_path)
instance_colors = np.random.rand(n_instances, 3).astype(np.float32)
instance_positions = [[0,2,0], [2,0,0], [6,0,0], [3,4,1], [5,3,2], [6,2,1], [8,4,6], [1,2,6]]
instance_transforms = Rotation.identity(n_instances).as_matrix().astype(np.float32)

# Create a colored `MeshVisual`.
mesh = InstancedMesh(
vertices,
faces,
instance_colors=instance_colors,
instance_positions=instance_positions,
instance_transforms=instance_transforms,
parent=view.scene,
)

scene.visuals.XYZAxis(parent=view.scene)
mesh.interactive = True

@canvas.events.mouse_press.connect
def on_mouse_press(event):
clicked_mesh = canvas.visual_at(event.pos)
if isinstance(clicked_mesh, InstancedMesh):
pos1, min, min_pos = get_view_axis_in_scene_coordinates(
event.pos, clicked_mesh
)
instance_pos = clicked_mesh.instance_positions[min_pos]
print(f"visual at : {clicked_mesh}")
print(f"event.pos : {event.pos}")
print(f"min distance : {min} and min_pos : {instance_pos}")



def get_view_axis_in_scene_coordinates(pos, mesh):
event_pos = np.array([pos[0], pos[1], 0, 1])
instances_on_canvas = []
# Translate each position to corresponding 2d canvas coordinates
for instance in mesh.instance_positions:
on_canvas = mesh.get_transform(map_from="visual", map_to="canvas").map(instance)
on_canvas /= on_canvas[3:]
instances_on_canvas.append(on_canvas)

min = 10000
min_pos = None
# Find the closest position to the clicked position
for i, instance_pos in enumerate(instances_on_canvas):
# Not minding z axis
temp_min = np.linalg.norm(
np.array(event_pos[:2]) - np.array(instance_pos[:2])
)
if temp_min < min:
min = temp_min
min_pos = i

return instances_on_canvas, min, min_pos

canvas.show()


if __name__ == "__main__":
print(__doc__)
app.run()
Binary file modified _downloads/c7ce855f364b1ab743db246bb8427224/nested_viewbox.zip
Binary file not shown.
Binary file modified _downloads/c92f56eb459035b88d90016635f2fd62/text.zip
Binary file not shown.
Binary file modified _downloads/c9b959a161ac234d8dbeea8af375f126/cube.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/d1d8693e3c4cb4190cb9c6477c708af6/save_animation.zip
Binary file not shown.
Binary file modified _downloads/d3d1c2c4578cc36b944927089f54e91f/rotate_cube.zip
Binary file not shown.
Binary file modified _downloads/d742d237c1fa0b6457990e28800c929c/lighted_cube.zip
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"%gui qt"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# Picking Instance of InstancedMeshes\n\nDemonstrates how to identify (pick) individual instanced meshes.\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"import numpy as np\n\nfrom vispy import app, scene, use\nfrom vispy.io import read_mesh, load_data_file\nfrom vispy.scene.visuals import InstancedMesh\nfrom vispy.scene import transforms\nfrom scipy.spatial.transform import Rotation\n\n#Necessary to use InstancedMesh\nuse(gl='gl+')\n\ncanvas = scene.SceneCanvas(keys='interactive', bgcolor='white')\nview = canvas.central_widget.add_view()\n\nview.camera = 'turntable'\nview.camera.depth_value = 1e3\n\n#Load an mesh file\nmesh_path = load_data_file('spot/spot.obj.gz')\n\nn_instances = 8\nvertices, faces, normals, texcoords = read_mesh(mesh_path)\ninstance_colors = np.random.rand(n_instances, 3).astype(np.float32)\ninstance_positions = [[0,2,0], [2,0,0], [6,0,0], [3,4,1], [5,3,2], [6,2,1], [8,4,6], [1,2,6]]\ninstance_transforms = Rotation.identity(n_instances).as_matrix().astype(np.float32)\n\n# Create a colored `MeshVisual`.\nmesh = InstancedMesh(\n vertices,\n faces,\n instance_colors=instance_colors,\n instance_positions=instance_positions,\n instance_transforms=instance_transforms,\n parent=view.scene,\n)\n\nscene.visuals.XYZAxis(parent=view.scene)\nmesh.interactive = True\n\[email protected]_press.connect\ndef on_mouse_press(event):\n clicked_mesh = canvas.visual_at(event.pos)\n if isinstance(clicked_mesh, InstancedMesh):\n pos1, min, min_pos = get_view_axis_in_scene_coordinates(\n event.pos, clicked_mesh\n )\n instance_pos = clicked_mesh.instance_positions[min_pos]\n print(f\"visual at : {clicked_mesh}\")\n print(f\"event.pos : {event.pos}\")\n print(f\"min distance : {min} and min_pos : {instance_pos}\")\n \n\n\ndef get_view_axis_in_scene_coordinates(pos, mesh):\n event_pos = np.array([pos[0], pos[1], 0, 1]) \n instances_on_canvas = []\n # Translate each position to corresponding 2d canvas coordinates\n for instance in mesh.instance_positions:\n on_canvas = mesh.get_transform(map_from=\"visual\", map_to=\"canvas\").map(instance)\n on_canvas /= on_canvas[3:]\n instances_on_canvas.append(on_canvas)\n\n min = 10000\n min_pos = None\n # Find the closest position to the clicked position\n for i, instance_pos in enumerate(instances_on_canvas):\n # Not minding z axis\n temp_min = np.linalg.norm(\n np.array(event_pos[:2]) - np.array(instance_pos[:2])\n )\n if temp_min < min:\n min = temp_min\n min_pos = i\n\n return instances_on_canvas, min, min_pos\n\ncanvas.show()\n\n\nif __name__ == \"__main__\":\n print(__doc__)\n app.run()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.19"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Binary file not shown.
Binary file modified _downloads/de92a060e241490d2ee4818397bef2ce/colorbar_widget.zip
Binary file not shown.
Binary file modified _downloads/e28102e1eabc304db02724974da9494b/spectrogram.zip
Binary file not shown.
Binary file modified _downloads/e63e8acb6dfeebf0dfe2353ba6d6e3d3/surface_plot.zip
Binary file not shown.
Binary file modified _downloads/e90ad480e28f6c6a69da9f2b4bf1fa35/plot_colorbars.zip
Binary file not shown.
Binary file modified _downloads/eb3dc7e8b1cfdc601e3dfa7b6c0dbac0/marker_picking.zip
Binary file not shown.
Binary file modified _downloads/eb99e0b7d600301220fbc2e40436bf01/sphere.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/f58ef3f0554912872428ad7613413431/flipped_axis.zip
Binary file not shown.
Binary file not shown.
Binary file modified _downloads/fd809e4ab238c2e443b98cb3acf33d86/point_cloud.zip
Binary file not shown.
Binary file modified _downloads/fe7fedf141890117047c986ebf3269a9/gpuimage.zip
Binary file not shown.
Binary file modified _images/sphx_glr_animate_images_001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_animate_images_slice_001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_animate_images_slice_thumb.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_animate_images_thumb.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_animate_shape_001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_animate_shape_thumb.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_axes_plot_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_axes_plot_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_display_lines_001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_display_lines_thumb.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_display_points_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_display_points_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex01_embedded_vispy_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex01_embedded_vispy_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex02_control_vispy_from_qt_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex02_control_vispy_from_qt_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex03a_data_sources_timer_001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex03a_data_sources_timer_thumb.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex03b_data_sources_threaded_loop_001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex03b_data_sources_threaded_loop_thumb.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex03c_data_sources_threaded_events_001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_ex03c_data_sources_threaded_events_thumb.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_geometry_shader_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_geometry_shader_thumb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_gpuimage_001.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified _images/sphx_glr_gpuimage_thumb.gif
Binary file modified _images/sphx_glr_graph_001.gif
Binary file modified _images/sphx_glr_graph_thumb.gif
Binary file added _images/sphx_glr_instanced_mesh_picking_001.png
Binary file added _images/sphx_glr_instanced_mesh_picking_thumb.png
Binary file modified _images/sphx_glr_instanced_mesh_visual_001.png
Binary file modified _images/sphx_glr_instanced_mesh_visual_thumb.png
Binary file modified _images/sphx_glr_isocurve_001.png
Binary file modified _images/sphx_glr_isocurve_thumb.png
Binary file modified _images/sphx_glr_isocurve_updates_001.gif
Binary file modified _images/sphx_glr_isocurve_updates_thumb.gif
Binary file modified _images/sphx_glr_lasso_001.png
Binary file modified _images/sphx_glr_lasso_thumb.png
Binary file modified _images/sphx_glr_line_001.gif
Binary file modified _images/sphx_glr_line_thumb.gif
Binary file modified _images/sphx_glr_line_update_001.gif
Binary file modified _images/sphx_glr_line_update_thumb.gif
Binary file modified _images/sphx_glr_linear_region_001.png
Binary file modified _images/sphx_glr_linear_region_thumb.png
Binary file modified _images/sphx_glr_magnify_001.png
Binary file modified _images/sphx_glr_magnify_thumb.png
Binary file modified _images/sphx_glr_post_processing_001.gif
Binary file modified _images/sphx_glr_post_processing_thumb.gif
Binary file modified _images/sphx_glr_rotate_cube_001.gif
Binary file modified _images/sphx_glr_rotate_cube_thumb.gif
Binary file modified _images/sphx_glr_rotating_quad_001.gif
Binary file modified _images/sphx_glr_rotating_quad_thumb.gif
Binary file modified _images/sphx_glr_start_shaders_001.png
Binary file modified _images/sphx_glr_start_shaders_thumb.png
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/animate_images.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Draw a new array of random image pixels on every draw cycle.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 3.790 seconds)
**Total running time of the script:** (0 minutes 4.155 seconds)


.. _sphx_glr_download_gallery_gloo_animate_images.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/animate_images_slice.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ to give the effect of "morphing" noise.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.580 seconds)
**Total running time of the script:** (0 minutes 0.571 seconds)


.. _sphx_glr_download_gallery_gloo_animate_images_slice.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/animate_shape.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ a Texture2D and VertexBuffer and a timer to control the drawing.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.637 seconds)
**Total running time of the script:** (0 minutes 0.599 seconds)


.. _sphx_glr_download_gallery_gloo_animate_shape.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/colored_cube.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Show a rotating colored cube
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.133 seconds)
**Total running time of the script:** (0 minutes 0.125 seconds)


.. _sphx_glr_download_gallery_gloo_colored_cube.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/colored_cube_instanced.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ Draw many colored cubes using instanced rendering
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.214 seconds)
**Total running time of the script:** (0 minutes 0.195 seconds)


.. _sphx_glr_download_gallery_gloo_colored_cube_instanced.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/colored_quad.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ Create a new drawing using triangle_strip
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.502 seconds)
**Total running time of the script:** (0 minutes 0.475 seconds)


.. _sphx_glr_download_gallery_gloo_colored_quad.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/display_lines.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ that triggers rotation of the lines in 3D space.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.605 seconds)
**Total running time of the script:** (0 minutes 0.597 seconds)


.. _sphx_glr_download_gallery_gloo_display_lines.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/display_points.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Simple example plotting 2D points.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.564 seconds)
**Total running time of the script:** (0 minutes 0.547 seconds)


.. _sphx_glr_download_gallery_gloo_display_points.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/display_shape.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ Simple example demonstrating showing a quad using a gloo Program.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.452 seconds)
**Total running time of the script:** (0 minutes 0.444 seconds)


.. _sphx_glr_download_gallery_gloo_display_shape.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/geometry_shader.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ NOTE: This example is currently not processed in CI.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.456 seconds)
**Total running time of the script:** (0 minutes 0.450 seconds)


.. _sphx_glr_download_gallery_gloo_geometry_shader.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/gl/cube.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ Drawing a rotated 3D cube
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.126 seconds)
**Total running time of the script:** (0 minutes 0.120 seconds)


.. _sphx_glr_download_gallery_gloo_gl_cube.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/gl/fireworks.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ calculated, such that each explostion is unique.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.102 seconds)
**Total running time of the script:** (0 minutes 0.096 seconds)


.. _sphx_glr_download_gallery_gloo_gl_fireworks.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/gl/quad.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ Drawing a simple quad
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.083 seconds)
**Total running time of the script:** (0 minutes 0.080 seconds)


.. _sphx_glr_download_gallery_gloo_gl_quad.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/gl/quad_instanced.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ uses instanced rendering to generate many copies of the same quad.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.077 seconds)
**Total running time of the script:** (0 minutes 0.075 seconds)


.. _sphx_glr_download_gallery_gloo_gl_quad_instanced.py:
Expand Down
10 changes: 5 additions & 5 deletions _sources/gallery/gloo/gl/sg_execution_times.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Computation times
=================
**00:00.387** total execution time for 4 files **from gallery/gloo/gl**:
**00:00.371** total execution time for 4 files **from gallery/gloo/gl**:

.. container::

Expand All @@ -33,14 +33,14 @@ Computation times
- Time
- Mem (MB)
* - :ref:`sphx_glr_gallery_gloo_gl_cube.py` (``cube.py``)
- 00:00.126
- 00:00.120
- 0.0
* - :ref:`sphx_glr_gallery_gloo_gl_fireworks.py` (``fireworks.py``)
- 00:00.102
- 00:00.096
- 0.0
* - :ref:`sphx_glr_gallery_gloo_gl_quad.py` (``quad.py``)
- 00:00.083
- 00:00.080
- 0.0
* - :ref:`sphx_glr_gallery_gloo_gl_quad_instanced.py` (``quad_instanced.py``)
- 00:00.077
- 00:00.075
- 0.0
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/gpuimage.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ Illustrate how to plot a 2D function (an image) y=f(x,y) on the GPU.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.810 seconds)
**Total running time of the script:** (0 minutes 0.781 seconds)


.. _sphx_glr_download_gallery_gloo_gpuimage.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/hello_fbo.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ This example blurs the output image.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.427 seconds)
**Total running time of the script:** (0 minutes 0.422 seconds)


.. _sphx_glr_download_gallery_gloo_hello_fbo.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/lighted_cube.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ Show a rotating cube with lighting
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.259 seconds)
**Total running time of the script:** (0 minutes 0.243 seconds)


.. _sphx_glr_download_gallery_gloo_lighted_cube.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/multi_texture.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ added.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.474 seconds)
**Total running time of the script:** (0 minutes 0.461 seconds)


.. _sphx_glr_download_gallery_gloo_multi_texture.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/outlined_cube.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Show a rotating cube with an outline
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.148 seconds)
**Total running time of the script:** (0 minutes 0.138 seconds)


.. _sphx_glr_download_gallery_gloo_outlined_cube.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/post_processing.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ Show post-processing using a FrameBuffer
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.117 seconds)
**Total running time of the script:** (0 minutes 1.069 seconds)


.. _sphx_glr_download_gallery_gloo_post_processing.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/rotate_cube.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ This example shows how to display 3D objects.
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 1.155 seconds)
**Total running time of the script:** (0 minutes 1.107 seconds)


.. _sphx_glr_download_gallery_gloo_rotate_cube.py:
Expand Down
2 changes: 1 addition & 1 deletion _sources/gallery/gloo/rotating_quad.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ Use a Timer to animate a quad
.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 0.655 seconds)
**Total running time of the script:** (0 minutes 0.630 seconds)


.. _sphx_glr_download_gallery_gloo_rotating_quad.py:
Expand Down
Loading

0 comments on commit 4048b75

Please sign in to comment.