Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
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 / text on: 2006-04-14 20:51:20
Hi I wonder how I can make text in 2D in may 3D game so that I can put in stuff like fps so that I can see it at all time...thx!
2  Java Game APIs & Engines / JOGL Development / Change resolution? on: 2006-04-14 08:09:48
Hi, I have 1280x1024 most of the time, but when I run my game I want to
change it to 800x600 and I wonder how you can do that in java/jogl.

thx
3  Java Game APIs & Engines / JOGL Development / Re: Vertex position? on: 2006-04-08 17:15:52
Is there anybody who knows this or can it be done?

or do you haveto rotate the vertex yourself to be able to get the new positions of your vetexes after a rotation?
4  Java Game APIs & Engines / JOGL Development / Vertex position? on: 2006-04-07 15:09:09
Hello, I have a problem when it comes to collision detection and other stuff. The problem is that I don't know where my vertexes of my objects is...

example:
I place an object with center in origo with vertexes around origo....then I use opengl glRotated and rotates my object...now how do I know the new positions of my vertexes in my object? without shaders?

thx.
5  Java Game APIs & Engines / JOGL Development / lighting materials? on: 2006-03-29 15:35:30
I set these lightvalues...and then o draw a sphere...I wonder why my shere is blue and not red?

private float[] lightDiffuse = {0.7f, 0.7f, 0.7f, 1f};
private float[] lightAmbient = {1f, 1f, 1f, 1f};
private float[] lightPosition = {50f, 50f, 50f, 1f};

gl.glLightfv(GL.GL_LIGHT0, GL.GL_DIFFUSE, lightDiffuse, 0);
gl.glLightfv(GL.GL_LIGHT0, GL.GL_AMBIENT, lightAmbient, 0);
gl.glLightfv(GL.GL_LIGHT0, GL.GL_POSITION, lightPosition, 0);
gl.glEnable(GL.GL_LIGHT0);
gl.glEnable(GL.GL_LIGHTING);

private float[] matDiffCol = { 1f, 1f, 1f, 1f };
private float[] matAmbCol = {1f, 0f, 0f, 1f};   <---- blue? why not red?

gl.glMaterialfv(GL.GL_FRONT, GL.GL_AMBIENT, matAmbCol, 1);
gl.glMaterialfv(GL.GL_FRONT, GL.GL_DIFFUSE, matDiffCol, 1);

is there anything wrong with this code?

thx
6  Java Game APIs & Engines / JOGL Development / Re: FRONT BACK on: 2006-03-26 16:33:00
yes, but if I don't difine a normal it is the same way!
7  Java Game APIs & Engines / JOGL Development / FRONT BACK on: 2006-03-26 15:21:54
I now have a plane that is red, and I have lights on it. One sid is red and the otherone is dark, front and back.

The thing is...it doesn't change when I change from counterclockwise to clockwise, the front is still red....

shouldn't clockwise vertex placment make the back face the viewer?
8  Java Game APIs & Engines / JOGL Development / lighting material back front on: 2006-03-26 12:50:06
Hello, I have a problem with back and front of my polygons. When I set the GL_FRONT on my polygon with color red and I rotate, both sides are red.

and when I set GL_BACK none of the sides is red.

I need this to be able to check how to face the polygons right...or I know how to do it but I cant see any difference at this point becouse of the problem with front and back.

It should be just to set glNormal3f  to a direction and that will be fron, right?

plz help=) thx!


9  Java Game APIs & Engines / JOGL Development / Re: Pixel/vertex shaders? on: 2006-03-22 08:21:24
Method "glUseProgramObjectARB" not available

I get this message when running the lesson for shaders...does that mean that jogl doesn't support it?

Or is there a way to get it?
10  Java Game APIs & Engines / JOGL Development / Pixel/vertex shaders? on: 2006-03-21 22:56:49
Is ther any support for vertex and pixel shaders in jogl and if how do I work with them there?

thx
11  Java Game APIs & Engines / JOGL Development / Re: FSAA on: 2006-03-17 08:24:52
it does not!
12  Java Game APIs & Engines / JOGL Development / Re: FSAA on: 2006-03-16 22:28:55
gears is working...but it flickers.....my app isn't flickering on my friends computer...
13  Java Game APIs & Engines / JOGL Development / Double buffer on: 2006-03-16 20:07:42
I have made a small testapplication where I use my mouse and when it moves triangles will appear....the thing is...it fickers on my screen,

caps.setDoubleBuffer(true) isn't working, any ideas on why?

thx
14  Java Game APIs & Engines / JOGL Development / Re: FSAA on: 2006-03-16 20:06:47
I use windows XP and my graphics card is not very good I thing, it's built into my mother board and is a "Intel(R) 82915G Express Chipset Family"

do you think it can't handle antialiasing?

Also one more thing, this is something I thing is a problem as well. I have made a small testapplication vera I use my mouse and then it moves triangles will appear....the thing is...it fickers on my screen,

caps.setDoubleBuffer(true) isn't working, any ideas on that?=)...thx
15  Java Game APIs & Engines / JOGL Development / FSAA on: 2006-03-16 09:29:20
I'm running the FSAA test that comes with JOGL and I get this message, and the FSAA isn't working.

"antialiasing will be disabled because none of the available pixel formats had it to offer"

what does that mean?

do I need to change something to get it to work?

thx
16  Java Game APIs & Engines / JOGL Development / Re: Mouse control problem. on: 2006-03-15 10:03:46
How do I "grab" the cursor with JInput?

any examples?
17  Java Game APIs & Engines / JOGL Development / Mouse control problem. on: 2006-03-14 19:59:09
Hello, I wonder how you get control of the mouse in a game...

not in the regular sens like listeners...but like in a shootem up game where the aim always is in the middle of the screen and it never gets to the end of the frame so you can go around hoe much you want.

For me when I navigate at the moment I can only rotate untill the cursor comes to the end of the frame.

how do I solve this?

thx!
18  Java Game APIs & Engines / JOGL Development / Re: strange on: 2006-03-14 17:57:55
thx Ken Russell .... stupido me=)
19  Java Game APIs & Engines / JOGL Development / Re: strange on: 2006-03-09 13:52:31
public void init(GLAutoDrawable drawable)
    {
      GL gl = drawable.getGL();

      gl.glClearColor(0, 0, 0, 0);
            gl.glEnable(GL.GL_DEPTH_TEST);


      gl.glMatrixMode(GL.GL_MODELVIEW);
      gl.glLoadIdentity();
      gl.glMatrixMode(GL.GL_PROJECTION);
      gl.glLoadIdentity();
      gl.glOrtho(-1, 1, -1, 1, -1, 1);
    }

    public void display(GLAutoDrawable drawable)
    {
      GL gl = drawable.getGL();
      GLU glu = new GLU();
      GLUT glut = new GLUT();
     
      gl.glClear(GL.GL_COLOR_BUFFER_BIT | GL.GL_DEPTH_BUFFER_BIT);

      glu.gluLookAt(0,0,0, 1,1,1, 0,1,0);

      gl.glColor4d(1,0,0,1);
      glut.glutWireSphere(1, 100, 100);

    }
20  Java Game APIs & Engines / JOGL Development / strange on: 2006-03-09 08:30:23
I have made a very simple jogl thingy with just a wire spehere and when I resize or make the canvas redraw in some way the spehere rotates...

Anybody who knows why?

thx
21  Java Game APIs & Engines / JOGL Development / multisampling dem no effect. on: 2006-03-09 08:07:15
I have tried the multisample deom in jogl and it doesn work, why is there no difference?

shouldn't this code be enough?

    GLCapabilities caps = new GLCapabilities();
    caps.setSampleBuffers(true);
    caps.setNumSamples(4);
    canvas = new GLCanvas(caps);
22  Java Game APIs & Engines / JOGL Development / Re: Antialiasing on: 2006-03-09 06:54:38
of course  I have done that alread...but it still gives me false!
23  Java Game APIs & Engines / JOGL Development / JOGL VS openGL on: 2006-03-09 01:18:44
hello everybody...new to this and I wonder what the big differences between JOGL and real openGL?

is there a large differnece?
24  Java Game APIs & Engines / JOGL Development / Antialiasing on: 2006-03-09 01:16:54
Hello, I'm running the multisample demo and there is no differences between the two and the

caps.getSampleBuffers() method returns false .....what does this mean...doesn't my graphics card support it or is something else wrong?

thx
25  Java Game APIs & Engines / JOGL Development / Re: net.java VS com.sun on: 2006-03-09 00:36:21
so there isn't realy any difference between the two, just that JSR is newer?

also, is there support for nurbs in any of them?

thx
26  Java Game APIs & Engines / JOGL Development / net.java VS com.sun on: 2006-03-08 23:58:25
Hello, I'm new to JOGL and I wonder what is the difference between the net.java.game.jogl and so on and com.sun.opengl and whatever the otherone is....

Which one should I use?
Pages: [1]
 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

TehJavaDev (13 views)
2014-08-28 18:26:30

CopyableCougar4 (25 views)
2014-08-22 19:31:30

atombrot (38 views)
2014-08-19 09:29:53

Tekkerue (32 views)
2014-08-16 06:45:27

Tekkerue (32 views)
2014-08-16 06:22:17

Tekkerue (19 views)
2014-08-16 06:20:21

Tekkerue (29 views)
2014-08-16 06:12:11

Rayexar (66 views)
2014-08-11 02:49:23

BurntPizza (42 views)
2014-08-09 21:09:32

BurntPizza (34 views)
2014-08-08 02:01:56
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org 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‑gaming.org
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!