vedo icon indicating copy to clipboard operation
vedo copied to clipboard

Problem on alpha test

Open GabbyYam opened this issue 1 year ago • 4 comments

I wonder if there's a way to do alpha test when i try to render my mesh with alpha less than 1.0 and volume object whthin a same Plotter, the volume simply always be rendered but mesh didn't Is there any solution for it? thanks

GabbyYam avatar Sep 01 '22 14:09 GabbyYam

dicomScan = load(dicom_path)
face = load(face_path)
tex = load(tex_path)
g = dicomScan.clone().pos(0, 0, 0).alphaGradient(0.8)
f = face.clone().alpha(0.8).pos(250, -150, 280).color('white').rotateX(-90).texture(tex).phong()

plt.show(g, f, viewup="y", bg='white', bg2='black')
plt.interactive().close()

Here is my test code

GabbyYam avatar Sep 01 '22 14:09 GabbyYam

Have you tried settings.useDepthPeeling = True

marcomusy avatar Sep 01 '22 19:09 marcomusy

Have you tried settings.useDepthPeeling = True

Not working tho...

GabbyYam avatar Sep 02 '22 09:09 GabbyYam

Can you post an screenshot of what you observe? What is your OS?

marcomusy avatar Sep 03 '22 11:09 marcomusy