简体   繁体   中英

OpenGL ES Drawing Transparent Artifacts

I am attempting to draw an OBJ file to the screen in an iOS app using this library. The OBJ file is supposed to be a solid 3D model of teeth, as shown below, but when rendered in the iOS app, it shows up very grainy, and transparent, as shown in this image . How can I draw the surface a uniform, opaque color?

I am using a solid-white image file as the texture, and have not otherwise modified the default settings.

实体3D模型,正确显示

All help is greatly appreciated.

"Grainy" just looks like you are rendering multiple layers of triangles with blending enabled, and some triangles are being dropped for some reason so those areas are lighter than their neighbours.

Hard to tell why without looking at the model (could be the facing test, or the depth test with very out-of-order triangle streams). In general try disabling the facing test, enabling the depth test, and disabling blending

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM