Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
gempy-project

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ubuntu -windows 3D#1045

MarinCronograph started this conversation inGeneral
Jul 21, 2025· 3 comments· 1 reply
Discussion options

Hi,

I have tried to run simple code on Ubuntu (VMware® Workstation 17 Pro, 17.6.3 build) Miniconda Spyder and Anaconda Spyder on Windows , what should be a very similar setup for running gempy , below, but when i try to print out 3D on Ubuntu there seem to be 3D rendering problmes

FOR COMPARISON :

Windows :

Python version : 3.12.7
Platform : Windows 10
Architecture : AMD64

Spyder Version Check:
Spyder version : 6.0.1

GemPy Version & Engine Info:
GemPy version : 2024.2.0.2
GemPy engine version: 2024.2.0

GemPy Model & Engine Backend:
Setting Backend To: AvailableBackends.numpy
Chunking done: 7 chunks
GemPy Model created successfully.

Ubuntu:

%runcell -i 0 /home/marin/geomodeling/untitled0.py

Python version : 3.11.13
Platform : Linux 6.8.0-64-generic
Architecture : x86_64

Spyder Version Check:
Spyder version : 6.0.7

GemPy Version & Engine Info:
Setting Backend To: AvailableBackends.numpy
GemPy version : 2024.2.0.2
GemPy engine version: 2024.2.0

On ubuntu seems there is an issue with 3d rendering

this works on windows

gpv.plot_3d(geo_model, image=False, plotter_type='basic', show_points=False, show_orientations=False)

In addition, I have tried on ubuntu :

from gempy_viewer import plot_2d (plot_2d actually works )

from gempy_viewer import plot_3dn (plot_3d doesn't work)

I got errors under (3d rendering)

  1. OpenGL context creation failed:

pgsql
CopyEdit
Cannot create GLX context.
Failed to initialize OpenGL functions!

  1. Mesa drivers not found:

lua
CopyEdit
libGL error: MESA-LOADER: failed to open vmwgfx
libGL error: failed to load driver: swrast

3.VTK and PyVista rendering failed:V

vbnet
CopyEdit
vtkOpenGLRenderWindow: Unable to find a valid OpenGL 3.2 or later implementation.

Kernel crashed during plot_3d():

  1. scss
    CopyEdit
    Segmentation fault in pyvista.plotting.plotter.render()

Question:

Is there a way to make 3d geomodel rendering/visualization ?

rgds

Marin Mirosevic

You must be logged in to vote

Replies: 3 comments 1 reply

Comment options

Hi@MarinCronograph,
first of all I am very sorry for the late answer - I hope this is still relevant.

I am not an ubuntu user/expert so I might not be able to help much- It looks like their is a driver issue, specifically with the Mesa 3D graphics drivers that are required for VTK/Pyvista. Maybe Google can help to set this up properly?

Can you do static 3D plots or is the whole thing not working. And can you try plotting something unrelated to gempy with pyvista (e.g. from their examples) to check if the error persists?

Cheers,
Jan

You must be logged in to vote
0 replies
Comment options

Hi@javoha,

Thanks for your answer

I am trying another way now and it seems it works so I will update you further if that's ok .

rgds

Marin Mirosevic

You must be logged in to vote
1 reply
@javoha
Comment options

Happy to hear that it works now!
If you found a good solution/workaround for the problem please share it here for everyone else.
Cheers,
Jan

Comment options

@javoha I will update you , now exploring other things. But shall come to that for sure .

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
General
Labels
None yet
2 participants
@MarinCronograph@javoha

[8]ページ先頭

©2009-2025 Movatter.jp