Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (553)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1] 2
  ignore  |  Print  
  Import/Export for COLLADA 1.4 now available  (Read 7456 times)
0 Members and 1 Guest are viewing this topic.
Offline croft

Junior Member




Java, Java, Java


« Posted 2006-03-03 04:15:48 »

I have upgraded the Whoola code from COLLADA 1.3 to COLLADA 1.4. You can see demos here:

Whoola Cyberspace -- 3D browser
http://earth.whoola.com:8080/space/cyber/

Whoola COLLADA Converter -- converts to COLLADA format
http://earth.whoola.com:8080/space/collada/

The import/export code works with Xith, an Open Source scene graph renderer for Java:
http://www.xith.org/

The Java source code is available under the terms of an Open Source license from SourceForge.net:
http://whoola.sf.net/

Javadoc for the COLLADA 1.4 Schema converted to Java using JAXB:
http://earth.whoola.com:8080/javadoc/collada/

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

Senior Member




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


« Reply #1 - Posted 2006-03-03 13:02:53 »

Good job !  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 Goliat

Junior Member





« Reply #2 - Posted 2006-03-12 18:53:29 »

howdy
i'd like to try it ... but i got confused when i tried to get a working copy of the loader

a: i found out that the loader is part of whoola's core package
b: whoola core depends on jaxb ( 1 or 2 ? ) ... where do i get this? ( googling 'jaxb' points me here: https://jaxb.dev.java.net/ ... do i have to download this 'JAXB 2.0 Javadoc & RI Early Access 3' thing? )
c: whoola core's ant files are written for windows while fixing paths for linux i found dependencies on j2EE do i have to install that too?
d: i searched for 'collada' on the xith forums and found several topics where croft said that the loader would be added in the xith toolkit ... but afaik it wasn't commited

e: who do i get a running build of the xith collada loader?
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-03-13 12:16:58 »

howdy
i'd like to try it ... but i got confused when i tried to get a working copy of the loader

a: i found out that the loader is part of whoola's core package
b: whoola core depends on jaxb ( 1 or 2 ? ) ... where do i get this? ( googling 'jaxb' points me here: https://jaxb.dev.java.net/ ... do i have to download this 'JAXB 2.0 Javadoc & RI Early Access 3' thing? )
c: whoola core's ant files are written for windows while fixing paths for linux i found dependencies on j2EE do i have to install that too?
d: i searched for 'collada' on the xith forums and found several topics where croft said that the loader would be added in the xith toolkit ... but afaik it wasn't commited

e: who do i get a running build of the xith collada loader?


You are probably the first to attempt to use the COLLADA Loader other than myself.  I am please to find someone else who is interested in this kind of thing.  I would be happy to help you make this work in return for feedback.

I have hesitated in adding the COLLADA Loader to the Xith repository because of the JAXB external library dependencies.  Java 6 Beta is out and it appears to have JAXB as part of the core now.  I am getting ready to try running the COLLADA Loader under Java 6 to see if I can eliminate the external library dependencies.

My other hesitation in adding the COLLADA Loader to the Xith repository is that it is written in Java 5.  Xith contributions are currently restricted to Java 1.4.  Are you running your application under Java 5 or 6?

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

JGO Coder


Projects: 2


Fire at will


« Reply #4 - Posted 2006-03-13 12:54:23 »

Hi,

Great job!  While I'm not using it myself, I am following COLLADA with interest, it seems to be gaining some traction.

You may be able to add it into the toolkit soon if we go to 5.0.  Dependancies in the TK are ok, so long as the stroage space needed isn't too huge.

Cheers,

Will.

Offline croft

Junior Member




Java, Java, Java


« Reply #5 - Posted 2006-03-13 14:18:31 »

e: who do i get a running build of the xith collada loader?

OK, I created a cleaner build script for the loader.  I documented it at the bottom of this javadoc webpage:
http://earth.whoola.com:8080/javadoc/core/com/whoola/core/media/xith/package-summary.html

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

Junior Member





« Reply #6 - Posted 2006-03-13 18:18:06 »

i'll be glad to give you some feedback as soon as i have time to try it

actually i didn't knew what collada was until i was pointed at it in my x3d thread ... but as it looks it'll save me from implementing a x3d loader myself Wink

[edit]i use java 5 for my personal projects and compile xith myself using jdk 5.0
[edit2]the sourceforge cvs seems to be down again ... i guess you won't package your source and post it here?
Offline Amos Wenger

Senior Member




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


« Reply #7 - Posted 2006-03-13 19:39:37 »

We have to modify xith website to provide "best practices" for game developers : "Use Collada format", and so on.

Croft, I'll test collada as soon as I'll be in the "import graphics into the game" phase, and I'll give you some feedback also.

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

Junior Member





« Reply #8 - Posted 2006-03-14 17:17:39 »

sourceforge cvs is still broken ( or am i missing something? ) you won't mind packaging your source?

btw: starting Whoola Cyberspace fails to start on "Gentoo Linux" with "2.6.15-gentoo-r1" kernel and java 1.5.0_06 giving this error:

Quote
JAR-ressources in JNLP-File aren't signed with the same certificate (free translated from german)

and this exception:

Quote
JNLPException[category: Startdateifehler : Exception: null : LaunchDesc:
<jnlp spec="1.0+" codebase="http://earth.whoola.com:8080/space/cyber/" href="http://earth.whoola.com:8080/space/cyber/cyber.jnlp">
  <information>
    <title>Whoola Cyberspace</title>
    <vendor>Whoola, Inc.</vendor>
    <homepage href="http://earth.whoola.com:8080/space/cyber/"/>
    <description>Whoola Cyberspace</description>
    <description kind="short">Whoola Cyberspace</description>
    <description kind="one-line">Whoola Cyberspace</description>
    <description kind="tooltip">Whoola Cyberspace</description>
    <icon href="http://earth.whoola.com:8080/space/cyber/icon/default.gif" kind="default"/>
    <icon href="http://earth.whoola.com:8080/space/cyber/icon/disabled.gif" kind="disabled"/>
    <icon href="http://earth.whoola.com:8080/space/cyber/icon/rollover.gif" kind="rollover"/>
    <icon href="http://earth.whoola.com:8080/space/cyber/icon/selected.gif" kind="selected"/>
    <icon href="http://earth.whoola.com:8080/space/cyber/icon/shortcut.gif" kind="default"/>
    <icon href="http://earth.whoola.com:8080/space/cyber/icon/splash.jpg" kind="splash"/>
    <shortcut online="true">
      <menu submenu="Whoola"/>
    </shortcut>
    <offline-allowed/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+"/>
    <jar href="http://earth.whoola.com:8080/space/cyber/whoola_cyberspace.jar" download="eager" main="true"/>
    <jar href="http://earth.whoola.com:8080/space/jaxb/chatjaxb.jar" download="eager" main="false"/>
    <jar href="http://earth.whoola.com:8080/space/game/vecmath/vecmath.jar" version="2004-09-07" download="eager" main="false"/>
    <extension href="http://earth.whoola.com:8080/space/ext/commons/logging/logging.jnlp"/>
    <extension href="http://earth.whoola.com:8080/space/game/jogl/jogl.jnlp"/>
    <extension href="http://earth.whoola.com:8080/space/jaxb/jaxb.jnlp"/>
    <extension href="http://earth.whoola.com:8080/space/speech/speech.jnlp" name="speech"/>
  </resources>
  <application-desc main-class="com.whoola.game.cyber.CyberMain">
    <argument>           sceneUrl=examples/shuttle/scene.dae         </argument>
  </application-desc>
</jnlp> ]
   at com.sun.javaws.LaunchDownload.checkSignedResourcesHelper(LaunchDownload.java:1023)
   at com.sun.javaws.LaunchDownload.checkSignedResources(LaunchDownload.java:925)
   at com.sun.javaws.Launcher.continueLaunch(Launcher.java:814)
   at com.sun.javaws.Launcher.handleApplicationDesc(Launcher.java:515)
   at com.sun.javaws.Launcher.handleLaunchFile(Launcher.java:218)
   at com.sun.javaws.Launcher.run(Launcher.java:165)
   at java.lang.Thread.run(Thread.java:595)
Offline TheFieryShadow

Senior Newbie





« Reply #9 - Posted 2006-03-14 17:29:55 »

Croft, would you be willing to post some sort of quick tutorial on getting the Collada loader set up and a model loaded into a Xith application?  I have been looking into different formats to use for models in my game, and I am really interested in trying out the Collada format.  I was going to try to use the build script to create the jar files but the CVS access seems to be down (as I believe others have pointed out).  Is there another place I can get the jar files for the loader, and if so which ones do I need?  Any help would be appreciated, thanks!  I will definitely give some feedback if I can get it working.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline croft

Junior Member




Java, Java, Java


« Reply #10 - Posted 2006-03-15 03:05:11 »

[edit2]the sourceforge cvs seems to be down again ... i guess you won't package your source and post it here?

The "Browse CVS Repository" function is still down.  Don't know why.  On one of my other SourceForge.net projects it is working just fine.  If it is still down in a couple of days, I will e-mail the admins.

I would guess that you could still checkout a module from the CVS library even if you cannot browse it.  Try grabbing module "core" and looking in the "bld" subdirectory for the new Ant build file, "collada.xml".
https://sourceforge.net/cvs/?group_id=114095

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

Junior Member




Java, Java, Java


« Reply #11 - Posted 2006-03-15 03:14:16 »

Quote
JAR-ressources in JNLP-File aren't signed with the same certificate (free translated from german)

I had to resign my certificate yesterday because it expired.  I uploaded a new version.  I'm guessing there are some old cached JAR files and new ones mixed.  Please try clearing your Java Web Start cache and letting me know if that fixes it.

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

Junior Member




Java, Java, Java


« Reply #12 - Posted 2006-03-15 03:23:48 »

Croft, would you be willing to post some sort of quick tutorial on getting the Collada loader set up and a model loaded into a Xith application?  I have been looking into different formats to use for models in my game, and I am really interested in trying out the Collada format.  I was going to try to use the build script to create the jar files but the CVS access seems to be down (as I believe others have pointed out).  Is there another place I can get the jar files for the loader, and if so which ones do I need?  Any help would be appreciated, thanks!  I will definitely give some feedback if I can get it working.

OK, I will try to do that Thursday or Friday.  Please remind me if I forget.  It should be just like use any other loader that derives from LoaderBase.  You probably want to actually use XithLoader which uses XithColladaLoader under the covers:
http://earth.whoola.com:8080/javadoc/core/com/whoola/core/media/xith/XithLoader.html
http://earth.whoola.com:8080/javadoc/core/src-html/com/whoola/core/media/xith/XithLoader.html

I am hoping that the CVS checkout function works even though the CVS browse does not.  Please let me know.

I will work on uploading a JAR snapshot now.

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

Senior Newbie





« Reply #13 - Posted 2006-03-15 04:10:38 »

OK, I will try to do that Thursday or Friday.  Please remind me if I forget.  It should be just like use any other loader that derives from LoaderBase.  You probably want to actually use XithLoader which uses XithColladaLoader under the covers:
http://earth.whoola.com:8080/javadoc/core/com/whoola/core/media/xith/XithLoader.html
http://earth.whoola.com:8080/javadoc/core/src-html/com/whoola/core/media/xith/XithLoader.html

I am hoping that the CVS checkout function works even though the CVS browse does not.  Please let me know.

I will work on uploading a JAR snapshot now.

Thanks a lot, I will do that.  Assuming I am doing everything correctly, I keep timing out even if I attempt to do a CVS checkout...
Offline croft

Junior Member




Java, Java, Java


« Reply #14 - Posted 2006-03-15 04:59:10 »

pointed out).  Is there another place I can get the jar files for the loader, and if so which ones do I need?  Any help would be appreciated,

I put out a file release with the compiled JAR files.  I have not had time to test them yet:
http://sourceforge.net/project/showfiles.php?group_id=114095&package_id=154144

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

Senior Newbie





« Reply #15 - Posted 2006-03-15 12:09:40 »

Disregard my message below for now, I found that these class files are part of the Xith toolkit that I didn't have...

I put out a file release with the compiled JAR files.  I have not had time to test them yet:
http://sourceforge.net/project/showfiles.php?group_id=114095&package_id=154144

Thanks, I downloaded these jar files and am working on getting things going.  Now, however, I'm running into problems with missing class files at runtime (for example, DefaultLoader and BehaviorFactory).  Are these a part of something else or should those be in the jar files you released?
Offline TheFieryShadow

Senior Newbie





« Reply #16 - Posted 2006-03-15 15:57:07 »

I believe I have it working, I was able to load your space shuttle into my game as a test.  Does the loader import any animation info from the Collada file, or is this not supported yet?
Offline Amos Wenger

Senior Member




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


« Reply #17 - Posted 2006-03-15 16:18:41 »

Yes, I think Animation is supported, at least I saw it working on JWS demo.

Croft, this should be included in the toolkit. I see you're building new jars..

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

Junior Member





« Reply #18 - Posted 2006-03-15 17:14:17 »

i can comfirm that cvs checkout doesn't work and hasn't worked when i tried the last days
and the browser webstart application works again Smiley

thanks for the release ... test starting now ...
[edit] after some tweaking ( i wasn't using the latest cvs version of xith3d ) i got it working and have sucessfully displayed a testscene ... but my dcc (blender) is unable to output collada 1.4.0 ... is there a way to enable backward compability to 1.3.1 ?
[edit2]i think that it's somewhat annoying that the loader restricts the extension to be .dae ( on the other hand this is a flaw in xmlbuddy ( eclipse plugin ) as it opens .xml files only )
Offline Amos Wenger

Senior Member




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


« Reply #19 - Posted 2006-03-16 17:27:28 »

Maybe we can contribute to COLLADA blender exporter, so it can export to COLLADA 1.4 ?
More seriously yes it would be good if we could import 1.3.1

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

Junior Member





« Reply #20 - Posted 2006-03-16 20:01:27 »

Quote
Maybe we can contribute to COLLADA blender exporter, so it can export to COLLADA 1.4 ?
i was looking into that yesterday:
the original author of this tool has stopped his support but there are some people to claim they are working on a 1.4 version but cvs doesn't show any changes in 1.4 direction
but i don't speak python so i won't be able to contribute :/
Offline croft

Junior Member




Java, Java, Java


« Reply #21 - Posted 2006-03-17 12:36:15 »

i can comfirm that cvs checkout doesn't work and hasn't worked when i tried the last days
and the browser webstart application works again Smiley

It looks like SourceForge is working on the CVS problem.  Their status webpage states
"Project CVS Service:      Partial Outage In-Progress         Last updated: 2006-03-13 Pacific".
https://sourceforge.net/docs/A04/

Did you have to flush your Java Web Start cache to get it to work?

[edit] after some tweaking ( i wasn't using the latest cvs version of xith3d ) i got it working and have sucessfully displayed a testscene ... but my dcc (blender) is unable to output collada 1.4.0 ... is there a way to enable backward compability to 1.3.1 ?

I had a choice as to whether to support both 1.3 and 1.4 or just to migrate to 1.4 exclusively.  I chose the latter because I figured people would stop using 1.3 pretty quickly and I did not want to have to continue to fix bugs in the 1.3 code.

Unfortunately, upgrading from 1.3 to 1.4 proved to be a bear for many of the vendors who support COLLADA including the Open Source guys.  I myself regret my decision as my code was in a broken state for 2 months while I made the transition.

I also wish I had structured my code changes to support both as it would have enabled me to use Whoola COLLADA Converter to convert from 1.3 to 1.4.  I had to upgrade many of my example files from 1.3 to 1.4 by hand.  If you have the original files in another format besides COLLADA 1.3, Whoola COLLADA Converter might be able to convert them to 1.4 for you:
http://earth.whoola.com:8080/space/collada/

[edit2]i think that it's somewhat annoying that the loader restricts the extension to be .dae ( on the other hand this is a flaw in xmlbuddy ( eclipse plugin ) as it opens .xml files only )

Ah, there is a workaround.  Instead of using XithLoader, a subclass of filename ExtensionLoader which routes .dae files to XithColladaLoader, use XithColladaLoader directly.  I'll add this to the javadoc instructions.
http://earth.whoola.com:8080/javadoc/core/com/whoola/core/media/xith/XithLoader.html
http://earth.whoola.com:8080/javadoc/core/com/whoola/core/media/xith/XithColladaLoader.html
http://earth.whoola.com:8080/javadoc/core/com/whoola/core/media/xith/package-summary.html

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

Junior Member




Java, Java, Java


« Reply #22 - Posted 2006-03-17 12:55:30 »

Maybe we can contribute to COLLADA blender exporter, so it can export to COLLADA 1.4 ?
More seriously yes it would be good if we could import 1.3.1

I would love to see COLLADA support in Art of Illusion, one of the most popular Open Source Java projects on SourceForge:
http://aoi.sourceforge.net/

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

Senior Member




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


« Reply #23 - Posted 2006-03-17 16:39:47 »

Quote
Maybe we can contribute to COLLADA blender exporter, so it can export to COLLADA 1.4 ?
i was looking into that yesterday:
the original author of this tool has stopped his support but there are some people to claim they are working on a 1.4 version but cvs doesn't show any changes in 1.4 direction
but i don't speak python so i won't be able to contribute :/
I don't speak Python either, so yes we just have to wait and see, but maybe we can just tell them there are many people interested ?

"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 Amos Wenger

Senior Member




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


« Reply #24 - Posted 2006-03-17 16:41:07 »

Maybe we can contribute to COLLADA blender exporter, so it can export to COLLADA 1.4 ?
More seriously yes it would be good if we could import 1.3.1

I would love to see COLLADA support in Art of Illusion, one of the most popular Open Source Java projects on SourceForge:
http://aoi.sourceforge.net/
Tell them !

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

Junior Member




Java, Java, Java


« Reply #25 - Posted 2006-03-21 16:16:02 »

It looks like SourceForge is working on the CVS problem.  Their status webpage states
"Project CVS Service:      Partial Outage In-Progress         Last updated: 2006-03-13 Pacific".
https://sourceforge.net/docs/A04/

SourceForge CVS support is back up:
http://cvs.sourceforge.net/viewcvs.py/whoola/
http://sourceforge.net/cvs/?group_id=114095

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

Senior Newbie





« Reply #26 - Posted 2006-04-23 14:20:25 »

hey there,

I just wanted to load a COLLADA file with your fine loader, but it somehow doesn't like my file.
This has been created in Maya 7.0 using ColladaMaya 0.86 and the .dae file itself looks superficially alright and seems to be in right version format:

1  
<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.0">


but when trying to load it using XithColladaLoader it gives me:

1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
37  
38  
39  
Exception in thread "main" com.xith3d.loaders.ParsingErrorException
   at com.whoola.core.media.xith.XithColladaLoader.load(Unknown Source)
   at de.hh.gtgetest.HelloXith3D.<init>(HelloXith3D.java:60)
   at de.hh.gtgetest.HelloXith3D.main(HelloXith3D.java:35)
Caused by: java.io.IOException
   at com.whoola.core.text.xml.bind.JaxbCoder.parse(Unknown Source)
   at com.whoola.core.media.collada.ColladaLoader.load(Unknown Source)
   at com.whoola.core.media.collada.ColladaLoader.load(Unknown Source)
   ... 3 more
Caused by: javax.xml.bind.UnmarshalException: unexpected attribute "id"
 - with linked exception:
[com.sun.msv.verifier.ValidityViolation: unexpected attribute "id"]
   at org.collada._2005._11.colladaschema.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(Unknown Source)
   at org.collada._2005._11.colladaschema.impl.runtime.ErrorHandlerAdaptor.propagateEvent(Unknown Source)
   at org.collada._2005._11.colladaschema.impl.runtime.ErrorHandlerAdaptor.error(Unknown Source)
   at com.sun.msv.verifier.Verifier.onError(Verifier.java:371)DefaultValidationEventHandler: [ERROR]: unexpected attribute "id"
     Location: line 269

   at com.sun.msv.verifier.Verifier.onError(Verifier.java:363)
   at com.sun.msv.verifier.Verifier.feedAttribute(Verifier.java:294)
   at com.sun.msv.verifier.Verifier.startElement(Verifier.java:221)
   at com.sun.msv.verifier.VerifierFilter.startElement(VerifierFilter.java:97)
   at org.iso_relax.verifier.impl.ForkContentHandler.startElement(Unknown Source)
   at org.collada._2005._11.colladaschema.impl.runtime.ValidatingUnmarshaller.startElement(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
   at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
   at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.collada._2005._11.colladaschema.impl.runtime.UnmarshallerImpl.unmarshal(Unknown Source)
   at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
   at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:105)
   ... 6 more
Caused by: com.sun.msv.verifier.ValidityViolation: unexpected attribute "id"
   at com.sun.msv.verifier.Verifier.onError(Verifier.java:367)
   ... 23 more


I've checked the dae file and the mentioned line (269) contains the second source opening-tag of library-geometries/geometry/spline

'tis strange..

any help highly regarded.....
palin
Offline Amos Wenger

Senior Member




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


« Reply #27 - Posted 2006-04-24 12:46:55 »

I didn't used the COLLADA importer, but I guess it's because spline geometry isn't supported. Maybe you have to convert your object to triangle mesh.

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

Junior Member




Java, Java, Java


« Reply #28 - Posted 2006-04-24 15:13:51 »

[com.sun.msv.verifier.ValidityViolation: unexpected attribute "id"]
   at org.collada._2005._11.colladaschema.impl.runtime.SAXUnmarshallerHandlerImpl.handleEvent(Unknown Source)
   at org.collada._2005._11.colladaschema.impl.runtime.ErrorHandlerAdaptor.propagateEvent(Unknown Source)
   at org.collada._2005._11.colladaschema.impl.runtime.ErrorHandlerAdaptor.error(Unknown Source)
   at com.sun.msv.verifier.Verifier.onError(Verifier.java:371)DefaultValidationEventHandler: [ERROR]: unexpected attribute "id"
     Location: line 269

I recognize that error.  My importer is stricter than most exporters about conformity to the XML Schema since I am using JAXB.  Please e-mail an example DAE file directly to david@croftsoft.com so I can verify.

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

Junior Member




Java, Java, Java


« Reply #29 - Posted 2006-05-03 04:39:33 »

I recognize that error.  My importer is stricter than most exporters about conformity to the XML Schema since I am using JAXB.  Please e-mail an example DAE file directly to david@croftsoft.com so I can verify.

OK, I received your example.  The bad lines are the ones like this:
<control_vertices id="curveShape1-lib-ControlVertex">

In the XML Schema for COLLADA, no "id" attribute is defined for element "control_vertices".  If you manually delete the four or five instances in your example where these occur, the error goes away.

I see that you used ColladaMaya v0.86 to export the file.  I also see that there is a new version out, v0.89.  Please try with the new version of ColladaMaya and let me know if the "id" attribute problem goes away.

Once that is resolved or reported as a bug, I can then work with you to implement splines in the Whoola COLLADA Loader.

David Wallace Croft / www.CroftSoft.com / (214) 636-3790 m / Advanced Java Game Programming
Pages: [1] 2
  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.

TehJavaDev (12 views)
2014-08-28 18:26:30

CopyableCougar4 (24 views)
2014-08-22 19:31:30

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

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

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

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

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

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

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

BurntPizza (33 views)
2014-08-08 02:01:56
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!