Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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 / OO Java3D question.. on: 2005-05-18 18:45:25
How do I create a behaviour class called "GaitAngleInterpolator" (for example) and make it inherit from the "RotationInterpolator" class..

Basically I want to create a behaviour class which extends the RotationInterpolator class and allows me to override the "processStimulus()" and "computeTransform" methods...

Oh and override the constructor method too..

It this possible?

please help!
2  Java Game APIs & Engines / Java 3D / TransformInterpolator question.. on: 2005-05-16 15:37:15
What does the TransformInterpolator object do with the last arguement (transformgroup representing the axis of transformation..)

Please help..?
3  Java Game APIs & Engines / Java 3D / HELP - Rotation question.. on: 2005-05-16 15:27:41
I'm trying to set a transformgroup's transform3D object to the initial rotation of 0..

I used the transform3D.setIdentity() method but it keeps throwing a null pointer expection at me?

Any idea why this is doing this?

Please help!!
4  Java Game APIs & Engines / Java 2D / Java Swing JFileChooser problem.. on: 2005-04-25 12:16:37
Hi peoples!!

I'm having a problem with my JFileChooser object..

I'm trying to get the selected file using the getSelectedFile() method..

The problem is this only seems to work when I mouse-click on the file in the directory browser of the file chooser, If I type in the filename into the text input, even if the file is present in the current directory, it doesn't find the file..

So my question is how do I read the text input aswell so that I can make sure the file can be read no matter how it is retrieved..?

EDIT: please help!!
I've checked the java docs to try to find out how to access the text input but i can't seem to find any function or method that does this..

Otherwise how do I check if the file selected is the same and one currently stored in the directory (if i wanted to prompt the user before overwriting the file for example..)..?
5  Java Game APIs & Engines / Java 3D / Re: Transform3D rotation question.. on: 2005-04-08 17:23:39
Also I have some more questions on a related topic..

I want to rotate a 3D object by a certain degree (lets say 30 degrees about Y)..

I figured I could use the setEuler() method and specify the Y rotation to the specific value but I'm not sure how I would assign the value exactly..

Does the method deal with rotations in radians or in degrees and if I wanted to specify the rotation as float's rather than double's then is that also possible?

Also is there a Java3D method to convert degrees to radians?

Hope someone can help..
6  Java Game APIs & Engines / Java 3D / Re: Transform3D rotation question.. on: 2005-04-07 20:37:20
Is the identity the default transform to the parent node?

Because if so then that should be ok for me..?
7  Java Game APIs & Engines / Java 3D / Transform3D rotation question..(plus new question) on: 2005-04-07 14:11:46
How do I set the Rotation of a Transform3D Obj back to the default rotation (I think they call it the identity matrix?)

For example,

If I have a program which allows me to rotate a cube primitive by mul Transform3D to the Transform3D Obj of the cube, then is there a method I can call to make the Transform3D Obj of the cube return to the Default rotation (of 'no' rotation)..?
8  Java Game APIs & Engines / Java 3D / Re: Java3D in a Swing Application.. on: 2005-03-29 20:19:47
Sounds awesome i think i'll do that..

Although u've raised a concern for me.. In my program I intend to use at most two canvas3D's in the application..

They will only be displaying animations of single 3D models (built entirely using primitives) walking seperately..

So I'm curious,
Do you think the performance will degrade terribly when both canvas's are active?
9  Java Game APIs & Engines / Java 3D / Re: Object Hierarchies in Java 3D on: 2005-03-29 07:31:13
Well it was my transformation code that was dodgy so after I revised that it worked fine..

I also decided to do the same, I.e. I made a new node to represent the centre of gravity which sat at the top of the chest and that was were all the other objects extended from..
10  Java Game APIs & Engines / Java 3D / Re: Changing angles with Alpha.. on: 2005-03-28 20:10:47
May god bless you as he has me through you!!

Seriously thankyou sooooooo much!!

There are tooo many good people around here and I just don't think you all get enough of the praise that you all deserve!!

I'll be graduating this yr thanx to the help of such fine members of society!!

Thanks again!!
11  Java Game APIs & Engines / Java 3D / Re: Changing angles with Alpha.. on: 2005-03-28 15:03:25
Could you give me a little info on to how to do this?

Since this is the first time i've written any kind of program with Java3D I'm not entirely sure on how java3D uses the Interpolator class for interpolating frames..

Any help would be extremely appreciated!

Thankyou so much
12  Java Game APIs & Engines / Java 3D / Changing angles with Alpha.. on: 2005-03-28 11:28:29
Ok in my Java3D program I have a 3D model with which I'd like to animate..

I wanna use the alpha class to specify the time frame for the animation (i.e. the number of frames in the animation loop)

And I want to specify the angles for every frame of animation in the loop, for every joint on the model I want to move..

I was looking at the rotationInterpolator class but the problem with this is it calls the processStimulus method every frame to calculate the angle from the alpha rather than retrieve these angles from an array (which is what I want to do in my program)..

(hope i'm making sense thus far..)

So I'm keen to find out if I should just create a new class which extends the RotationInterpolator class but overrides the processStimulus method, or do something else entirely to achieve my goals?

I hope someone can help me resolve this issue since my program is very near to completion and I don't have too long left until the deadline..

Thankyou for your time

13  Java Game APIs & Engines / Tools Discussion / Re: Java Swing JFileChooser problem.. on: 2005-03-26 07:48:49
oops sorry I've already solved the problem, sorry!

I frgot to post and let people kno.. thanx anyways..
14  Java Game APIs & Engines / Tools Discussion / Java Swing JFileChooser problem.. on: 2005-03-21 18:40:15
I'm having problems trying to get the JFileChooser class to work with my program..

I want to make the event of clicking the 'load' option from the menu, make the open file dialog to be shown..

Here's my code for the actionevent:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
      public void actionPerformed(ActionEvent event) 
      {
            // deals with the GUI action events.
           ...
            // filechooser load and save button clicks from menu
           ...
            // Handle open button action.
           if (event.getSource() == loadMenuItem)
            {
                  int returnVal = gaitFc.showOpenDialog(GUI3D.this);

                        if (returnVal == JFileChooser.APPROVE_OPTION)
                        {
                                File file = gaitFc.getSelectedFile();
                               //This is where the application would open the file.
                             // blah blah blah blah..
                       } else
                        {
                               // blah blah blah blah..      
                        }
            }


It doesn't seem to like the "loadMenuItem" even tho thats the name of the menuItem I want it respond to..

Also concerning the "showOpenDialog", it says "GUI3D.this" in the type field is not an applicable arguement..

I don't kno how to fix these Issues and i'm running out of valuable project time, racking my brain over it..

Please help if possible?
15  Java Game APIs & Engines / Tools Discussion / Creating xml data files with java.. on: 2005-03-19 15:19:06
Ok i'm building a 3d application using java 3D to model human gait descriptions using parametric equations to describe the movement of certain joints over a time frame (period of the walk cycle)..

I want to read & store the description data to and from xml files so I have to overcome some obsticles in the process..:

- Firstly I've never even looked at xml before and so does anyone kno any good tutorials or descriptions of how it works and how it maybe useful for me in my project?

- Secondly does anyone kno which API i'd have to use to read and write this data to and from the xml files?

Once I have these two issues out the way i'm pretty much set in the way of knowing what i'm doing for this project so any help given would be extreeeemely appreciated..

hope someone can help!!
16  Java Game APIs & Engines / Java 2D / Re: Stupid Swing/AWT question.. on: 2005-03-18 17:23:14
Ur such a god-send!!

Thanks soo much!!
17  Java Game APIs & Engines / Java 3D / Java3D in a Swing Application.. on: 2005-03-18 14:34:53
I want to create a Swing application to display two 3D models in viewports similar to the kind you'd see in programs like 3D modellers..

I'm ok with my current understand of Swing and seperately with Java 3D (in creating applets) but i've never had any experience in bringing the two together and I've read around the net and it seems like its an area where people seem to have alot of problems..

The question i'd like to raise is what component do I use to display my Java3D model scene in an application frame? would I embedd a canvas3D object into a container like a panel or would that be impossible/too slow?

Or would I have to (or would it be easier to..) create a pop-up window or even a pop-up applet to display my Java3D scene?

And lastly is the use of Swing even reccomended in this or should I revert back to using awt for compatibility?

hope someone can help?
18  Java Game APIs & Engines / Java 2D / Re: Stupid Swing/AWT question.. on: 2005-03-18 12:25:22
I've just been taking a look now and it seems as though the setIconImage() method takes in an Image object..

does this mean I can still use my ImageIcon object with the method or do I have to create a seperate Image object?

If so then how do I use the Image class to reference an Image file such as a Gif or BMP?

Is it the same as using an ImageIcon or do I have to do it a different way?

I've tried to figure it out looking at the methods/consructors etc.. of the Image class but I can't seem to make head's or tails of any of it..

(I'm sorry I must apologise at my lack of knowledge of GUI programming in Java.. I'm very new to the whole thing so..)
19  Java Game APIs & Engines / Java 2D / Re: Stupid Swing/AWT question.. on: 2005-03-18 11:43:30
Also if i wanna change the ImageIcon for the JFrame once it's been iconised then what method do I call?

20  Java Game APIs & Engines / Java 2D / Re: Stupid Swing/AWT question.. on: 2005-03-18 11:24:08
I love u man!!!!!!

Thanx sooooo much!!

Grin Grin Grin
21  Java Game APIs & Engines / Java 2D / Re: Stupid Swing/AWT question.. on: 2005-03-18 11:09:35
Oops I don't think I was very clear in my question:

I don't mean "Full-screen" as in the kinda full-screen u'd be looking at if you was making a game fior example,

I mean not windowed by default, like when u click on the little 'maximise' button in the top-right-hand-corner of a windows application and it can either make it 'maximised', 'windowed' or send it to the bar at the bottom..

Like I said, noobish question.. Embarrassed

Hope someone can help?
22  Java Game APIs & Engines / Java 3D / Re: Object Hierarchies in Java 3D on: 2005-03-18 10:56:20
Its ok thanx i managed to fix it!!
23  Java Game APIs & Engines / Java 2D / Stupid Swing/AWT question.. on: 2005-03-18 10:53:49
I kno this question is probably very noobish but i'm stuck and i need to figure out how to make my application start-up maximised (covering the whole screen, not windowed..)?

Is it a method of the JFrame class or the Frame class?

Can anybody help me please!!
24  Java Game APIs & Engines / Java 3D / Re: Object Hierarchies in Java 3D on: 2005-03-15 16:06:59
Thanx for the reply breakfast,

Ok the problem is that i've managed to setup the hierarchy of objects now in the same way you stated: using transformgroup's to hold geometry at each level..

The problem now is that I have a single node with multiple children ('centre' node with body, arms and neck as children to it..) and some very undesirable behaviour occuring..

The arms seem to be fine at the moment, I created them as a hierachy of nodes with the geometry attached and the root node is attached to the shoulder which would then attach to the centre node..

The problem is with the body,
I attached the body to the centre node and I've tried everything to change to rotation to get it to stretch downwards instead of upwards (engulfing the head and neck) but its just not working..

Is there something wrong wid me setup or is it that i'm missing something?

Please help!!
25  Java Game APIs & Engines / Java 3D / Object Hierarchies in Java 3D on: 2005-03-03 13:56:11
Ok.. Here's the problem..

I'm VERY new to Java3D and I need to build a 3D model out of primitives but in a hierarchical structure.. This because I need to animate it..

Can anyone help me find out how its done?
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.

Riven (12 views)
2014-07-29 18:09:19

Riven (8 views)
2014-07-29 18:08:52

Dwinin (9 views)
2014-07-29 10:59:34

E.R. Fleming (25 views)
2014-07-29 03:07:13

E.R. Fleming (10 views)
2014-07-29 03:06:25

pw (39 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (27 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
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!