Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (539)
Games in Android Showcase (132)
games submitted by our members
Games in WIP (603)
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 / .createGLCanvas(glcaps); not present on: 2005-12-25 15:25:46
The code below is part of a demo I downloaded.

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
public SimpleJoglApp() {
    //set the JFrame title
    super("Simple JOGL Application");

    //kill the process when the JFrame is closed
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

    //only three JOGL lines of code ... and here they are
    GLCapabilities glcaps = new GLCapabilities();
    GLCanvas glcanvas = GLDrawableFactory.getFactory()
            .createGLCanvas(glcaps);
    glcanvas.addGLEventListener(new SimpleGLEventListener());

    //add the GLCanvas just like we would any Component
    getContentPane().add(glcanvas, BorderLayout.CENTER);
    setSize(500, 300);

    //center the JFrame on the screen
    centerWindow(this);
  }



I am having a problem with the line the shown below:

1  
2  
GLCanvas glcanvas = GLDrawableFactory.getFactory()
            .createGLCanvas(glcaps);


The problem is that there is no method .createGLCanvas(). How do I get round this problem.
Thanks
2  Java Game APIs & Engines / JOGL Development / Re: Problem with gluOrtho2D (0.0, 500.0, 0.0, 300.0) on: 2005-12-17 19:41:16
I think you have mismatched versions of jogl.jar and jogl.dll. You should delete all copies of these files (and make sure you haven't dropped any JOGL-related files into the JRE/JDK, which causes problems with Java Web Start and other applications) and re-install. I'd also recommend you upgrade to the latest nightly build on the JOGL web page; there are API changes involved, but the new code is much more robust than older versions.


Hi I just downloaded the lastest build of the jogl.jar file. I opened it up to find no mension of the net file path.
My demo uses the following header files
1  
2  
import net.java.games.jogl.*;
import net.java.games.jogl.GLU;


but the classes in the jogl.jar file are as follows.

1  
2  
3  
4  
com---------sun----------glugen----runtime
                       +-----------opengl----cd
                                             +--------impl
                                             +--------utils

etc


where is the net.game.cd path
thanks
3  Java Game APIs & Engines / JOGL Development / Problem with gluOrtho2D (0.0, 500.0, 0.0, 300.0) on: 2005-12-17 14:16:03
Hi, Huh
I am using eclipse to compile and run jogl demos. I have a very simple program to test that everything is working. However I get a bug which seems to be related to a single line in the code. This line is as follows:

1  
glu.gluOrtho2D (0.0, 500.0, 0.0, 300.0);


if I comment out the line above then the application runs fine but of course all I get a blank screen. However if I include this line then i get the following errors:

 Huh

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
Exception in thread "AWT-EventQueue-0" java.lang.UnsatisfiedLinkError: dispatch_gluOrtho2D
   at net.java.games.jogl.impl.GLUImpl.dispatch_gluOrtho2D(Native Method)
   at net.java.games.jogl.impl.GLUImpl.gluOrtho2D(GLUImpl.java:381)
   at SecondGLEventListener.init(SecondGLEventListener.java:26)
   at net.java.games.jogl.impl.GLDrawableHelper.init(GLDrawableHelper.java:68)
   at net.java.games.jogl.GLCanvas$InitAction.run(GLCanvas.java:187)
   at net.java.games.jogl.impl.windows.WindowsGLContext.makeCurrent(WindowsGLContext.java:144)
   at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.makeCurrent(WindowsOnscreenGLContext.java:110)
   at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
   at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:105)
   at java.awt.Component.setBounds(Unknown Source)
   at java.awt.BorderLayout.layoutContainer(Unknown Source)
   at java.awt.Container.layout(Unknown Source)
   at java.awt.Container.doLayout(Unknown Source)
   at java.awt.Container.validateTree(Unknown Source)
   at java.awt.Container.validateTree(Unknown Source)
   at java.awt.Container.validateTree(Unknown Source)
   at java.awt.Container.validateTree(Unknown Source)
   at java.awt.Container.validate(Unknown Source)
   at java.awt.Window.show(Unknown Source)
   at java.awt.Component.show(Unknown Source)
   at java.awt.Component.setVisible(Unknown Source)
   at SecondJoglApp$1.run(SecondJoglApp.java:18)
   at java.awt.event.InvocationEvent.dispatch(Unknown Source)
   at java.awt.EventQueue.dispatchEvent(Unknown Source)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
   at java.awt.EventDispatchThread.run(Unknown Source)



I have tried all the installation tutorials that are available on the internet but I still get this problem.
I have too question....
1. How do I fix this bug .  Huh
2. When will an installer be released which puts everything in the right place on its own.  Grin

thanks
4  Java Game APIs & Engines / Java Sound & OpenAL / Game sound technologies on: 2003-02-07 06:18:18
Hi, I want to findout all the different techniques and technologies used for computer games. For example interactive audio. Also some history of sounds/audio/music/character speech in games would also be helpful. Anyone know of any sites.
thanks Roll Eyes
5  Game Development / Game Mechanics / Re: jump mario on: 2003-01-27 07:08:48
Hi, yeah ok thanks I would like to see your jumping and collision code. My collision isn't that good so it would be nice to see that too. my email is zainuluk@yahoo.co.uk
6  Game Development / Game Mechanics / jump mario on: 2003-01-25 19:23:40
Hi I have a mario style platform game, and want to make my character jump...can someone show me how to achieve this or point me to a website which would help...ok thanks bye.
7  Java Game APIs & Engines / Java 2D / Re: COLLISIONS???? HELP ME PLEASE!!!!!!! on: 2003-01-16 09:33:42
yes, there are multiply tiles of the same tile used. However I detect collisions on some tiles but not on other....for example.......if the level consists of a black background with several clouds each made up of two tiles, say 12, and 13. The when my character movesover a tile it wll detect some number '12' tiles but some number '12' tiles will be undetected.
8  Java Game APIs & Engines / Java 2D / COLLISIONS???? HELP ME PLEASE!!!!!!! on: 2003-01-15 19:02:40
Ok here is all the collsion part of my game...hope someone can help.

Ok this is the main class where everything is controlled
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
class MyGame{
...
marioCharacter = new MainCharacter(.....some parameters...);
....
//here the background is controlled
bk_level_1 = new Scene(...some parameters...);

...
//test for collision between main character and a particular tile
public void collisionCheck(Scene _level,MainCharacter _char){
      if(_level.collisionTest(_char,173)){
            collision = true;
      }
      else {collision = false;}
}

....

}


This next class is one one for the maincharacter....I will just show how the bounding box is set up every cycle.
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
class MainCharacter{
...
public void updateBounds(){

      boundX = current_pos.x()+20;
      boundY = current_pos.y()+10;
      boundWidth = tileWidth-28;
      boundHeight = tileHeight-18;
      character_bounds.setRect(boundX,boundY,boundWidth,boundHeight);
}
...
}


The next class two classes are the Scene class and the tile class. The Tile class simple is each tile . here a bounding box is created round the tile.
1  
2  
3  
4  
5  
6  
7  
8  
class Tile{
...
public void updateBound(int x, int y){
         tile_bound.setRect(x,y,_width,_height);
}
...

}


1  
2  
3  
4  
5  
6  
7  
class Scene{
...
public boolean collisionTest(MainCharacter _character,int tileNum){
      return _character.getCharacterBounds().intersects(bkCollection[tileNum].getBound());
}
...
}


ok most of it should be obvious, but it only detects some tiles.
can anyone help. thanks.
If you need anyother info then just ask.

9  Java Game APIs & Engines / Java 2D / animation tiles on: 2002-12-31 20:20:49
Hi, I am trying to animate a character in my game and am using a single Large image with lots of smaller animations on them....I have a problem with breaking the image up into there individual fames. Can anyone hlp me. ok thanks
a website would be nice

The code I implemented is shown below
I have a problem with in the ....
"
return createImage(new FilteredImageSource(ip,new CropImageFilter(x,y,width,height)));
"

the error I get is as follows

C:\My Documents\marioGame\GoRacing\FrameCollection.java:47: cannot resolve symbol
symbol  : method createImage  (java.awt.image.FilteredImageSource)
location: class FrameCollection
           return createImage(new FilteredImageSource(ip,new CropImageFilter(x,y,width,height)));
                      ^
1 error



can anyone help me
oh this isn't the main Applet class but a side class.
ok thanks
10  Java Game APIs & Engines / Tools Discussion / uml DIAGRAMS on: 2002-12-20 21:01:03
Hi does anyone know of any free software that grenerate UML diagrams from java code.
ok thanks
11  Java Game APIs & Engines / Java 2D / Re: Animated NPCs on: 2002-12-13 16:47:31
Hi, well I don't think this well help you but more me. Well I want to design a platform game and was woundering where you got the bitmaps and images from for your game......I want to design a game but am not very good at images drawing so just woundering where I can download some.
ok thanks
12  Java Game APIs & Engines / Java 2D / Re: game backgrounds on: 2002-12-12 20:17:51
Wink :oI am a new games programmer and want to design a platform 2d game in java. but I needsome graphics, but for the background as well as for the character which will animate. i am looking cartoon style ones. i have some mario ones and a few like that but  :'(I have no background. like .hif file of clouds which can move in the background. Well i have a vision Sad of what my game will look like but I can't find the visual objects can people help me. i went to the site mentioned above but I couldn't find any. Oh this game will not be for comerical use however I will put it up on the web for people to play  >:(it and tell me what they think. Also i might send it to games companies to show then what I can do.. Smiley Wink Embarrassed.that is if it looks good. I will be trying to make a game as complicated as possible rather than....the standard java games which aren't very good and not very detailed. Roll Eyes Tongue Huh Shocked Sad Angry Cheesy Smiley
If anyone can help with the graphics then please do. Also if you have and good ideas that you think would be good(such as a particular type of level) then please do tell me.
Well thats all hope someone can help me ok bye  bye  Grin
13  Java Game APIs & Engines / Java 2D / game backgrounds on: 2002-12-10 19:43:01
hi I want to make a java 2d game, but ned some bitmaps Embarrassed Lips Sealed Roll Eyes
I have the characters which I am going to use in the game but also want backgrounds in tiles...for example cartoon style clouds and small trees...in cartoon style.....can anyone tell me where I can find these...sound would also be nice......if you have anymore character sites that you think would be nice to use then do put then in...ok thankyou bye bye Grin
14  Java Game APIs & Engines / Java 2D / pathfinding on: 2002-12-08 09:41:42
Embarrassed
hi, How do i make a pathfinding method in my game. anyone any ideas
15  Java Game APIs & Engines / Java 2D / Hi, PixelGrabber problems on: 2002-12-08 09:28:04
hi. I have an applet on to which I have tiled on a background.(background made up of tiles.ie top view of a racing track). now I want to put this background in to the pixelgrabber to identify the colours(and thus do some collision detection). So all I did was import the back buffer image to the pixelgrabber. I get a run time error. Note that the backbuffer is actually an image
can anyone help me.
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.

rwatson462 (33 views)
2014-12-15 09:26:44

Mr.CodeIt (24 views)
2014-12-14 19:50:38

BurntPizza (51 views)
2014-12-09 22:41:13

BurntPizza (84 views)
2014-12-08 04:46:31

JscottyBieshaar (46 views)
2014-12-05 12:39:02

SHC (59 views)
2014-12-03 16:27:13

CopyableCougar4 (61 views)
2014-11-29 21:32:03

toopeicgaming1999 (124 views)
2014-11-26 15:22:04

toopeicgaming1999 (114 views)
2014-11-26 15:20:36

toopeicgaming1999 (32 views)
2014-11-26 15:20:08
Resources for WIP games
by kpars
2014-12-18 10:26:14

Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!