Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (522)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (590)
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 / Xith3D Forums / Re: Shooting a rocket model on: 2004-05-30 12:56:35
Cool..

Thanks for the advice I'll give it a go..
2  Java Game APIs & Engines / Xith3D Forums / Shooting a rocket model on: 2004-05-30 10:33:00
Hi,

I am using a mouse-look style camera and movement system. I am using 2 vectors; one for my current location and for the direction that i'm facing. I can fire rockets (which are spheres at the moment) in whatever direction I'm facing.

The problem is I would like to fire an MD2 model of a rocket instead of the sphere. I can fire the model and it travels in whatever direction I shoot it, but I can't seem to figure out how to make the front of the rocket model always point forward. The rocket is pointing out into the negative z direction, so if i turn around and shoot, the rocket will fire sidewards or with the front pointing towards me (ie backwards!).

How can i solve this problem (ie the front end of the rocket should point in whatever direction i'm firing), my 3D maths aint that great!
3  Game Development / Networking & Multiplayer / Re: What type of Networking should i use? on: 2004-05-04 13:38:04
sweet!

I'll take a look - thanks for te input  Smiley
4  Game Development / Networking & Multiplayer / What type of Networking should i use? on: 2004-05-04 11:12:32
Hi,

I have created a game arena using Xith3D (a terrain game world). I can add a MD3 model to the arena and fire projectiles. I have also implemented a quake style keyboard / mouse look system.

Basically my avatar is created using two vectors - one for the current position and one for the current direction you are facing. Each projectile is also made up of those two vectors, I create a new vector to sotre the target position (ie target.sub(currentDirection, currentPosition) then I use a while loop to make my projectile move in the direction it was fired.

I would like to play the game over a LAN (just with 2 clients to begin with). I would like to keep things as simple as possible, all i really need the server to keep track of is both players position/direction and the same for when a projectile is fired. Is this the correct way to go about things?

I have some experience with java.io. What kind of network architecture should I use / look into using?

Any suggestions much appreciated..

Cheers.
5  Java Game APIs & Engines / Xith3D Forums / Re: java.lang.OutOfMemoryError (Terrain) on: 2004-04-29 08:51:06
Wicked! It worked like a charm   Cheesy

Cheers William
6  Java Game APIs & Engines / Xith3D Forums / java.lang.OutOfMemoryError (Terrain) on: 2004-04-28 22:57:58
Hi..

After finally getting a walkaround camera to work with the Terrain demo, I decided to add an MD3 model to my world.

Unfortunately I keep getting the following runtime error:
Exception in thread "main" java.lang.OutOfMemoryError

If I set the maxLevel to anything below 12  
i.e. terrain = new Terrain(11,10);
the model gets loaded up without any problems, but then my worldsize is greatly reduced..

Is there anything that I can do to allow my world size to stay the same (8192 units) and my model to be loaded without the aboce exception?

Cheers
7  Java Game APIs & Engines / Xith3D Forums / Re: XithTerrainTest walkaround on: 2004-04-28 11:36:00
Ah success!  Cool

I finally got the walkaround for the terrain demo going..

I incorporated Java Cool Dude's excellent FPS camera system with a few modifications to ensure terrain following and no flying up into the air.

Now - how to set the bounds of the world so I can't leave the terrain arena ??
8  Java Game APIs & Engines / Xith3D Forums / Re: *new* xith.org site redesign on: 2004-04-28 09:41:01
The new site looks excellent   Cheesy

I was trying to download David's user interface examples, but I keep getting a Forbidden error : "You don't have permission to access /download/extras/xith3d-gui-demo.zip on this server."

Any chance of sorting this out as I would really like to have a look at the demos..

Keep up the great work!
9  Java Game APIs & Engines / Xith3D Forums / Re: XithTerrainTest walkaround on: 2004-04-26 23:40:52
I am finally able to rotate around Y axis using the keboard, but whenever I do and try to walk forwards or strafe in that direction the view resets (stays in the same position but faces the original direction)

In my main render loop all I am doing is checking for keyboard events..

Here is what I have so far:

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  
31  
32  
33  
34  
35  
36  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
73  
74  
75  
76  
77  
float ROT_AMT = (float)Math.PI / 36.0f;

//The following methods are called when the user press the keys

private void Up(){                                                                      
      position.z += speed*direction;                                                      
      position.y = terrain.getY(position.x, position.z) + 200;                    
                                                                                   
      lookat.set(position);                                                        
      lookat.x += distance*direction;                                              
      lookat.z += distance*direction;
      lookat.y = terrain.getY(lookat.x, lookat.z) + 200;
     
      view.getTransform(viewT);                                                    
      viewT.lookAt(position,lookat,new Point3f(0,1,0));                                    
      view.setTransform(viewT);                                                        
}                                                                                        
                                                                                   
private void Down(){                                                                    
      position.z -= speed*direction;                                                      
      position.y = terrain.getY(position.x, position.z) + 200;                    
                                                                                   
      lookat.set(position);                                                                
      lookat.x += distance*direction;                                                      
      lookat.z += distance*direction;                                                      
      lookat.y = terrain.getY(lookat.x, lookat.z) + 200;                          
                                                                                           
      view.getTransform(viewT);                                                            
      viewT.lookAt(position,lookat,new Point3f(0,1,0));                                    
      view.setTransform(viewT);                                                            
}                                                                                        
                                                                                   
private void StrafeLeft(){                                                              
      position.x += speed*direction;                                                      
      position.z += speed*direction;                                                      
      position.y = terrain.getY(position.x, position.z) + 200;                    
                                                                                   
      lookat.set(position);                                                                
      lookat.x += distance*direction;                                                      
      lookat.z += distance*direction;                                                      
      lookat.y = terrain.getY(lookat.x, lookat.z) + 200;                          
                                                                                   
      view.getTransform(viewT);                                                            
      viewT.lookAt(position,lookat,new Point3f(0,1,0));                                    
      view.setTransform(viewT);                                                            
}                                                                                        
                                                                                   
private void StrafeRight(){                                                              
      position.x -= speed*direction;                                                      
      position.z -= speed*direction;                                                      
      position.y = terrain.getY(position.x, position.z) + 200;                    
                                                                                   
      lookat.set(position);                                                                
      lookat.x += distance*direction;                                                      
      lookat.z += distance*direction;                                                      
      lookat.y = terrain.getY(lookat.x, lookat.z) + 200;                          
                                                                                           
      view.getTransform(viewT);                                                            
      viewT.lookAt(position,lookat,new Point3f(0,1,0));                                    
      view.setTransform(viewT);                                                            
}                                                                                        
                                                                                   
                                                                                   
private void performRotation(float amt){                                                
      position.y = terrain.getY(position.x, position.z) + 200;                    
                                                                                   
      lookat.set(position);                                                                
      lookat.x = distance*direction;                                                      
      lookat.z = distance*direction;                                                      
      lookat.y = terrain.getY(lookat.x, lookat.z) + 200;                          
                                                                                   
    view.getTransform(viewT);                                                          
      testRotateY.rotY(amt);                                                              
      viewT.mul(testRotateY);                                                              
      view.setTransform(viewT);                                                            
      viewT.lookAt(position,lookat,new Point3f(0,1,0));                                    
}                                                                                      


Please Help!
10  Java Game APIs & Engines / Xith3D Forums / XithTerrainTest walkaround on: 2004-04-26 16:12:00
I'm new to xith3D. I have gone through the GSG to get to learn the basic stuff and I'm playing around with the demos at the moment.

One of the things that I am trying to do is to create a walkaround for the TerrainTest demo. I can get the camera to move up and back along the X and Z axes using the keyboard as input, however i can't seem to get the camera to rotate around the Y axis (so i can turn using the keyboard)

I've tried many different things to get it going. My brains just a bit fried from trying to figure it out !

Just wondering if anyone can show this noob the light and point me in the right direction  Roll Eyes
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.

trollwarrior1 (33 views)
2014-11-22 12:13:56

xFryIx (73 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (40 views)
2014-11-12 21:09:33

kovacsa (65 views)
2014-11-07 19:57:14

TehJavaDev (70 views)
2014-11-03 22:04:50

BurntPizza (68 views)
2014-11-03 18:54:52

moogie (83 views)
2014-11-03 06:22:04

CopyableCougar4 (82 views)
2014-11-01 23:36:41
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

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06
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!