ipyvolume icon indicating copy to clipboard operation
ipyvolume copied to clipboard

stereo view transparency and fullscreen

Open lbignone opened this issue 6 years ago • 3 comments

When activating the stereo mode and switching to fullscreen the right frame presents strange behavior.

For example, an empty plot results in a completely black right frame

import ipyvolume as ipv

ipv.figure(stereo=True)
ipv.show()

screenshot from 2018-09-27 16-07-55

Also, taking a screenshot using the GUI results in a transparent background for the right frame

selection_072

A few more examples with a volume rendering:

import ipyvolume as ipv

ipv.figure(stereo=True)

aqa2 = ipv.datasets.aquariusA2.fetch()

ipv.volshow(aqa2.data.T, level=[0.1, 0.5, 0.9], opacity=[0.01, 0.03, 0.03])
ipv.show()

screenshot from 2018-09-27 16-12-20

selection_073

The issue also affects the movie() method, the behavior is the same as the fullscreen one, a completely black background for the right frame.

Not sure if it is related, but I have also noticed that the right frame does not respect the selection of a different style. This behavior, unlike the previous ones, appears also in the notebook display

import ipyvolume as ipv

ipv.figure(stereo=True)
ipv.style.use('dark')

aqa2 = ipv.datasets.aquariusA2.fetch()

ipv.volshow(aqa2.data.T, level=[0.1, 0.5, 0.9], opacity=[0.01, 0.03, 0.03])
ipv.show()

selection_074

My best guess is that there are rendering options that are not being properly set equally for both frames in certain cases.

Tested Using ipyvolume 0.5.1. Python 3.5.2 IPython 6.3.1 notebook server is: 5.4.1 Firefox 62.0

`

lbignone avatar Sep 27 '18 19:09 lbignone

Thanks for the detailed report, will look at it soon!

maartenbreddels avatar Oct 01 '18 07:10 maartenbreddels

This bug is still present on with firefox 65 on android with an exported html (done with ipv 0.5.1)

jere19 avatar Feb 28 '19 13:02 jere19

bump

spigelli avatar Apr 10 '21 04:04 spigelli