Exemplo n.º 1
0
 def init(self, model, props):
     Generic.__init__(self, model, props)
     model.clearModelNodes()
     model.setPos(props['pos'])
     model.setQuat(props['quat'])
     model.setScale(props['scale'])
     model.flattenLight()
     model.reparentTo(self.parent)
Exemplo n.º 2
0
    def init(self,model,props):
		Generic.__init__(self,model,props)
		model.clearModelNodes()
		model.setPos(props['pos'])
		model.setQuat(props['quat'])
		model.setScale(props['scale'])
		model.flattenLight()
		model.reparentTo(self.parent)
Exemplo n.º 3
0
	def init(self,model,body,props):
		Generic.__init__(self,model,body,props)

		#myMaterial = Material()		
		#myMaterial.setAmbient(VBase4(0,0,1,1))
		#myMaterial.setDiffuse(VBase4(1,0,0,1))
		#myMaterial.setShininess(5.0)
		#myMaterial.setSpecular(VBase4(0,0,0,1))
		#myMaterial.setEmission(VBase4(0,1,0,1))
		#print myMaterial.getDiffuse(), myMaterial.getSpecular(), myMaterial.getEmission()
		#model.setMaterial(myMaterial) 
Exemplo n.º 4
0
    def init(self, model, body, props):
        Generic.__init__(self, model, body, props)

        #myMaterial = Material()
        #myMaterial.setAmbient(VBase4(0,0,1,1))
        #myMaterial.setDiffuse(VBase4(1,0,0,1))
        #myMaterial.setShininess(5.0)
        #myMaterial.setSpecular(VBase4(0,0,0,1))
        #myMaterial.setEmission(VBase4(0,1,0,1))
        #print myMaterial.getDiffuse(), myMaterial.getSpecular(), myMaterial.getEmission()
        #model.setMaterial(myMaterial)
Exemplo n.º 5
0
 def init(self, model, body, props):
     Generic.__init__(self, model, body, props)
Exemplo n.º 6
0
 def init(self,model,body,props):
 	Generic.__init__(self,model,body,props)