Almar Klein

Results 1569 comments of Almar Klein

> You should not write into a buffer mapping without the WRITE bit set. What about when using `mapped_at_creation=True`, it looks like the WRITE bit is not required in that...

> It seems that today is one of those days where I should have slept more and not engaged with the outside world because my output's full of nonsense. 😆...

Are you interested in the vector, in world space, that points down the screen (in z)? In that case you could do something like: ```py ndc = la.vec_transform(world_pos, camera.camera_matrix) ndc1...

> Morph targets are meaningful for Line and Point objects as well. Essentially, they record the 'vertex attribute transformation methods,' enabling vertex attribute deformation animations even for Line and Point...

I had another look (sorry it took so long). The only thing standing in the way of a merge (IMO) is the geometry API. The API of the geometry object...

> The CI failed due to the introduction of the imgui_bundle library. Should we add imgui_bundle to the dependencies, or simply set sphinx_gallery_pygfx_test = 'off' to disable testing for this...

This works (tested briefly) ```py import numpy as np from pygfx.cameras._perspective import fov_distance_factor extent = 0.5 * (camera.width + camera.height) distance = extent * fov_distance_factor(camera.fov) looking_at = camera.world.position + camera.world.forward...

> I think the API expectation is to update camera.world.position (or local) and call camera.look_at This kinda works ... ```py import numpy as np camera = disp.camera i = np.argmax(np.abs(camera.world.forward))...

> @almarklein are RGB volumes supported? Is it even a thing? Yes, looks like it is; it uses the same logic (in the shader) as the image. I have never...

I think basing the default on what is in the plot may be confusing. E.g. what if you initially have only lines, but add an image later? It's already quite...