Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
MikePembo951
Posts: 107
Registered: ‎02-15-2012
My Device: Blackberry Playbook 32GB
My Carrier: Virgin Mobile

Opengl

Hi, am really stuggling to get OpenGLES 1.1 depth buffer working.

Depthtest IS enabled and depthfunc is GL_LESS. 

 

The model is just a simple test 'gun' exported from Blender to OBJ wavefront, I then import it using a custom wavefront parse i wrote a few weeks back, (which DOES work fine). 

 

Example images:

http://postimage.org/image/uhfb35929/

http://postimage.org/image/j57rih6ox/

http://postimage.org/image/8wfacnin5/

http://postimage.org/image/6gdgyt0kh/

http://postimage.org/image/ezwuwk8wx/

 

The last image shows the depth problem the clearest

 

It seems to work for faces that are completely covered but not those that are partially covered.

 

Any help would be greatly appriciated,

thanks,

Owen Michael Pemberton

Please use plain text.