Advertisement

how to zoom a model partly?

Started by May 13, 2004 05:01 AM
1 comment, last by wjw328 20 years, 6 months ago
i''ve create a model with openGL and c++builder ,and i want my program can select any part of the model ,and zoom in or zoom out the selected part.But i don''t know how! would you like to give me some example or give me some advice waiting for your help!
glScalef() will do that Zoom-Trick, but if you want to select a part of a model you''ll have to write code to break the model apart, also take a took at the lesson 32 about picking
Advertisement
Use glulookat, first find the point on the model where the pointer will fall onto (gluunproject iirc), then feed in the start point and the end point (what you just got) to it, then change your field of vision to a lower setting with gluperspective and that should give you the effect you want.


--
Cheers,
--
Cheers,
Darren Clark

This topic is closed to new replies.

Advertisement