Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Seamless Cube Maps on OpenGL ES 2.0 using iOS?

Is there an equivalent for

glEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS);

in OpenGL ES2.0 when implementing cubemap samplers? I'm developing a test app on the iPad -- cubemapping a sphere -- and I'm getting seams between each face of the cubemap.

Or if there is no magic glEnable for ES2.0, what is the best way to get rid of the seams?

like image 653
Angus Forbes Avatar asked Jan 24 '26 10:01

Angus Forbes


1 Answers

OpenGL ES does not have the equivalent of desktop GL's ARB_seamless_cube_map functionality.

And no, glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_S/T, GL_CLAMP_TO_EDGE) does not count. Seamless cubemapping means that texels from different faces can be blended together. Clamping to the edge means exactly that: clamping to the edge of a face. What you've done is make the seam less noticeable; it's still there.

like image 195
Nicol Bolas Avatar answered Jan 25 '26 23:01

Nicol Bolas



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!