K3D-tools / K3D-jupyter

K3D lets you create 3D plots backed by WebGL with high-level API (surfaces, isosurfaces, voxels, mesh, cloud points, vtk objects, volume renderer, colormaps, etc). The primary aim of K3D-jupyter is to be easy for use as stand alone package like matplotlib, but also to allow interoperation with existing libraries as VTK.
MIT License
917 stars 123 forks source link

Minor grid lines are not visible #393

Closed Davide-sd closed 1 year ago

Davide-sd commented 1 year ago

Description

I've just started using a new machine that comes with an nvidia RTX 3060. It seems like the minor grid lines are not rendered.

Screenshot 2022-12-12 at 23-11-40 Untitled24 - Jupyter Notebook

However, if I lower the opacity of the mesh, then they become visible underneath the mesh:

Screenshot 2022-12-12 at 23-11-24 Untitled24 - Jupyter Notebook

Note that if I take a PNG screenshot, they will be visible.

K3D-1670882998161

I'm wondering if this is a driver related issue, if anyone experienced something similar and eventually how to fix it?

Web console log / python logs

K3D: (UNMASKED_VENDOR_WEBGL) NVIDIA Corporation [Renderer.js:64:12](webpack://k3d/src/providers/threejs/initializers/Renderer.js)
K3D: (UNMASKED_RENDERER_WEBGL) NVIDIA GeForce GTX 980/PCIe/SSE2 [Renderer.js:65:12](webpack://k3d/src/providers/threejs/initializers/Renderer.js)
K3D: (depth bits) 24 [Renderer.js:66:12](webpack://k3d/src/providers/threejs/initializers/Renderer.js)
K3D: (stencil bits) 8 [Renderer.js:67:12](webpack://k3d/src/providers/threejs/initializers/Renderer.js)
K3D: Object type "Mesh" loaded in:  0.287 s [Loader.js:61:32](webpack://k3d/src/core/lib/Loader.js)
artur-trzesiok commented 1 year ago

Hi @Davide-sd

It is hard to understand this issue

image

It's look like kind of...problem with display. Do you use extra bright color profile of something like that? The hint that line under a mesh is visible lead to that guess. Really! Even on your screenshots in github I see the lines. Can you open this issue on different monitor (ex. you mobile phone?)

btw. very pretty mesh with beautiful lighting :)

Davide-sd commented 1 year ago

It's look like kind of...problem with display.

Indeed it was. With the old machine I was using a DVI cable to connect the monitor to the graphic card. With the new one I'm using an HDMI cable. Turns out that the display setting was RGB HDMI PC Range 16-255 rather than 0-255. Now I'm able to see them again.

Thank you very much for helping me! :)