aboutsummaryrefslogtreecommitdiff
path: root/channel_2d_gl_interop.py
diff options
context:
space:
mode:
authorAdrian Kummerlaender2019-09-06 22:29:05 +0200
committerAdrian Kummerlaender2019-09-06 22:29:05 +0200
commitbf967631c146997d7673798318d94b0a186ec89d (patch)
treeef3721d80ec65561fb2af1e371e9e501e5819765 /channel_2d_gl_interop.py
parent3b2d08e57a272f14c1385ebc458f0c2b431414b9 (diff)
downloadsymlbm_playground-bf967631c146997d7673798318d94b0a186ec89d.tar
symlbm_playground-bf967631c146997d7673798318d94b0a186ec89d.tar.gz
symlbm_playground-bf967631c146997d7673798318d94b0a186ec89d.tar.bz2
symlbm_playground-bf967631c146997d7673798318d94b0a186ec89d.tar.lz
symlbm_playground-bf967631c146997d7673798318d94b0a186ec89d.tar.xz
symlbm_playground-bf967631c146997d7673798318d94b0a186ec89d.tar.zst
symlbm_playground-bf967631c146997d7673798318d94b0a186ec89d.zip
Add a fun little fake bonfire _simulation_
…using appropriately colored aging particles
Diffstat (limited to 'channel_2d_gl_interop.py')
-rw-r--r--channel_2d_gl_interop.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/channel_2d_gl_interop.py b/channel_2d_gl_interop.py
index 3ca623c..377bbd0 100644
--- a/channel_2d_gl_interop.py
+++ b/channel_2d_gl_interop.py
@@ -171,6 +171,7 @@ projection = get_projection()
particles = Particles(
lattice.context,
+ lattice.queue,
lattice.memory.float_type,
numpy.mgrid[
lattice.geometry.size_x//20:2*lattice.geometry.size_x//20:100j,
@@ -184,7 +185,7 @@ def on_display():
lattice.collect_gl_moments()
for i in range(0,updates_per_frame):
- lattice.update_gl_particles(particles)
+ lattice.update_gl_particles(particles, aging = False)
lattice.sync()