x_ite icon indicating copy to clipboard operation
x_ite copied to clipboard

IndexedFaceSet solid false and alpha

Open Wagyx opened this issue 1 year ago • 1 comments
trafficstars

Hello there, I have developed an OFF file parser and I think I am seeing issues with color alpha in IndexedFaceSet. I am using IndexedFaceSet for the faces, with solid=false, convex=false, colorPerVertex=false. Here is the result that I get when I use a Color node: Capture_rgb Here is the result when I use an ColorRGBA node with an alpha value of 1: Capture_rgba The expected behaviour would be that the pictures be the same. There could also be something that I don't understand about alpha and double sided faces. Let me know what you think. Thank you

Wagyx avatar May 03 '24 18:05 Wagyx

If a ColorRGBA node is used, the Shape node is treated as transparent. Especially if you use more then one Shape, and these shapes are overlapping, it can be possible to get some unexpected results. But you can control the alpha behavior with Appearance.alphaMode and Appearance.alphaCutoff. https://create3000.github.io/x_ite/components/shape/appearance/#sfstring-in-out-alphamode-auto-autoopaquemaskblend

create3000 avatar May 03 '24 20:05 create3000