GEOMETRY PROBLEM: Finding a plane to project onto properly to find size

GEOMETRY PROBLEM: Finding a plane to project onto properly to find size

Post by sgoye.. » Sat, 09 Sep 1995 04:00:00



Hi All,

I have a 2D window that shows a 3D OpenGL scene.  I need to be able to
zoom up on sections of this scene by drawing a box around the
requested area.  Problem here is that I can't change the perspective
by moving the camera forward as I need to maintain the view that was
available un-zoomed (ie can't move in front of objects).  So what I
have done is to move my camera and target 3D positions by an offset
calculated from the old target to the center of the zoom box and then
change the field of view so it fits the largest extent in the box.
(Yeah, all in one breath) Problem is that to find the offset (And the
size of the zoom box) I need to project onto a plane which I currently
have at the target position.  If an Object resides in front of this
target then the positions and size are wrong.  So what I really need
to do (And my question finally) is to find the proper position for the
plane on which I project.  Any Ideas??? Or any better way anyone can
think of to implement this functionality??? Anything would be GREATLY
appreciated.   What I have works up to the extent that I've described.

Thanks,

Steve Goyette

 
 
 

GEOMETRY PROBLEM: Finding a plane to project onto properly to find size

Post by Ken Shoema » Sat, 09 Sep 1995 04:00:00


You may be working too hard at zooming. Perhaps it would help to
read the FAQ for this group, which gives a more direct way of
conceptualizing viewing transforms. Your view plane should not
change (if I understand your problem), just your window on that
plane. Anyway, try reading the FAQ; it may get you unstuck.

-- Ken

 
 
 

1. Geometry Problem, Finding proper scale and size on a projected plane

Hi All,

I have a 2D window that shows a 3D OpenGL scene.  I need to be able to
zoom up on sections of this scene by drawing a box around the
requested area.  Problem here is that I can't change the perspective
by moving the camera forward as I need to maintain the view that was
available un-zoomed (ie can't move in front of objects).  So what I
have done is to move my camera and target 3D positions by an offset
calculated from the old target to the center of the zoom box and then
change the field of view so it fits the largest extent in the box.
(Yeah, all in one breath) Problem is that to find the offset (And the
size of the zoom box) I need to project onto a plane which I currently
have at the target position.  If an Object resides in front of this
target then the positions and size are wrong.  So what I really need
to do (And my question finally) is to find the proper position for the
plane on which I project.  Any Ideas??? Or any better way anyone can
think of to implement this functionality??? Anything would be GREATLY
appreciated.   What I have works up to the extent that I've described.

Thanks,

Steve Goyette

2. FS: PowerMac 7500, Miro DC20, Zoom external modem

3. A Computational Geometry Problem: Finding intersecting line segments

4. Getting object aligned with path question

5. How to project a vertex onto a plane ?

6. Relations Max/viz???????????

7. projecting text onto a plane

8. Renderman Companion Light bulb?

9. Project a vertex onto a plane

10. How to project a vertex onto a plane ?

11. How project 3D bounding box onto viewing plane?

12. project onto arbitrary viewing plane?

13. Projecting a point onto a plane???