Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (753)
Games in Android Showcase (228)
games submitted by our members
Games in WIP (842)
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 / JOGL Development / Re: re: gluLookAt oddity on: 2007-07-24 04:54:06
That kinda works - the mushroom patch is now off to the far left of the clipping plane, but I have to invert the row and column variables to get the orientation correct. I can leave the row and variable correct and rotate the whole scene 90 degrees, but still wind up with various objects being translated outside of the game square....
2  Java Game APIs & Engines / JOGL Development / Re: re: gluLookAt oddity on: 2007-07-23 06:37:45
yeah I tried pushing and popping, but it made no difference. The camera is in the right mode too..

Its wierd. I was under the assumption that reloading the identity matrix then translating would move the next object to that location, (irrespective of gluLookAt) and that the gluLookAt affects which objects are within the clipping plane (by providing the origin that the clipping planes are relevant to...) Yet my objects seem to only want to base their location relevant to the camera.
3  Java Game APIs & Engines / JOGL Development / re: gluLookAt oddity on: 2007-07-20 05:22:44
Hi there.

I'm implementing a 3D centipede game (for practice) and I've struck an oddity. I use glLookAt to place the camera at the end of the playing field (keyboard controls haven't been implemented yet), yet when display(GLDrawable draw) is called it treats the camera position as (0,0). The code goes thus:

[size=8pt]public void display(GLAutoDrawable draw) {
      GL gl = draw.getGL();
      GLU glu = new GLU();
      char piece;

      glu.gluLookAt(19.0, 0.0, 100.0, 19.0, 0.0, 0.0, 0.0, 1.0, 0.0);

   //   drawGun(gl);
      for (float i = 0; i < rows ; i++) {
         for (float j = 0 ; j < cols ; j++) {
            piece = pa.get((int)i,(int)j);
            if (piece == Run.MUSHROOM) drawShroom(gl, i, -j);
            else if (piece == Run.HIT_MUSHROOM) drawHit(gl, i, -j);
            else if (piece == Segment.RIGHT || piece == Segment.LEFT) drawSeg(gl, i, -j);
            else if (piece == Run.NAPALM) drawNapalm(gl, i, -j);

where the first call in each draw* method is a call to this:

[size=8pt]   private final void moveToLocation(GL gl, float row, float column) {
      gl.glTranslatef(row, 0, column);

So what I get is a nice, colourful rendering rotated and translated improperly. Is this a gluLookAt problem, or do I have to manually re-translate each object???
4  Java Game APIs & Engines / JOGL Development / Re: How to: Getting started with JOGL on: 2007-07-03 04:40:56
First of all - GREAT tutorial/updates. I've just finished a course on OpenGL for ANSI-C and this changeover is brill...

kfaissal - I'm running a dual-core intel 32bit with Vista and JoGL works fine! Chews up a hellavalot of processing tho' (just for a simple triangle) using jogl-1.1.1-rc1-windows-i586 bins (I'm assuming those are old - although I only downloaded them a few months ago). Make sure you use* tho'. Having said that I've got all the dlls and jars installed in my jre, which I understand may cause clashed for you. Good luck figuring that out!

Pages: [1]
ivj94 (584 views)
2018-03-24 14:47:39

ivj94 (48 views)
2018-03-24 14:46:31

ivj94 (382 views)
2018-03-24 14:43:53

Solater (62 views)
2018-03-17 05:04:08

nelsongames (109 views)
2018-03-05 17:56:34

Gornova (159 views)
2018-03-02 22:15:33

buddyBro (703 views)
2018-02-28 16:59:18

buddyBro (92 views)
2018-02-28 16:45:17

xxMrPHDxx (493 views)
2017-12-31 17:17:51

xxMrPHDxx (733 views)
2017-12-31 17:15:51
Java Gaming Resources
by philfrei
2017-12-05 19:38:37

Java Gaming Resources
by philfrei
2017-12-05 19:37:39

Java Gaming Resources
by philfrei
2017-12-05 19:36:10

Java Gaming Resources
by philfrei
2017-12-05 19:33:10

List of Learning Resources
by elect
2017-03-13 14:05:44

List of Learning Resources
by elect
2017-03-13 14:04:45

SF/X Libraries
by philfrei
2017-03-02 08:45:19

SF/X Libraries
by philfrei
2017-03-02 08:44:05 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!