Joined

·
642 Posts

I start to code some "initial" examples, and fine I can plote the Cube (turn it) change color, draw a triangle....

However I can't compreehend the Coordinates Unit* used by OpenGL (I know what and why the X, Y and Z are[I guess]).

For example:

I wanna plot 10 squares [][][][][][][][][][] .

begin(GL_QUADS);

vertex3f(x,y,z);

vertex3f(x,y,z);

vertex3f(x,y,z);

vertex3f(x,y,z);

end();

If I use the x= 1,2,3,4 and so... the space is very huge! So I need to divide this numbers... x = 0.012,0.013,0.014...

There is a way to use the 1,2,3,4 coordinates but with visible near.

(it has something with resolution? I mean the points stay way one each other?)

*: when I said Unit I would like to express the size on the screen.

ps: I think I've made more mesh in my explanation, anyway I can try explain it in another way.

Thanks in advance.