|
Camera
Nov 7, 2009 2:07:01 GMT -5
Post by aphoticgenesis on Nov 7, 2009 2:07:01 GMT -5
When making a game remember to use gluLookAt() with the correct vector calulations preferably SVector3(structure) containing x, y, z, usually some other functions, you should use this because it only changes the camera, the old style of camera most people have done on this forum was glRotatef() and glTranslatef( )which is very slow because your rotating all of your data and moving all of your data. So if you want a higher framerate and better performance make a professional camera using gluLookAt() with the correct vector calculations. Also i might post a tutorial for anyone is confused about what i said, i might also make a plugin which does all of the camera calculations for you.
|
|
|
Camera
Nov 7, 2009 13:31:37 GMT -5
Post by matthew on Nov 7, 2009 13:31:37 GMT -5
I've noticed that a lot of the OpenGL programs written in C or C++ usually use the gluLookAt() command too, so you're probably right, it is more efficient.
|
|
|
Camera
Nov 7, 2009 14:32:41 GMT -5
Post by DJLinux on Nov 7, 2009 14:32:41 GMT -5
yes you are right
with glMultMatrixF() you can move/scale/rotate your 3D objects in worldspace and before this you can move/rotate your observer/camera with gluLookAt()
Joshy
|
|
|
Camera
Nov 8, 2009 11:10:49 GMT -5
Post by Darkjester on Nov 8, 2009 11:10:49 GMT -5
im going to say that is about half-right, my understand of glulookat() is that it sets the intitial view of the camera then you use transformations just like usual, as glulookat() doesnt contain anyway to rotate the camera, you also use gluperspective to finish the camera off -darkjester
|
|
|
Camera
Nov 10, 2009 10:18:20 GMT -5
Post by aphoticgenesis on Nov 10, 2009 10:18:20 GMT -5
it doesent matter if im right or wrong, ive tryed more than one method and gluLookAt() comes out on top(more effecient)
|
|
|
Camera
Jan 17, 2010 22:02:02 GMT -5
Post by simbol on Jan 17, 2010 22:02:02 GMT -5
Where i can find your tutorial post? or the plugin? i been searchin througt the forum and don´t find anything
|
|
|
Camera
Jan 17, 2010 23:46:34 GMT -5
Post by Darkjester on Jan 17, 2010 23:46:34 GMT -5
Where i can find your tutorial post? or the plugin? i been searchin througt the forum and don´t find anything to what are you referring?
|
|
|
Camera
Jan 18, 2010 6:12:25 GMT -5
Post by aphoticgenesis on Jan 18, 2010 6:12:25 GMT -5
I haven't gotten a chance to make either a a tutorial or plugin. Ive been quite busy with other things.
|
|