PDA

View Full Version : scaling & translating outline fonts



mithun_daa
11-21-2003, 07:10 AM
i have searched a lot for some help on this topic and even posted on the beginers forum, but with no results. i am trying to translate and scale my fonts. i have a hugeee viewvolume, so i am scaling my fonts by 500. now i have 2 problems
1. when i do the following :

glPushMatrix
glRotatef 90, 1, 0, 0
glTranslated -dblActualXMin + dblXMin, -dblActualYMin + dblYMin, dblZMin + (dblZMax - dblZMin) / 2


For intI = 0 To 10
dblXpoints = dblScaleX * intI
dblYpoints = dblScaleY * intI
dblZpoints = dblScaleZ * intI
glTranslated dblActualXMin + dblXpoints, dblActualYMin, -dblZMin
glScalef 500#, 500#, 1
glPrint "*"

Next intI
glPopMatrix

i get an overflow message. im sure its the matrix thatz getting overflowed.
my second problem is

when i try the following :

glPushMatrix
glRotatef 90, 1, 0, 0
glScalef 500#, 500#, 1
'translating to the origin
glTranslated -dblActualXMin + dblXMin, -dblActualYMin + dblYMin, dblZMin + (dblZMax - dblZMin) / 2
For intI = 0 To 10
dblXpoints = dblScaleX * intI
dblYpoints = dblScaleY * intI
dblZpoints = dblScaleZ * intI
glTranslated dblActualXMin + dblXpoints, dblActualYMin, -dblZMin
glPrint "*"
Next intI
glPopMatrix

the fonts are not visible. any help will be greatly appreciated.
thank u.