Page MenuHome

viewvectors (returned by view3d_utils.region_2d_to_vector_3d) for persp/ortho views are pointing in opposite directions
Closed, ResolvedPublic

Description

System Information
platform: b'Linux'
renderer:'Mesa DRI Intel(R) Sandybridge Mobile '
vendor:'Intel Open Source Technology Center'

Blender Version
Broken: version 2.71 (sub 6), branch b'master', commit date b'2014-09-19' b'20:25', hash b'31da725', b'Debug'
Worked: never? (not sure)

Short description of error
viewvectors (returned by view3d_utils.region_2d_to_vector_3d) for persp/ortho views are pointing in opposite directions...
(wrong direction in case of ortho imo)
(plus returned vector is not normalized in case of perspective)

  • also attached a little patch that hopefully fixes this (not sure if this break existing scripts though...)

Exact steps for others to reproduce the error
please see attached blend (has lots more information, script and steps to reproduce)

Event Timeline

Philipp Oeser (lichtwerk) raised the priority of this task from to 90.
Philipp Oeser (lichtwerk) updated the task description. (Show Details)
Philipp Oeser (lichtwerk) edited a custom field.

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Resolved.Sep 22 2014, 3:14 AM

Also found perspective vector wasn't normalized.

Fixed rB61baf6e8135d11bc53cbfa45c75f910a99e57971

Yeah, was mentioning that "returned vector is not normalized in case of perspective"...
Thanx for the quick commit!