View Full Version : Help : enlarge a triangle strip

11-07-2008, 12:59 AM

I have a surface being represented as triangle strip. The surface has certain view (glulookat API). If I want to enlarge the surface/triangle strip, what should I do? glscalef API does not work for me. Not sure it is due to glulookat()

Thanks in advance


11-07-2008, 06:38 AM
Are you sure your matrix mode is set to model view?

11-09-2008, 05:45 PM
Sorry IneQuation.pl, setting to model view does not help. Should I use gluPerspective()?

11-09-2008, 11:57 PM
In my experience, glscalef() on triangle_trip has the same effect as gltranslatef(), e.g. the triangle_trip is moved but is not enlarged. I have seen working example of glscalef() on glutwirecube().

11-10-2008, 01:50 AM
The API used is glscalef(2.0f, 2.0f, 1.0f). Could it be the triangle_strip does not look larger because it is viewed from z-axis? If you have any other ideas, please let me know.