def drawRotatedToTexAlpha(self, bot, angle_quat, centre_mesh, fbo, width, height, bg, alpha, boundPlane, top): rot = angle_quat mid = (c_float * 3)() wrapper.getMid(centre_mesh, mid) wrapper.setupRotation(NULL_VEC.x, NULL_VEC.y, NULL_VEC.z, rot.x, rot.y, rot.z, mid[0], mid[1], mid[2], mid[0], mid[1], mid[2]) wrapper.drawToTex(self.mesh, alpha, fbo, width, height, bg, boundPlane, top)
def drawRotatedToTexAlpha(self, bot, angle_quat, centre_mesh, fbo, width, height, bg, alpha, boundPlane, top): rot=angle_quat mid = (c_float * 3)() wrapper.getMid(centre_mesh, mid) wrapper.setupRotation( NULL_VEC.x, NULL_VEC.y, NULL_VEC.z, rot.x, rot.y, rot.z, mid[0], mid[1], mid[2], mid[0], mid[1], mid[2] ) wrapper.drawToTex(self.mesh, alpha, fbo, width, height, bg, 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 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)