Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (293)
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]
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Browse for soundtracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (70 views)
2013-05-17 21:29:12

alaslipknot (80 views)
2013-05-16 21:24:48

gouessej (111 views)
2013-05-16 00:53:38

gouessej (106 views)
2013-05-16 00:17:58

theagentd (117 views)
2013-05-15 15:01:13

theagentd (106 views)
2013-05-15 15:00:54

StreetDoggy (150 views)
2013-05-14 15:56:26

kutucuk (174 views)
2013-05-12 17:10:36

kutucuk (171 views)
2013-05-12 15:36:09

UnluckyDevil (180 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
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!
Page created in 0.17 seconds with 21 queries.