예제 #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)