From 4c8fdec9be6d42d8d94b43bdcf1b0d7ada030a46 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 20 Jun 2020 15:23:23 +0200 Subject: Deprecate MomentsVertexBuffer Not necessary and failed on some systems for some unknown reason. --- channel_3d_gl_interop.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'channel_3d_gl_interop.py') diff --git a/channel_3d_gl_interop.py b/channel_3d_gl_interop.py index 535d595..376276c 100644 --- a/channel_3d_gl_interop.py +++ b/channel_3d_gl_interop.py @@ -17,7 +17,6 @@ from geometry.box import Box from geometry.cylinder import Cylinder from utility.projection import Projection, Rotation -from utility.opengl import MomentsVertexBuffer from utility.mouse import MouseDragMonitor, MouseScrollMonitor lattice_x = 256 @@ -211,11 +210,8 @@ primitives = list(map(lambda material: material[0], filter(lambda material: no lattice.apply_material_map(material_map) lattice.sync_material() -moments_vbo = MomentsVertexBuffer(lattice) - particles = Particles( lattice, - moments_vbo, numpy.mgrid[ 2*lattice.geometry.size_x//100:4*lattice.geometry.size_x//100:particle_count/10000j, lattice.geometry.size_y//16:15*lattice.geometry.size_y//16:100j, @@ -231,7 +227,7 @@ def on_display(): for i in range(0,updates_per_frame): lattice.evolve() - moments_vbo.collect() + lattice.update_moments() for i in range(0,updates_per_frame): particles.update(aging = True) -- cgit v1.2.3