[Bf-committers] new features without release log

Ben Stabler ben at half-dome.net
Mon Dec 18 02:26:34 CET 2006


Hi Theeth,

Those were originally my patches, and I've been meaning to fix them but I've
had very little time and my maths still isn't quite up to scratch...

Some questions about your suggestions:
[1]: Is a pyramid necessary- would taking a vector from the center of the 4
corners of the rectangle have the same effect?
    - How do you know how far to zoom; the pyramid could describe any
position along the vector

I believe a depth test will be necessary at some point here, we have to
assume that the user is zooming towards the first thing they see- but where
do we do the depth test from? Is it from the center point of the rectangle,
or the corners? What if they're zooming towards a sphere (no corners), or a
torus (no center)? Where do we place the center of rotation- on the surface
of the target, or at it's center?

Possibly we could simulate a plane travelling away from the camera and test
for collisions, but would this be efficient?

[2]: The problem here is that I don’t want to hardcode figures for how far
the camera dolly's- at the moment the mouse-wheel zoom is based on a
percentage from the center of rotation, but a dolly wouldn’t have a center-
I think we would have to use another depth test (this would be easier than
[1] because we would just target the cursor position)

But.. what happens if the user dolly's towards empty space?

Also- if we're dollying close in to a surface, and the center of rotation is
miles past the object, what happens then? If the user rotates the view it
will all screw up... Desired behaviour would be that the center of rotation
would attach itself to the surface with the first increment, and further
increments zoom in... I think...

Thanks,
Ben

-----Original Message-----
From: bf-committers-bounces at projects.blender.org
[mailto:bf-committers-bounces at projects.blender.org] On Behalf Of Martin
Poirier
Sent: 18 December 2006 01:05
To: bf-blender developers
Subject: Re: [Bf-committers] new features without release log


--- Jean-Luc Peurière <jlp at nerim.net> wrote:

> SHIFT+B to zoom in to a border

Regarding that, before I forget again, I wrote a reply
in the tracker [1] (before it was committed, IIRC)
regarding how to deal with perspective (in that reply,
I made a reference to the zoom to cursor patch [2]).

If anyone has time to implement those solution, I'm
available to give more explanations on how to do it,
if not, I'll add it to my stack.

[1]:
https://projects.blender.org/tracker/index.php?func=detail&aid=5126&group_id
=9&atid=127

[2]:
https://projects.blender.org/tracker/index.php?func=detail&aid=5129&group_id
=9&atid=127

thanks,
Martin

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
_______________________________________________
Bf-committers mailing list
Bf-committers at projects.blender.org
http://projects.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list