Пример #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)
Пример #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)
Пример #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) 
Пример #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)
Пример #5
0
 def init(self, model, body, props):
     Generic.__init__(self, model, body, props)
Пример #6
0
 def init(self,model,body,props):
 	Generic.__init__(self,model,body,props)