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

Matthew H. Plough mplough at Princeton.EDU
Sun Nov 7 21:52:34 CET 2004


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


More information about the Bf-committers mailing list