Hi,
I just installed vpython on Manjaro Linux and I am using firefox.
The standard example shows nothing:
echo 'from vpython import *; sphere()' | python
I found that this is because the default opacity == 1, while that opacity does not work,
it causes the objects to come out black.
Please compare:
echo 'from vpython import *;sphere(opacity=0.8); cylinder(opacity=0.9999)' | python
echo 'from vpython import *;sphere(opacity=0.8); cylinder(opacity=1)' | python
echo 'from vpython import *;sphere(opacity=0.8); cylinder(opacity=0)' | python
The first works as expected, showing the white cylinder and half of the white sphere, transparent, so looking gray, as the background is black.
The second should look the same, but actually does not show the cylinder, allthough it hides half of the sphere, as expected, but with black.
The third does almost what is expected, not showing the cylinder, but showing an ugly, ragged edge on the sphere. But maybe that is normal, due to rounding errors ...
Environment:
Manjaro Linux, upto date
Python version is 3.11.8.
vpython version is 7.6.5
I installed vpython as a user, with pipx
Then I set:
PATH=$HOME/.local/share/pipx/shared/bin:$PATH
export PYTHONPATH=$HOME/.local/share/pipx/shared/lib/python3.11/site-packages/
I also get this warning:
'ATTENTION: default value of option mesa_glthread overridden by environment.'
Which also shows that I am running mesa here, which might not be sophisticated enough for vpython. However, I noticed no other problems (but we do no fancy graphical stuff, besides vpython).
Best Regards and many thanks for vpython,
Rita Bylsma