Minimal Panda3D OpenGL ES 2.0 (pandagles2) sample

Hi,

as I’ve learned in IRC Panda 1.8.0 samples are not compatible at all with OpenGL ES 2.0 because OpenGL ES 2.0 doesn’t support fixed function pipeline.

I’m wondering what could be a basic program running on Panda3D’s pandagles2 display.

Would this be ok?

import direct.directbase.DirectStart
base.disableMouse()
camera.setPosHpr((8, -24, 14), (15, -18.5, 0))
panda = loader.loadModel('panda')
panda.reparentTo(render)
run()

I’m asking because I’m getting just a solid red window with display “pandagles2”, while it’s working ok with display “pandagles” and “pandagl”.

Thanks,
Diego

As the great guru rdb said:

So that’s not a valid code without a proper GLSL ES shader.