Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (581)
games submitted by our members
Games in WIP (500)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  small community gift!!  (Read 1946 times)
0 Members and 1 Guest are viewing this topic.
Offline hawkwind

Junior Member




Java games rock!


« Posted 2006-09-23 03:15:01 »

All

   I found an old copy of J3dTree on my machine and have converted it to Xith.  Given a VirtualUniverse, J3dTree display a swing tree of the scenegraph as shown in this image

http://home.mindspring.com/~hawkwind/tree.jpg

I invoke it using

1  
2  
3  
Java3dTree tree = new Java3dTree();
      tree.updateNodes(virtualUniverse);;
      tree.setVisible(true);


zip of source is at

http://home.mindspring.com/~hawkwind/xith-tree.zip


Enjoy
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #1 - Posted 2006-09-23 11:38:53 »

All

   I found an old copy of J3dTree on my machine and have converted it to Xith.  Given a VirtualUniverse, J3dTree display a swing tree of the scenegraph as shown in this image

http://home.mindspring.com/~hawkwind/tree.jpg

I invoke it using

1  
2  
3  
Java3dTree tree = new Java3dTree();
      tree.updateNodes(virtualUniverse);;
      tree.setVisible(true);


zip of source is at

http://home.mindspring.com/~hawkwind/xith-tree.zip
Great ! seems to be a step toward what I call "real-time debugging" (see dev plan for Xith 2).

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #2 - Posted 2006-09-23 12:41:44 »

All

   I found an old copy of J3dTree on my machine and have converted it to Xith.  Given a VirtualUniverse, J3dTree display a swing tree of the scenegraph as shown in this image

http://home.mindspring.com/~hawkwind/tree.jpg

I invoke it using

1  
2  
3  
Java3dTree tree = new Java3dTree();
      tree.updateNodes(virtualUniverse);;
      tree.setVisible(true);


zip of source is at

http://home.mindspring.com/~hawkwind/xith-tree.zip


Enjoy


Cool Grin. I had something like that in mind. Good to know it already done so far. Thank you very much Smiley.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #3 - Posted 2006-09-23 13:50:52 »

All

   I found an old copy of J3dTree on my machine and have converted it to Xith.  Given a VirtualUniverse, J3dTree display a swing tree of the scenegraph as shown in this image

http://home.mindspring.com/~hawkwind/tree.jpg

I invoke it using

1  
2  
3  
Java3dTree tree = new Java3dTree();
      tree.updateNodes(virtualUniverse);;
      tree.setVisible(true);


zip of source is at

http://home.mindspring.com/~hawkwind/xith-tree.zip


Enjoy


Cool Grin. I had something like that in mind. Good to know it already done so far. Thank you very much Smiley.
We should see if we can extend that to a generic object observer.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline khangharoth

Junior Member




There is more to life than JAVA...But Java Rocks


« Reply #4 - Posted 2006-09-27 08:35:48 »

Thanks dude , .it can become a handy tool for debugging purpose if we can make it dynamic ,
say it gets updated when we make any change to the sceneGraph.

Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #5 - Posted 2006-09-27 10:49:10 »

Thanks dude , .it can become a handy tool for debugging purpose if we can make it dynamic ,
say it gets updated when we make any change to the sceneGraph.

Are you maybe interested in doing this?
Offline khangharoth

Junior Member




There is more to life than JAVA...But Java Rocks


« Reply #6 - Posted 2006-09-27 12:11:20 »

Are you maybe interested in doing this?

Yaa i am planning to extend this and use as a debugging tool as presently i have to
rely on Eclipse debuging for itrataing through the Scene  .

Also in our  project we modify scenegraph preety much and it can certainly help us in
keeping track of sceneGraph .

Infact we already have a panel which shows properties of
scene and any action on that panel updates the scenegraph .
So scene can be rendered interactly ,say we can switch On -Off  Shapes rendered
according to rules.

Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #7 - Posted 2006-09-27 15:43:31 »

The SG tree has been committed to Xith-tk : org.xith3d.sgtree package, but it's still somewhat buggy (see if you can fix it).

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Offline Marvin Fröhlich

Senior Member




May the 4th, be with you...


« Reply #8 - Posted 2006-09-27 19:22:16 »

Also in our  project we modify scenegraph preety much and it can certainly help us in
keeping track of sceneGraph .

When I've finished the rendering optimizations there will (or could) be the possibility to add scenegraph change listeners. Maybe you want to make use of them Wink.

The SG tree has been committed to Xith-tk : org.xith3d.sgtree package, but it's still somewhat buggy (see if you can fix it).

I think org.xith3d.util.scenegraph would be a nice place to put it intto. Creating a separate package would flatten the hierarchy too much and make it unoverseeable (strange word Wink). Do you agree?

Marvin
Offline khangharoth

Junior Member




There is more to life than JAVA...But Java Rocks


« Reply #9 - Posted 2006-09-28 06:59:05 »

When I've finished the rendering optimizations there will (or could) be the possibility to add scenegraph change listeners. Maybe you want to make use of them Wink.

Yaa that will give more control on SceneGraph behaviour , and would be a cleaner way to do things .

As of now i set one Flag when i modify scenegraph and my rendering thread keeps track of that Flag
and if thier is any change it again renders the scene ,Not a very good way to do things but i dont want to
keep rendering even if thier is no change to scene.

With this approach i have to ask the rendering thread to render in case of any resize or system triggred
paint method, Again not a very clean way to do things.


Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Amos Wenger

Senior Member




Everything's possible, but not everything's fun...


« Reply #10 - Posted 2006-09-28 18:10:50 »

I think org.xith3d.util.scenegraph would be a nice place to put it intto. Creating a separate package would flatten the hierarchy too much and make it unoverseeable (strange word Wink). Do you agree?
Moved.

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

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

The first screenshot will be displayed as a thumbnail.

xsi3rr4x (63 views)
2014-04-15 18:08:23

BurntPizza (61 views)
2014-04-15 03:46:01

UprightPath (74 views)
2014-04-14 17:39:50

UprightPath (57 views)
2014-04-14 17:35:47

Porlus (75 views)
2014-04-14 15:48:38

tom_mai78101 (100 views)
2014-04-10 04:04:31

BurntPizza (160 views)
2014-04-08 23:06:04

tom_mai78101 (255 views)
2014-04-05 13:34:39

trollwarrior1 (208 views)
2014-04-04 12:06:45

CJLetsGame (215 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!