Question about render-to-texture-array

What do you mean by “it doesn’t work”, exactly? What is the result you are seeing, and what is the result you are expecting?

Please note that RTM_bind_layered requires you to use a shader to indicate which cube map face to render into. To render the same scene into N images, you can use nodepath.set_instance_count(N) to render that many instances, and write the value of gl_InstanceID into gl_Layer using a geometry shader to indicate which layer to render into.

Please note that you need a geometry shader to use RTM_bind_layered meaningfully unless you use the GL_AMD_vertex_shader_layer extension, which allows you to write to it in a vertex shader. (This extension is also supported on NVIDIA GeForce 900 and 1000 series hardware.)

If you instead want Panda to handle the rendering to the individual cube map faces rather than a shader, you can just bind it regularly using RTM_bind_or_copy, and then create one DisplayRegion per cube map face, and call dr.setTargetTexPage(n) to indicate which layer of the texture array that the associated camera renders into.