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
<[email protected]> 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
> [email protected]
> http://lists.blender.org/mailman/listinfo/bf-committers
>



-- 
- Campbell
_______________________________________________
Bf-committers mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-committers

Reply via email to