Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (542)
Games in Android Showcase (133)
games submitted by our members
Games in WIP (604)
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  Games Center / Featured Games / Re: Wurm Online on: 2003-09-21 00:42:30
That's pretty tight.

It would be pretty cool if you work on the entrances for the caves, but I'm pretty sure you already have that in mind. Grin
2  Games Center / Archived Projects / Re: Stone on: 2003-08-09 14:29:34
Yeah, the model is pretty much a ripoff, but its hard to find some desent looking models now a days  Wink

I even say its a ripoff in the news that is posted right there on the site  Wink
3  Games Center / Archived Projects / Re: Stone on: 2003-08-07 17:50:50
That looks so much better!  Smiley
4  Games Center / Archived Projects / Re: Stone on: 2003-08-07 17:37:48
Oh wow, I must have been really sleepy when I made that!!  Shocked  I didn't notice it either! It'll be fixed soon
5  Games Center / Archived Projects / Re: Stone on: 2003-08-07 17:20:38
Working on the runnable demo right now  Wink
6  Games Center / Archived Projects / Stone on: 2003-08-06 18:52:14
All I have right now is some good looking screenshots, but check it out  Grin http://stoneonline.netfirms.com

Let me know what you guys think of the screenshots, and yes it is being programmed in Java3d  Lips Sealed but I don't want to switch to another API at the moment
7  Games Center / Featured Games / Re: Wurm Online on: 2003-08-02 19:34:18
Hold down the left mouse button to look around
8  Games Center / Featured Games / Re: Wurm Online on: 2003-08-02 19:17:30
Cool butterflies, although butterflies shoudn't be able to fly under water, should they?  Wink
9  Games Center / Featured Games / Re: Wurm Online on: 2003-08-02 02:20:14
Hey, just went and looked at Wurm again (using parts of the visuals as examples I can build into my app), the leaf effect is very cool.
10  Games Center / Featured Games / Re: Wurm Online on: 2003-08-01 19:17:05
Its looking good, although it seems that your animations speeded up quite a bit.  It seems pretty crazy to barely run up a hill in a day  Wink

But besides that it is looking good, I also see that you got some new trees, nice touch
11  Games Center / Archived Projects / Re: Looking for beta testers... on: 2003-07-25 01:54:56
Not bad, not bad at all  Smiley

Only, two suggestions: make a screen where you can choose an opponent or see if someone is online, and it really isn't fair when you are playing the person who made the game  Angry

But overall good
12  Games Center / Featured Games / Re: Wurm Online on: 2003-07-24 20:39:02
One of the last times I tired it, it downloaded OpenGL 1.4 for me
13  Java Game APIs & Engines / Java 3D / Re: Rotating with an object on: 2003-07-24 20:37:02
Got it fixed.  I didn't add the previous angle to the new angle, so now it works. thanks
14  Java Game APIs & Engines / Java 3D / Re: Rotating with an object on: 2003-07-24 14:14:39
Well, I tired your code breakfast, but it doesn't turn with the model all the way.  It only turns one distance and that is it.  Here is the code that I'm using, some of it should look very familiar to you  Cool

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  
private void initCamera()
            {
                  camTrans = new Transform3D();
                  camVec = new Vector3d();    
                  camTG.getTransform(camTrans);
                  camTrans.get(camVec);
            }
   
            private void translateCamera(Transform3D ourTrans)
            {
            Vector3d ourVec = new Vector3d();
            Vector3d up = new Vector3d(0, 1, 0);
            ourTrans.get(ourVec);
                  ourVec.add(new Vector3d(-1.0d, 1.0d, 0.0d));
           
            Point3d cam = new Point3d();
            Point3d man = new Point3d();

            camTrans.setTranslation(ourVec);
                  ourTrans.transform(man);
            camTrans.transform(cam);
                  man.y = man.y +1.0;

                  camTrans.lookAt(cam, man, up);
            camTrans.invert();

            camTG.setTransform(camTrans);
            }

            private void rotateCamera(Transform3D ourTrans)
            {
                  Vector3d currentPos = new Vector3d();
                  camTrans.get( currentPos );
     
                  double nowX = currentPos.x;
                  double nowY = currentPos.z;

                  Point3d rotationCentre = new Point3d();
                  ourTrans.transform( rotationCentre );
 
                  nowX = nowX-rotationCentre.x;
                  nowY = nowY-rotationCentre.z;
     
     
                  double lenVec = 1.0d;
                  nowY = (Math.sin(rotateYAmount * speed*2)*lenVec);
                  nowX = (-Math.cos(rotateYAmount * speed*2)*lenVec);  
 
                  nowX = nowX+ rotationCentre.x;
                  nowY = nowY+ rotationCentre.z;
     
                  currentPos.x = nowX;
                  currentPos.z = nowY;    
       
                  camTrans.set(currentPos);
                  camTrans.lookAt(new Point3d(currentPos.x, currentPos.y, currentPos.z),
                                          new Point3d(rotationCentre.x, rotationCentre.y+1.0d, rotationCentre.z),  new Vector3d(0, 1, 0));
                  camTrans.invert();
     
                  camTG.setTransform(camTrans);    
            }
15  Java Game APIs & Engines / Java 3D / Rotating with an object on: 2003-07-24 02:27:08
I have a question that is bugging me at the moment and I'm too tired to go find all the answers on the web, so here I go...

I'm making a third person type game and I have almost the whole behavior done for movement all I need is to get the rotation done. I can rotate my model just fine, but I want to rotate the camera with the model, so the camera is always looking and the back of the model.  I already have the camera positioned, I just need the right code to give me the camera rotation.

Any help?  Grin
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.

CopyableCougar4 (16 views)
2014-12-28 02:10:29

BurntPizza (17 views)
2014-12-27 22:38:51

Mr.CodeIt (13 views)
2014-12-27 04:03:04

TheDudeFromCI (17 views)
2014-12-27 02:14:49

Mr.CodeIt (25 views)
2014-12-23 03:34:11

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

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

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

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

JscottyBieshaar (86 views)
2014-12-05 12:39:02
How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

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