#5 mat4.lookAt doesn't work with 'up' keyword argument

closed
nobody
None
5
2005-08-17
2005-08-17
No

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>)

Discussion

  • Matthias Baas

    Matthias Baas - 2005-08-17
    • status: open --> closed
     
  • Matthias Baas

    Matthias Baas - 2005-08-17

    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 -

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks