Does anyone know if it is possible to render a gl_Texture_Cube_Map onto the inside of a cube to create a 360 degree environment
Indeed, it is possible. A gl_Texture_Cube_Map has six textures that must be mapped, each representing a face of the cube.
Code:gl.glBindTexture(GL.GL_TEXTURE_CUBE_MAP_POSITIVE_X, envRightTex); gl.glBindTexture(GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_X, envLeftTex); gl.glBindTexture(GL.GL_TEXTURE_CUBE_MAP_POSITIVE_Y, envTopTex); gl.glBindTexture(GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, envBottomTex); gl.glBindTexture(GL.GL_TEXTURE_CUBE_MAP_POSITIVE_Z, envFrontTex); gl.glBindTexture(GL.GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, envBackTex); gl.glEnable(GL.GL_TEXTURE_CUBE_MAP);
█ ETShost .com - Exceeding Innovation
█ Dedicated Servers • VPS • Web Hosting
█24/7 Support | 1-866-259-2934
I understand that part, My application has the cubemap loaded,
but , how do i render the different faces onto the cube
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks