(re-) activating slices of 3d-volume WEBGL

206 Views Asked by At

when i try to switch between the directions (x,y,z), i get an uncommon result. when i reactivate the layer(s) of a direction which has been set to visible = false before (1), it looks like this if i change the visiblity to true (2). this example relies on xtk lesson #10 [sorry for the low jpg-quality]

thanks in advance

(1)

1

(2)

2

EDIT: i try to show/activate only one direction and go through the layers by pressing +/-.

unfortunately "avf.nrrd" is missing at the moment.

i know how to do this with all 3 layers activated. it works perfectly and i can go through the slices and change the axis on keydown. but now i would like to do the same but this time i want to deactivate the 2 axis which are not selected

EDIT2: alright i got it all working. the only problem was to position the line modified() to the right line.

fiddle

0

There are 0 best solutions below