PDA

View Full Version : Help : enlarge a triangle strip



oumind
11-07-2008, 01:59 AM
Hi,

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

Cheers

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

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

oumind
11-10-2008, 12:57 AM
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().

oumind
11-10-2008, 02: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.