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 / Question about platform geometry detection on: 2004-11-10 08:17:51
I create a dialog image box and assign it to the shape3D, then i add this shap3D under PlatformGeometry. So that the dialog always show over canvas3D.

ViewingPlatform ourView = su.getViewingPlatform();
pg = new PlatformGeometry();
pg.addChild(dialogShape3D);
ourView.setPlatformGeometry(pg);


Then i try to use pickCanvas for detection:

pickcanvas = new PickCanvas(canvas, pg);
pickcanvas.setModePickCanvas.GEOMETRY_INTERSECT_INFO);
pickcanvas.setTolerance(2.0f);      

But when i click the dialog the pickresult got null.

pickcanvas.setShapeLocation(mouseEvent);
PickResult pickresult = pickcanvas.getClosest();

Please advice on above case, thanks ^^
2  Java Game APIs & Engines / Java 3D / SceneGraphStreamReader/ Writer Problem on: 2004-07-15 08:34:30
Hi All,

I try to save the scenegraph (include RotPosPathInterpolator node) by using SceneGraphStreamWriter. After i loading it again. I got following error meessage. Please give me some advice. Thanks.

P.S. There are no problems if the scenegraph didn't contain behavior node.


java.lang.NullPointerException
     at javax.media.j3d.Transform3D.set(Transform3D.java:1846)
     at javax.media.j3d.TransformInterpolator.<init>(TransformInterpolator.java:89)
     at javax.media.j3d.PathInterpolator.<init>(PathInterpolator.java:122)
     at javax.media.j3d.RotPosPathInterpolator.<init>(RotPosPathInterpolator.java:75)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.RotPosPathInterpolatorState.createNode(RotPosPathInterpolatorState.java:109)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.SceneGraphObjectState.readObject(SceneGraphObjectState.java:151)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.NodeState.readObject(NodeState.java:71)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.BehaviorState.readObject(BehaviorState.java:87)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.InterpolatorState.readObject(InterpolatorState.java:65)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.TransformInterpolatorState.readObject(TransformInterpolatorState.java:71)
     at com.sun.j3d.utils.scenegraph.io.retained.Controller.readObject(Controller.java:340)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.GroupState.readObject(GroupState.java:86)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.TransformGroupState.readObject(TransformGroupState.java:70)
     at com.sun.j3d.utils.scenegraph.io.retained.Controller.readObject(Controller.java:340)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.GroupState.readObject(GroupState.java:86)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.TransformGroupState.readObject(TransformGroupState.java:70)
     at com.sun.j3d.utils.scenegraph.io.retained.Controller.readObject(Controller.java:340)
     at com.sun.j3d.utils.scenegraph.io.state.javax.media.j3d.GroupState.readObject(GroupState.java:86)
     at com.sun.j3d.utils.scenegraph.io.retained.Controller.readObject(Controller.java:340)
     at com.sun.j3d.utils.scenegraph.io.retained.StreamControl.readBranchGraph(StreamControl.java:148)
     at com.sun.j3d.utils.scenegraph.io.SceneGraphStreamReader.readBranchGraph(SceneGraphStreamReader.java:91)
     at loader$2.actionPerformed(loader.java:222)
     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
     at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
     at java.awt.Component.processMouseEvent(Unknown Source)
     at java.awt.Component.processEvent(Unknown Source)
     at java.awt.Container.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Window.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)
3  Java Game APIs & Engines / Java 3D / Re: Please Help, Animation in Java3D on: 2003-10-08 02:47:43
thanks your reply and tutorials  Smiley

How about XJ3D? It is suitable for me? Since i just want to make animation base on the key frame geometry data which created from 3DSMax.

Please advice  Roll Eyes
4  Java Game APIs & Engines / Java 3D / Please Help, Animation in Java3D on: 2003-10-07 08:33:55
I am newbie of java3D. And i know like to get more advice from all of you about animation.

I try to use loader3DS (http://www.starfireresearch.com/) to load my 3ds model. It work fine. But animation can't since this loader didn't support animation and keyframe. I just know one method to make animation. By using 3dsMAX, i created the model and made the animation. Then export each frame one by one. Then i create a branchgroup and a switch in java. And load the files one by one by using loader3ds and add them to the switch. Then i can control the switch mask on and off to make animation. But seems not the good methods. So i try to use milkshape3D but this software only support skeleton animation. But it didn't work of my model since my model will not have any skeleton attach. So any other best way for loading animation. Thanks for your advice.    
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 (20 views)
2014-07-29 18:09:19

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

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

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

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

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

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

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

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

ctomni231 (60 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!