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 (289)
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  
  Toolkit cleanup  (Read 574 times)
0 Members and 1 Guest are viewing this topic.
Offline Amos Wenger

Senior Member




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


« Posted 2006-02-24 18:02:52 »

We need to clean up the xith toolkit :
  • For the geometry classes, some extends GeometryArray, some Shape3D. We need a common interface/design here.
  • For the loaders, we need a common interface too (does the actual Loader interface fit ?). Loader3ds isn't a good name for a package. Ext isn't at the good place (don't need a specific package).

"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 Yuri Vl. Gushchin

Senior Member




Speak Java!


« Reply #1 - Posted 2006-02-24 18:09:59 »

Hi,

Common interface for loaders was discussed a time ago, but discussion end up with nothing (OK, not really, but with the point that it is too complicated to find common points for most of the formats, especially ones that support animations etc., because of animation is defined and controlled format-specific way, and callers want to control animation etc. etc. etc.).

My suggestion is that you search through older (really older - maybe 1-1.5 years ago) posts in this forum, and we may give "loader standartization" effort another try - why not? at my opinion, at least static model loading can be standartized at least on very high level (like "Node loadFromResource(...)).

Yuri

Yuri Vl. Gushchin
JProof Group
Offline Amos Wenger

Senior Member




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


« Reply #2 - Posted 2006-02-24 22:50:46 »

at my opinion, at least static model loading can be standartized at least on very high level (like "Node loadFromResource(...)).
I agree.

Maybe we can have classes StaticModel, MD2AnimModel, 3DSAnimModel, etc.. And we haven't a skeletal animation lib yet..

"Once you start working on something, don't be afraid of failure and don't abandon it. People who work sincerely are the happiest"
Games published by our own members! Check 'em out!
Try the Free Demo of Droid Assault
Offline croft

Junior Member




Java, Java, Java


« Reply #3 - Posted 2006-02-25 00:23:00 »

For the loaders, we need a common interface too (does the actual Loader interface fit ?). Loader3ds isn't a good name for a package. Ext isn't at the good place (don't need a specific package).

For the Loaders, I strongly recommend that they extend from this abstract class:
http://xith.org/javadoc/com/xith3d/loaders/LoaderBase.html

Which implements this interface:
http://xith.org/javadoc/com/xith3d/loaders/Loader.html

This interface is based on the Java 3D API standard.

Here are two that I modified to implement this interface:
http://xith.org/javadoc/org/xith3d/loaders/obj/OBJLoader2.html
http://xith.org/javadoc/org/xith3d/loaders/md2/MD2Loader2.html

Here are two that were built to implement this interface orginally:
http://xith.org/javadoc/org/xith3d/loader3ds/Loader3DS.html
http://cvs.sourceforge.net/viewcvs.py/whoola/core/src/com/whoola/core/media/xith/XithColladaLoader.java?rev=1.22&view=auto

If they all implement the Loader interface, you minimize learning time and you can do tricks like this:
https://xith-tk.dev.java.net/source/browse/xith-tk/src/org/xith3d/loaders/ext/ExtensionLoader.java?rev=1.5&view=auto&content-type=text/vnd.viewcvs-markup
https://xith-tk.dev.java.net/source/browse/xith-tk/src/org/xith3d/loaders/ext/DefaultLoader.java?rev=1.5&view=auto&content-type=text/vnd.viewcvs-markup

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

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 (60 views)
2013-05-17 21:29:12

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

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

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

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

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

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

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

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

UnluckyDevil (175 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.094 seconds with 21 queries.