I have tiny triangle. It’s vertix coordinates are(0,0,0), (1E-20,0,0), (0,1E-20,0).
I use
Scale3f(1E+20, 1E+20, 1E+20),
and draw my triangle with
glBegin(GL_TRIANGLES);
glVertex3f(0,0,0);
glVertex3f(1E-20,0,0);
glVertex3f(0,1E-20,0);
glEnd();
so that my triangle has (0,0,0), (1,0,0), (0,1,0) eye coordinates.
Triangle is drawed ok, then the light is off, but then the light is turned on, ‘floating point overwlow’ error occurs after
glBegin(GL_TRIANGLES) call.
My question is what are actual OpenGL restrictions on scale factor passed to glScalef function?
Is there any other solution for me, other than resizing of my triangle before passing it to OpenGL?