Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (724)
Games in Android Showcase (216)
games submitted by our members
Games in WIP (790)
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 / Java 3D / Implement a modal dialog with Java 3D on: 2006-03-15 07:39:59
    I'm now developing a game and player can start game after cancelling a modal dialog.
    The modal dialog is implemented with platformGeometry and it can sucessfully interrupt any operation through thread.join(),but all event cannot work(press cancel button on modal dialog).
Does anyone know how to solve this problem?
2  Java Game APIs & Engines / Java 3D / Re: How to sharp the Java 3D Directional Light on: 2005-11-04 09:58:40
What are you trying to do with the light? The sharpness is not a concept that directional lights know about - it's a directional light, afterall. That means it's like an infinitely large light source covering the entire scene, and shining in the one direction. Spotlights have sharpness - that's the rate at which the edges drop off as the light beam moves away from the axis of the cone. Also, you may well be seeing the difference between ray tracing and realtime rendering.

Perhaps you are thinking about things like specular highlights or emissive colouring? It's really hard to know what you're trying to do without either some screen shots of the differences between the two, or what file you've generated from Max, which loader is being used etc etc.
i mean the 3d objects is too shine when putting Java3D Directional Light in the scene

I hope these objects can be rendered like 3d max model
3  Java Game APIs & Engines / Java 3D / How to sharp the Java 3D Directional Light on: 2005-11-01 08:48:09
   I am now developing a game project which need to have mind Directional light, but its Directional light seem to be too shine , I hope that the Directional light in my game look like the light generated from 3D Max,Can anyone know how to make it Shaper..thank
4  Discussions / General Discussions / How to auto download Java3D/JOGL through jnlp? on: 2005-10-07 22:37:10
     I have developed 2 3d application games for a long time. Now, I hope to use "java web start" to package them and hope that Java3D/JOGL can be  auto downloaded/installed  while someone is downloading my game, but I dont know how to set the jnlp file so that Java3D/JOGL can be downloaded? thank~~
5  Java Game APIs & Engines / JOGL Development / JOGL API installing on: 2005-05-04 16:20:17
I am now developing a applet 3D game with jogl, and I hope that client can conveniently install jogl API. How to do that..
Actually, I also dont know how to make a jogl installation dialog with JNLP web start. what tag should I use in jnlp file.
6  Java Game APIs & Engines / JOGL Development / Re: Need help~add a texture on the plane on: 2005-04-26 19:21:48
these code seem have problem~

       for (int y = 0; y < buff.getHeight(); y++){
         for (int x = 0; x < buff.getWidth(); x++){
           texture.put((byte) img[(y * buff.getWidth() + x) * 3]);
           texture.put((byte) img[(y * buff.getWidth() + x) * 3 + 1]);
           texture.put((byte) img[(y * buff.getWidth() + x) * 3 + 2]);

cant run...
um... why need *3
7  Java Game APIs & Engines / JOGL Development / Binding Texture exception~~ on: 2005-04-26 18:58:53

 I now want to map a texture on the object with following code:

 private BufferedImage readPNGImage(String resourceName) {
   try {
     BufferedImage img =;
     if (img == null) {
       throw new RuntimeException("Error reading resource " + resourceName);
     return img;
   } catch (IOException e) {
     throw new RuntimeException(e);

 private void makeRGBTexture(GL gl, GLU glu, BufferedImage img, int target, boolean mipmapped) {
   ByteBuffer dest = null;
   switch (img.getType()) {
   case BufferedImage.TYPE_3BYTE_BGR:
   case BufferedImage.TYPE_CUSTOM: {
     byte[] data = ((DataBufferByte) img.getRaster().getDataBuffer()).getData();
     dest = ByteBuffer.allocateDirect(data.length);
     dest.put(data, 0, data.length);

   case BufferedImage.TYPE_INT_RGB: {
     int[] data = ((DataBufferInt) img.getRaster().getDataBuffer()).getData();
     dest = ByteBuffer.allocateDirect(data.length * BufferUtils.SIZEOF_INT);
     dest.asIntBuffer().put(data, 0, data.length);

     throw new RuntimeException("Unsupported image type " + img.getType());

   if (mipmapped) {
     glu.gluBuild2DMipmaps(target, GL.GL_RGB8, img.getWidth(), img.getHeight(), GL.GL_RGB,
                           GL.GL_UNSIGNED_BYTE, dest);
   } else {
     gl.glTexImage2D(target, 0, GL.GL_RGB, img.getWidth(), img.getHeight(), 0,
                     GL.GL_RGB, GL.GL_UNSIGNED_BYTE, dest);

but throw following exception Huh

java.lang.RuntimeException: Unsupported image type 13

     at jogltest.Main.makeRGBTexture(

     at jogltest.Main.init(







     at java.awt.Component.setBounds(

     at java.awt.BorderLayout.layoutContainer(

     at java.awt.Container.layout(

     at java.awt.Container.doLayout(

     at java.awt.Container.validateTree(

     at java.awt.Container.validateTree(

     at java.awt.Container.validateTree(

     at java.awt.Container.validateTree(

     at java.awt.Container.validate(


     at jogltest.Applet1.jbInit(

     at jogltest.Applet1.init(

     at com.borland.jbuilder.runtime.applet.AppletTestbed.startApplet(Unknown Source)

     at com.borland.jbuilder.runtime.applet.AppletTestbed.main(Unknown Source)

Can someone help me to slve this problem..thank~~
8  Java Game APIs & Engines / JOGL Development / Re: Need help~add a texture on the plane on: 2005-04-26 12:40:32
 thank a lot~~
 what package you use~~eg ByteBuffer.
9  Java Game APIs & Engines / JOGL Development / Need help~add a texture on the plane on: 2005-04-23 09:18:36
  I want to add a texture on a plane with      gl.glTexImage2D(....),but I dont understand how to change a image to byte array.Can anyone post this code.
10  Java Game APIs & Engines / Java 3D / multi-texture function & vertex normal questio on: 2005-04-22 03:28:50
  I want to put a water plane(4 point3f quadArray) with 2 water texture in the scene.And I  want to set some vertex normals(I hope over 4)  on it for shading. How to do that?
11  Java Game APIs & Engines / Java 3D / Re: How to enhance the game efficiency with Java3D on: 2005-04-20 05:40:03
tree - about 2500 vertex
gun - about 3000 vertex
hill terrain - 64*64 vertex
buildings - 28 planes
except for trees,all render with texture
12  Java Game APIs & Engines / JOGL Development / tutorial about jogl on: 2005-04-18 02:20:39
  I think there are still few tutorials about jogl in the Internet.can anyone introduce some better e-tutorials about jogl in the internet.thank~~.
13  Java Game APIs & Engines / Java 3D / How to enhance the game efficiency with Java3D on: 2005-04-17 10:27:11
  I have developed a first person Applet game with Java 3D and it contain 80 3d trees(.X file) ,a 128*128 size hill,7 buildings and a gun attach to view in the scene, but it seem to run slow when using transformGroup.setTransform(transform3D) running in the thread especiallly rotating the camera. So, I want to know how to improve the efficiency in such situation.
14  Game Development / Performance Tuning / Which codes are more efficient? on: 2005-04-12 04:15:23
1a) for(int i=0;i<100;i++){
     if(a == 0 && a==1)//a is int
 b) for(int i=0;i<100;i++){
      if(a != 0 || a!=1)continue;

2a) for(int i=0;i<100;i++){
     System.out.println (this.getObject1().getObject2().getText());
     Object2 o2 = this.getObject1().getObject2();
     for(int i=0;i<100;i++){

3a) for(int i=0;i<100;i++){
 b) for(int i=0;i<100;i++){
      if(Integer.parseInt(str) == 1)
 c) for(int i=0;i<100;i++){
      if(str.charAt(0) == '1')

15  Game Development / Networking & Multiplayer / What is the best way of creating packet? on: 2005-04-12 04:00:50
  I am developing a multiplay online game with client/server model(HTTP) and client need to send a packet(with x,yz,....)to server every 40ms.However, the network efficiency seem to be slower when the packet is larger and larger.So, can anyone know how to make a good packet?(my packet format---- x&y&z&angle&hp&money)
16  Java Game APIs & Engines / Java 3D / wCreating some beaming particle on: 2005-04-05 06:01:28
  I have created some particles  with pointArray,specular and emissive material in my project~,but these material cannot simulate real beaming effect such as astigmatic effect,decay..
 So, can anyone know what the principle is and how to do so with Java3D...thank
17  Java Game APIs & Engines / Java 3D / Re: More object add on the scene,slower the camera on: 2005-03-24 17:30:58
::)I dont know how many polygons are~~

there are following objects in the scene
a 128.0f*128.0f size hill terrain(obj file)30
a gun which attach with the view(obj file),a sky box,some trees(obj file) and ghosts(obj file).

Also, I use a thread to process event instead of KeyNavigatorBehaviour
18  Java Game APIs & Engines / Java 3D / More object add on the scene,slower the camera rot on: 2005-03-23 00:03:30
My project is a first-person game and can sucessfully walk towards and rotate on the scene, but it is not smooth when the camera rotate(many objects on the scene eg 40 trees,hill(128.0X128.0),3 buildings,skybox) with pressing a key.
Can anybody know how to improve that..thank~~
Pages: [1]
buddyBro (199 views)
2017-04-05 03:38:00

CopyableCougar4 (629 views)
2017-03-24 15:39:42

theagentd (624 views)
2017-03-24 15:32:08

Rule (673 views)
2017-03-19 12:43:22

Rule (647 views)
2017-03-19 12:42:17

Rule (652 views)
2017-03-19 12:36:21

theagentd (664 views)
2017-03-16 05:07:07

theagentd (598 views)
2017-03-15 22:37:06

theagentd (437 views)
2017-03-15 22:32:18

theagentd (367 views)
2017-03-15 22:31:11
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

SF/X Libraries
by SkyAphid
2017-03-02 06:38:56

SF/X Libraries
by SkyAphid
2017-03-02 06:38:32

SF/X Libraries
by SkyAphid
2017-03-02 06:38:05

SF/X Libraries
by SkyAphid
2017-03-02 06:37:51 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!