hi, i am making a online pool game now. I don’t want a complete 3D enviroment. The game is a top view of the table. I just need the balls to be 3D so tat rolling and spinning would look realistic, as the same as many existing pool games does.
I didn’t have a clue how i should achieve this at the beginning. At first i was thinking whether i can use the 2D image of a ball to simulate the 3D moving. for example, when the ball is moving, i chop off a suitable image to map to the ball. But later i feel tat’s too troublesome and looks stupid.
Then I intend to use java 3D (tell me this is the right choice pls), i’m just starting to learn java 3D. However, I encountered a problem. I was just trying out the sample codes like “HelloUniverse”. I put the the following two files to the web
HelloUniverse.class
HelloUniverse_plugin.html
and i access the html file. From my own computer, it works fine. however, if i open it from another computer, it says
java.lang.NoClassDefFoundError: javax/media/j3d/Canvas3D
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
…
Even if the user’s computer has already downloaded the jre, it still gives the error. Could anybody tell me why this occurs?
Thanks very much