Thanks drwr, i was wrong , but the manual is not clearing it with a simple example.
Anyway i found a method to create a skybox with a class of my own that works similar to a cube map but it uses planes instead of a cube.
If someone is interested there it is :
class MySkyBox(object):
# Assuming that the string texPath is of type xxxx_#.xxx where # go from 0 to 6
# and the images are in order left,right,back,front,down,upper faces.
# WARNING : sometimes down and upper faces must be rotated in a way that they
# match the other faces borders.
def __init__(self,texPath,size):
c=NodePath("skybox_center")
s=[]
for i in range(0,6):
tp=texPath.replace("#",str(i))
t=loader.loadTexture(tp)
p=loader.loadModel('models/primitives/plane')
p.setTexture(t,1)
p.reparentTo(c)
p.setScale(size)
s.append(p)
#TODO positioning all planes
#...
os=float(size)/2.0
s[0].setPosHpr(-os,0,0,90,0,0)
s[1].setPosHpr(os,0,0,-90,0,0)
s[2].setPosHpr(0,-os,0,180,0,0)
s[3].setPos(0,os,0)
s[4].setPosHpr(0,0,-os,0,-90,0)
#here upper face require adjusting the roll
s[5].setPosHpr(0,0,os,0,90,-90)
c.setEffect(CompassEffect.make(render))
c.setBin('background', 0)
c.setDepthWrite(False)
self.mainObj=c
self.planes=s
def activate(self):
self.mainObj.reparentTo(camera)