def drawToTexAlpha(self, fbo, width, height, bgTex, alpha, boundPlane, top): fpos = (c_float * 3)() fpos[0] = 0.0 fpos[1] = 0.0 fpos[2] = 0.0 collider.setPosition(fpos) setup_angle_axis=NULL_ROT.get_angle_axis() setup_axis=setup_angle_axis[1].normalized() fpos[0] = setup_axis.x fpos[1] = setup_axis.y fpos[2] = setup_axis.z setAngleAxisRotation(c_float(setup_angle_axis[0]), fpos) wrapper.drawToTex(self.mesh, alpha, fbo, width, height, bgTex, boundPlane, top)
def drawToTexAlpha(self, fbo, width, height, bgTex, alpha, boundPlane, top): fpos = (c_float * 3)() fpos[0] = 0.0 fpos[1] = 0.0 fpos[2] = 0.0 collider.setPosition(fpos) setup_angle_axis = NULL_ROT.get_angle_axis() setup_axis = setup_angle_axis[1].normalized() fpos[0] = setup_axis.x fpos[1] = setup_axis.y fpos[2] = setup_axis.z setAngleAxisRotation(c_float(setup_angle_axis[0]), fpos) wrapper.drawToTex(self.mesh, alpha, fbo, width, height, bgTex, boundPlane, top)
def __init__(self): self.pos=NULL_VEC.copy() self.att=NULL_ROT.copy()
def __init__(self): self.pos = NULL_VEC.copy() self.att = NULL_ROT.copy()