mat4.lookAt doesn't work with 'up' keyword argument
Brought to you by:
mbaas
in cgkit1 mat4.lookAt used to work with the 'up'
keyword argument
but with the current release (cgkit-2.0.0alpha4):
>>> from cgkit.cgtypes import *
>>> mat4(1.0).lookAt(vec3(1,2,3), vec3(1,1,0), vec3(0,1,0))
[-1, 0, 0, 1]
[0, 0.948683, -0.316228, 2]
[-0, -0.316228, -0.948683, 3]
[0, 0, 0, 1]
>>> mat4(1.0).lookAt(vec3(1,2,3), vec3(1,1,0), up =
vec3(0,1,0))
Traceback (most recent call last):
File "<stdin>", line 1, in ?
Boost.Python.ArgumentError: Python argument types in
mat4.lookAt(mat4, vec3, vec3)
did not match C++ signature:
lookAt(support3d::mat4<double>*,
support3d::vec3<double>, support3d::vec3<double>)
lookAt(support3d::mat4<double>*,
support3d::vec3<double>, support3d::vec3<double>,
support3d::vec3<double>)
Logged In: YES
user_id=211477
It's fixed now and committed to the cvs repository. It will be
available in the next release.
- Matthias -