Exemplo n.º 1
0
    def __init__(self, name, pos, mesh, material, lightColor = (1.0, 1.0, 1.0, 1.0)):
        BaseObject.__init__(self, name, pos, mesh, material)

        self.lightColor = np.array(lightColor, dtype=np.float32)

        # log
        logger.info("Create Light : %s", self.name)
Exemplo n.º 2
0
    def __init__(self, name):
        BaseObject.__init__(self, name, (0, 0, 0), None, None)

        # get properties
        self.fov = config.Camera.fov
        self.near = config.Camera.near
        self.far = config.Camera.far
        self.pan_speed = config.Camera.pan_speed
        self.rotation_speed = config.Camera.rotation_speed

        # log
        logger.info("Create Camera : %s", self.name)