[x3d-public] Problem with inverted polygons/normals

Michalis Kamburelis michalis.kambi at gmail.com
Wed Nov 8 07:45:47 PST 2017


2017-11-08 16:27 GMT+01:00 Patrick Dähne <pdaehne at gmail.com>:
> As soon as the texture file contains an alpha channel, X3D browsers classify shapes with that texture as transparent shapes. Rendering transparent shapes is difficult. Browsers handle transparent shapes differently. Instant Player and X3DOM write transparent objects to the depth buffer. Most other browser don’t. In this special case, the result of Instant Player and X3DOM looks better than result of other browsers, but that is pure coincidence. None of the browsers is wrong or right.

And view3dscene looks at the texture contents to decide whether to use
alpha testing (which doesn't have problems with ordering) or alpha
blending (which is indeed tricky, but can represent partial
transparency). It can be overridden by "alphaChannel" field,
https://castle-engine.sourceforge.io/x3d_implementation_texturing_extensions.php#section_ext_alpha_channel_detection
.

Regards,
Michalis



More information about the x3d-public mailing list