LWJGL
May 22, 2012, 14:52:27 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: [TUT] First Person Camera Control  (Read 2796 times)
Lloydg
Newbie
*
Posts: 4


« on: June 16, 2010, 04:01:33 »

Hi, new here but i just wrote this Tutorial using this fantastic Java game library Smiley

So I thought i should sign up here and share it with y'all.

Should be more to come but this is my first tutorial, so it probs has lots of typos and such.

please let me know what you think of it and any questions and comments are welcome.

and any pointers on writing tutorials would be nice.

Anyway here is the link. http://www.lloydgoodall.com/lwjgl-fpcamera.shtml

Thanks, Lloyd
Logged
Evil-Devil
Prolific Timewaster
****
Posts: 268



WWW
« Reply #1 on: July 02, 2010, 05:10:26 »

Hi Lloydg,

I added your tutorial in the wiki tutorial section: http://lwjgl.org/wiki/doku.php/lwjgl/tutorials/index#tutorials_by_the_community
Logged
Lloydg
Newbie
*
Posts: 4


« Reply #2 on: July 04, 2010, 02:22:09 »

Thanks mate
Logged
Brett
Newbie
*
Posts: 1


« Reply #3 on: July 30, 2010, 18:25:03 »

Awfully similar to the implementation I came across in a decompilation of a game-demo found here http://lwjgl.org/forum/index.php/topic,3111.msg17155.html#msg17155 ... which was created many months before your tutorial. Actually, the code is almost identical except for the refactoring of a few monikers. Care to explain?
Logged
Klinenator
Newbie
*
Posts: 17


« Reply #4 on: October 30, 2010, 09:35:34 »

Im trying to use this code and when i press W,S,A,D it doesnt move at all. The mouse part works fine

it looks like its getting caught up here

time = Sys.getTime();
dt = (time - lastTime)/1000.0f;
lastTime = time;

dt is always 0 for me and time is always 1.2884565E12

since the distance is calculated as movementspeed*dt its always going to return 0;
and not move at all.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!