[Bf-committers] Knife tool and perspective mode -- incorrect results

Martin Poirier theeth at yahoo.com
Sun Nov 7 23:28:30 CET 2004


You could use the function:
void window_to_3d(float *vec, short mx, short my)
>From view.c. The include file is "BSE_view.h".

Martin

--- "Matthew H. Plough" <mplough at Princeton.EDU> wrote:

> Matthew H. Plough wrote:
> 
> > <snip>I am currently working on fixing
> seg_intersect to make this work 
> > properly. <snip>
> 
> I have written intersection code that does not use
> screen coordinates, 
> but I am having trouble transforming screen
> coordinates to certain scene 
> coordinates.
> 
> Essentially, I need to transform the screen
> coordinates of mouse clicks 
> to scene coordinates on the image plane in
> perspective mode.  For a 
> camera view, this corresponds to coordinates within
> the rectangle on the 
> front of the camera with the arrow pointing up. 
> Does anyone know how to 
> do this?  I spent quite a bit of time perusing code
> and algorithms in 
> books, and did not find anything.
> 
> Once I get this working, the knife tool will
> function correctly in 
> perspective modes.  If possible, I would like this
> to be in the 2.36 
> release; it's a little late for 2.35. 
> 
> Fixing http://www.neeneenee.de/blender/features/#10
> will be much more 
> involved. 
> 
> I would greatly appreciate the help. 
> 
> Matt
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
>
http://projects.blender.org/mailman/listinfo/bf-committers
> 



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 



More information about the Bf-committers mailing list