Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (601)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (649)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Java Game APIs & Engines / OpenGL Development / Re: Implementing an FPS Camera [solved, thanks irc :D] on: 2012-10-21 14:50:17
I solved it Smiley

The key was that i got my game loop like:

while (running) {
     clear(); // clear the view and such, move the camera

And the Display.sync method was inside the render() method, so clear() was working in a different fps than the rendering.

Thanks all !!
2  Java Game APIs & Engines / OpenGL Development / Re: Implementing an FPS Camera on: 2012-10-21 14:11:12
thanks for replying

What i mean is that it works bad. So if I press "W" to go forward, it does 1 "step" and then stops, after a few seconds, does another one, and such, while what it has to do is walk forward. If u download the source and run it you will see what I mean. It don't works smoothly
3  Java Game APIs & Engines / OpenGL Development / Implementing an FPS Camera [solved, thanks irc :D] on: 2012-10-21 12:23:36
I'm trying to implement Lloyd's FPS camera in my coude but it works very bad, dont know why.
I've tried to put the functions that moves the camera into a while ( loop but works worst when I do it...
I realy dont know what to do here :S. The game isn't laggy, works at 60fps Sad

here is the source code:

the "important" classes are: and FPCameraController. There's actually a "InitGL" method into Screen class and I dont know if has the appropiate settings for this setup.

Well, I hope somebody can help me Cheesy Thanks!
4  Java Game APIs & Engines / OpenGL Development / Having problems to understand OpenGL view method... [solved] on: 2012-10-20 23:04:31

I'm trying to make a 3D game with LWJGL and right now I got the movement basics in 2D (moving a cube upwards when pressing "W" and such...) but now I want to move the camera so I get a nice 3D view. I'm trying to do it with gluLookAt()  but it just don't have any result at all... I've drew the cube at 0,0,0 and I wanted to go a bit far so I can see it completely but gluLookAt does nothing. I don't actually know exactly after what MatrixMode I have to write it, MODELVIEW or PROJECTION? >.<

I'm using this:

GLU.gluLookAt(0.0f, 0.0f, -5.0f,
                 0.0f, 0.0f, 0.0f,
                 0.0f, 1.0f, 0.0f);

I've tried using it after


and after


but no one works. I've actually tried using gluPerspective but I need to change the view's angle so...

I've also tried to use glRotatef(30.0f, 1.0f, 0.0f, 0.0f) and glTranslatef(0.0f, 0.0f, 5.0f) but had 0 effect xD

I need a bit of help here! Help please Smiley

edit: So i searched thru google (i did that before "-.-) and finally find a piece of code that worked well for me:

       GLU.gluLookAt(0, 1, 5,
                     0, 0, 0,
                     0, 1, 0);


And after that put all the cube's code.
5  Game Development / Newbie & Debugging Questions / Re: Any JOGL complete game creation tutorial/guide? on: 2012-10-19 20:29:20
wow x)
thanks for the replies

I got some mindf**ks trying to port JOGL 1 to JOGL2 so porting LWJGL to JOGL2 .______. ...
I'll give it a try but, someone has JOGL2 ones? Tongue
6  Game Development / Newbie & Debugging Questions / Any JOGL complete game creation tutorial/guide? on: 2012-10-19 14:41:29
Hi! I'm starting with JOGL and I've seen multiple tutorials about geometry and thouse with JOGL and now I need some tutorial or guide about the creation of a complete (simple) game.
I've search it but I can't find it so... someone knows about some webpage with tutorials like that or some ebooks?

Pages: [1]
Riven (23 views)
2015-07-27 16:38:00

Riven (13 views)
2015-07-27 15:35:20

Riven (18 views)
2015-07-27 12:26:13

Riven (8 views)
2015-07-27 12:23:39

BurntPizza (24 views)
2015-07-25 00:14:37

BurntPizza (36 views)
2015-07-24 22:06:39

BurntPizza (20 views)
2015-07-24 06:06:53

NoxInc (23 views)
2015-07-22 22:16:53

NoxInc (14 views)
2015-07-22 22:13:39

Jesse (36 views)
2015-07-22 03:10:36
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21 is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!