Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (480)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (546)
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 707 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 17: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 17: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 21: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!
Legends of Yore - The Casual Retro Roguelike
Offline croft

Junior Member




Java, Java, Java


« Reply #3 - Posted 2006-02-24 23: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.

 

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

The first screenshot will be displayed as a thumbnail.

atombrot (21 views)
2014-08-19 09:29:53

Tekkerue (21 views)
2014-08-16 06:45:27

Tekkerue (21 views)
2014-08-16 06:22:17

Tekkerue (12 views)
2014-08-16 06:20:21

Tekkerue (19 views)
2014-08-16 06:12:11

Rayexar (56 views)
2014-08-11 02:49:23

BurntPizza (37 views)
2014-08-09 21:09:32

BurntPizza (29 views)
2014-08-08 02:01:56

Norakomi (35 views)
2014-08-06 19:49:38

BurntPizza (65 views)
2014-08-03 02:57:17
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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!