Question about coordinates
I have a quick question that has to do on how you specify coordinates.
on most of Nehe''s code he uses 1.0f and 2.0 and things like that which take account for large spaces on the screen that they move.
say i wanted to change the 1.0f to maybe equal 5.0f ,
so whenever i do 5.0f, it would cover the same space as the 1.0f.
basically i want bigger coordinates for the screen so i can specify better location without using decimals.
how do i do that.
i know i could use glOrtho() or the 3d function that is like glOrtho(). forgot its name..
how do i do it with gluPerspective()
i hope you can understand what i am trying to say. i am having a hard time getting it out for some reason. sorry..
well thanks .
"What we do in life, echos in eternity" -- Gladiator
Coordinates are relative to your scale, which is generally decided by the distance at which your camera is away from the scene. For example, if you moved the camera back 100 units, something 1 unit wide would appear tiny. It all depends on your perspective.
Is what scale you want guess and check with the perspective. like, you try 100 units back, and if that isnt what you want. you try again. or is there a scale out there in a table or something. if i am being dumb just tell me..
oh.
well.
thanks for the post
oh.
well.
thanks for the post
"What we do in life, echos in eternity" -- Gladiator
I think if you call glScalef(x,y,z) it''ll scale all transformations by those numbers, so if you want 1->5, then call glScalef(0.2,0.2,0.2);
I don''t know if that''s what you want, but it''s worth a shot.
Legends Development Team
I don''t know if that''s what you want, but it''s worth a shot.
Legends Development Team
Legends Development Team
Yes. Just guess and check.
BTW, why don''t you want to use decimals...?
------------
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
"It''s all part of the conspiracy of conspirators conspiring to conspire their own conspiracies..."
BTW, why don''t you want to use decimals...?
------------
MSN: nmaster42@hotmail.com, AIM: LockePick42, ICQ: 74128155
"It''s all part of the conspiracy of conspirators conspiring to conspire their own conspiracies..."
_______________________________________Pixelante Game Studios - Fowl Language
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement