Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (523)
Games in Android Showcase (127)
games submitted by our members
Games in WIP (592)
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  
  Bones Animations from Maya 6 complete  (Read 1792 times)
0 Members and 1 Guest are viewing this topic.
Offline ddchili

Senior Newbie





« Posted 2006-04-19 15:56:50 »

I am comming from a world of shockwave developed indie games and I would like to move to Java. So with that in mind, I'm looking for a scene graph loader that will allow me to call my model and animations from Maya 6 exported content. I've read this board and have been down many paths that lead to incompatabilities. Do I need to write my own loader for this behavior? I'm looking to accomplish the folloiwng with a humanoid model that has IK chains built in as animation nodes. For example:

Loader load = new Loader();
Model model = load.loadModel("/myModel.someformat");
model.setAnimation("walkCycle");
BonesPlayer bp = new BonesPlayer(model);
bp.play();

Or do I need to animate my nodes manually via code using the OBJLoader?  I've tried MD3 plugins but I can't load into Maya 6. I started down the path of COLLADA but I'm not sure if this is the path I should be following. Can anyone offer suggestions for where I should start here? I have not tried the maya to 3ds exporter yest but it sounds like I can call animations from it.

Thanks,
David
Offline Amos Wenger

Senior Devvie




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


« Reply #1 - Posted 2006-04-20 16:41:23 »

Go COLLADA : http://sourceforge.net/projects/colladamaya/  Grin Grin

"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 ddchili

Senior Newbie





« Reply #2 - Posted 2006-04-21 14:48:03 »

Thanks for the response! I started using ColladaLoader last night with Java 1.6 but had problems with my Intelli-J debugger so I revert back to jdk 1.5 and use Java WSDP for JAXB support.

 ...and David Croft's site is back up yayy! I'll be trying this out over the weekend.

Thanks,
David
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline croft

Junior Devvie




Java, Java, Java


« Reply #3 - Posted 2006-04-22 01:37:51 »

Thanks for the response! I started using ColladaLoader last night with Java 1.6 but had problems with my Intelli-J debugger so I revert back to jdk 1.5 and use Java WSDP for JAXB support.

 ...and David Croft's site is back up yayy! I'll be trying this out over the weekend.

I am going to migrate the COLLADA Loader to JAXB 2.0 in a month or so.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline ddchili

Senior Newbie





« Reply #4 - Posted 2006-04-24 14:46:15 »

Quote
I am going to migrate the COLLADA Loader to JAXB 2.0 in a month or so.
<br>

Thanks for the heads up. I did run into an issue when trying to use the XithColladaLoader. Upon execution, a runtime exception, no class found for org.whoola.core.behaviors.BehaviorImpl. I did not find this class when I downloaded src. I was using this inorder to create a Scene object. I was able to load using ColladaLoader and return the nodes back without a problem. Should I be using XithColladaLoader to use in Xith? Or is there a way to use a COLLADA type in Xith?

Thanks,
David
Offline croft

Junior Devvie




Java, Java, Java


« Reply #5 - Posted 2006-04-24 15:18:15 »

Thanks for the heads up. I did run into an issue when trying to use the XithColladaLoader. Upon execution, a runtime exception, no class found for org.whoola.core.behaviors.BehaviorImpl. I did not find this class when I downloaded src. I was using this inorder to create a Scene object. I was able to load using ColladaLoader and return the nodes back without a problem. Should I be using XithColladaLoader to use in Xith? Or is there a way to use a COLLADA type in Xith?

Did you mean org.xith3d.behaviors.impl.BehaviorImpl?  If so, look for it in xith-tk.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline ddchili

Senior Newbie





« Reply #6 - Posted 2006-04-24 16:10:23 »

Quote
Did you mean org.xith3d.behaviors.impl.BehaviorImpl?  If so, look for it in xith-tk.


Yeah, that's most likely the case. I thought I had xith-tk in my cp but I'll make sure once I'm in front of the code again. Do you have an example of manipulating a .dae model that was loaded using XithColladaLoader and then added to a Xith Scene? Is the Scene behavior the right way to manipulate a XithColladaLoader loaded .dae file in Xith?

Thanks so much!
David
Offline ddchili

Senior Newbie





« Reply #7 - Posted 2006-04-25 04:02:45 »

when I try:

xithLoaderObj.setBasePath("windoze file system path to .dae file");
xithScene =  xithLoaderObj.load(readerObj);

I receive a parsing exception:

Exception in thread "main" com.xith3d.loaders.ParsingErrorException
   at com.whoola.core.media.xith.XithColladaLoader.load(Unknown Source)
   at org.xith3d.loaders.ext.ExtensionLoader.load(ExtensionLoader.java:140)
   at com.xit.xit3d.testing.XitSceneTest.loadMayaScene(XitSceneTest.java:101)
   at com.xit.xit3d.testing.XitSceneTest.main(XitSceneTest.java:124)
Caused by: com.whoola.core.lang.NullArgumentException
   at com.whoola.core.lang.NullArgumentException.check(Unknown Source)
   at com.whoola.core.lang.NullArgumentException.checkArgs(Unknown Source)
   at com.whoola.core.media.xith.XithColladaImporter.importColladaType(Unknown Source)
   at com.whoola.core.media.xith.XithColladaLoader.createScene(Unknown Source)
   ... 4 more

But the same .dae file loads without error if I use ColladaLoader.   Huh
Offline croft

Junior Devvie




Java, Java, Java


« Reply #8 - Posted 2006-04-25 19:20:29 »

Yeah, that's most likely the case. I thought I had xith-tk in my cp but I'll make sure once I'm in front of the code again. Do you have an example of manipulating a .dae model that was loaded using XithColladaLoader and then added to a Xith Scene? Is the Scene behavior the right way to manipulate a XithColladaLoader loaded .dae file in Xith?

Once loaded, I manipulate the scenegraph using the Xith classes.  I am using Xith Behavior objects for animation.  Is this what you meant?

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Offline croft

Junior Devvie




Java, Java, Java


« Reply #9 - Posted 2006-04-25 19:24:38 »

Caused by: com.whoola.core.lang.NullArgumentException
   at com.whoola.core.lang.NullArgumentException.check(Unknown Source)
   at com.whoola.core.lang.NullArgumentException.checkArgs(Unknown Source)
   at com.whoola.core.media.xith.XithColladaImporter.importColladaType(Unknown Source)
   at com.whoola.core.media.xith.XithColladaLoader.createScene(Unknown Source)
   ... 4 more

I was just working on XithColladaImporter yesterday.  I added a bit more info to the NullArgumentException printout to assist with debugging.  Please do a CVS update on Whoola core and let me know how it goes.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline ddchili

Senior Newbie





« Reply #10 - Posted 2006-04-25 20:28:36 »

Quote
Once loaded, I manipulate the scenegraph using the Xith classes.  I am using Xith Behavior objects for animation.  Is this what you meant?

yep. That's the path I'm going on, thanks!

Quote
I was just working on XithColladaImporter yesterday.  I added a bit more info to the NullArgumentException printout to assist with debugging.  Please do a CVS update on Whoola core and let me know how it goes.

sounds good, I'll update tonight and report status afterwards.

Thanks David for all your help. I'm very excited to get my development pipeline working and start on characters from maya to be used in Xith.

David
Offline ddchili

Senior Newbie





« Reply #11 - Posted 2006-04-27 03:47:31 »

I grabbed the latest form cvs for module core this evening. do I need J2EE dependencies intsalled? I'm trying to run the ant build script "collada.xml" from core/bld/ but as you may have suspected, I have compile time errors. Do you have a list of dependencies I need?  Are all the dependencies listed in the build xml file?

Thanks.
Offline croft

Junior Devvie




Java, Java, Java


« Reply #12 - Posted 2006-04-28 02:47:31 »

I grabbed the latest form cvs for module core this evening. do I need J2EE dependencies intsalled? I'm trying to run the ant build script "collada.xml" from core/bld/ but as you may have suspected, I have compile time errors. Do you have a list of dependencies I need?  Are all the dependencies listed in the build xml file?

I replied in a new topic.

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.

SHC (21 views)
2014-11-25 12:00:59

SHC (19 views)
2014-11-25 11:53:45

Norakomi (18 views)
2014-11-25 11:26:43

Gibbo3771 (21 views)
2014-11-24 19:59:16

trollwarrior1 (36 views)
2014-11-22 12:13:56

xFryIx (74 views)
2014-11-13 12:34:49

digdugdiggy (52 views)
2014-11-12 21:11:50

digdugdiggy (46 views)
2014-11-12 21:10:15

digdugdiggy (41 views)
2014-11-12 21:09:33

kovacsa (67 views)
2014-11-07 19:57:14
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!