[Bf-committers] 2D coordinator to 3D coordinator

Campbell Barton ideasman42 at gmail.com
Thu May 12 08:38:45 CEST 2011


Committed a new module r36631 to deal with this.

* region_2d_to_vector_3d: 2d -> 3d direction, mostly useful in perspective view.
* region_2d_to_location_3d: 2d -> 3d location, using a reference
vector to set the depth.
* location_3d_to_region_2d: 3d location -> 2d.

https://svn.blender.org/svnroot/bf-blender/trunk/blender/release/scripts/modules/view3d_utils.py

will run in 2.57 release too.

On Fri, May 6, 2011 at 10:12 AM, dai longquan
<info.dailongquan at gmail.com> wrote:
> Hello everyone! I am working on adding small plugin to blender using
> python.
>
> I meet a problem how to translate 2D screen coordinate to 3D coordinate ?
>
> Thank you  reply in advance!
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell


More information about the Bf-committers mailing list