I installed Xj3D M6 from the .exe on Win NT SP6. I have JDK 1.4.0.1 and J3D 1.3.
I tried the "hello world" example from http://www.web3d.org/TaskGroups/x3d/translation/examples/HelloWorld.html Here the code: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE X3D PUBLIC "+//Web3D//DTD X3D 3.0 Interactive//EN" "http://www.web3d.org/specification/x3d/x3d-3.0.dtd"> <X3D profile='Interchange'> <head> <component name='helloComponent' level='1'/> <meta name='filename' content='HelloWorld.x3d'/> <meta name='description' content='Simple X3D example'/> <meta name='created' content='30 October 2000'/> <meta name='revised' content='24 August 2002'/> <meta name='author' content='Don Brutzman'/> <meta name='url' content ='http://www.web3d.org/TaskGroups/x3d/translation/examples/HelloWorld.x3d'/> <meta name='generator' content='X3D-Edit, http://www.web3d.org/TaskGroups/x3d/translation/README.X3D-Edit.html'/> </head> <Scene> <!-- Example scene to illustrate X3D tags and attributes. --> <Group> <Viewpoint description='hello, world!' orientation='0 1 0 1.57' position='6 -1 0' centerOfRotation='0 0 0'/> <NavigationInfo type='EXAMINE ANY'/> <Shape> <Sphere/> <Appearance> <ImageTexture url='"earth-topo.png" "earth-topo-small.gif" "http://www.web3d.org/TaskGroups/x3d/translation/examples/earth-topo.png" "http://www.web3d.org/TaskGroups/x3d/translation/examples/earth-topo-small.gif"'/> </Appearance> </Shape> <Transform rotation='0 1 0 1.57' translation='0 -2 1.25'> <Shape> <Text string='"Hello" "world!"'/> <Appearance> <Material diffuseColor='0.1 0.5 1'/> </Appearance> </Shape> </Transform> </Group> </Scene> </X3D> After changing the DOCTYPE, I got this exception (I show only the first few lines): org.web3d.vrml.lang.VRMLException: SAX Error: org.web3d.vrml.lang.UnsupportedComponentException: There is no definition information for the component helloComponentorg.web3d.vrml.lang.UnsupportedComponentException: There is no definition information for the component helloComponent at org.web3d.vrml.renderer.DefaultNodeFactory.addComponent(DefaultNodeFactory.java:390) at org.web3d.vrml.renderer.CRMainSceneBuilder.componentDecl(CRMainSceneBuilder.java:492) at org.web3d.vrml.renderer.j3d.J3DVRMLSceneBuilder.componentDecl(J3DVRMLSceneBuilder.java:309) at org.web3d.x3d.jaxp.X3DSAVAdapter.startElement(X3DSAVAdapter.java:634) Is the example wrong??? I decided to remove the <component > tag and now I've got this exception: org.web3d.vrml.lang.VRMLException: SAX Error: java.lang.NullPointerException: Value was nulljava.lang.NullPointerException: Value was null at org.web3d.vrml.lang.SceneMetaData.addMetaData(SceneMetaData.java:216) at org.web3d.vrml.renderer.CRMainSceneBuilder.metaDecl(CRMainSceneBuilder.java:513) at org.web3d.vrml.renderer.j3d.J3DVRMLSceneBuilder.metaDecl(J3DVRMLSceneBuilder.java:330) at org.web3d.x3d.jaxp.X3DSAVAdapter.startElement(X3DSAVAdapter.java:743) After removing all the <meta> tags I had to add "" to the description of the Viewpoint ('"hello, world!"') and the type of the NavigationInfo ('"EXAMINE ANY"') I had to remove the <NavigationInfo> tag because the navigation state was unknown. I also had to change the X3D profile to "Immersive" to get the <Text> working. Finally I got a white sphere with the text under it but I got this Exception: Warning: IO Error reading external file http://www.web3d.org :80/TaskGroups/x3d/translation/examples/earth-topo.png www.web3d.org java.net.UnknownHostException: www.web3d.org at java.net.InetAddress.getAllByName0(InetAddress.java:920) at java.net.InetAddress.getAllByName0(InetAddress.java:890) at java.net.InetAddress.getAllByName(InetAddress.java:884) at HTTPClient.HTTPConnection.getSocket(HTTPConnection.java:3104) at HTTPClient.HTTPConnection.sendRequest(HTTPConnection.java:2879) at HTTPClient.HTTPConnection.handleRequest(HTTPConnection.java:2715) at HTTPClient.HTTPConnection.setupRequest(HTTPConnection.java:2507) at HTTPClient.HTTPConnection.Get(HTTPConnection.java:905) at HTTPClient.HTTPConnection.Get(HTTPConnection.java:824) at vlc.net.protocol.http.HttpConnection.connect(HttpConnection.java:253) at org.web3d.vrml.nodes.loader.AbstractContentLoader$1.run(AbstractContentLoader.java:152) at java.security.AccessController.doPrivileged(Native Method) at org.web3d.vrml.nodes.loader.AbstractContentLoader.makeConnection(AbstractContentLoader.java:149) at org.web3d.vrml.nodes.loader.ContentLoader.loadExternal(ContentLoader.java:303) at org.web3d.vrml.nodes.loader.ContentLoader.run(ContentLoader.java:203) at java.lang.Thread.run(Thread.java:536) But this picture exists in my Xj3D rep and also I check the "http://www.web3d.org:80/TaskGroups/x3d/translation/examples/earth-topo.png". Both exist. Why so many corrections have to be made and why is it still not working properly? Are the dtds int the DTD rep of Xj3D the correct version??? The version of the x3d-3.0.dtd is: # current version: 0.9.19 # # revised: 31 December 2002 I install the X3D examples (on the root c:\) and I got the Exception: org.web3d.vrml.lang.VRMLException: SAX Error: org.xml.sax.SAXException: URI=null Line=2: URI relative "/www.web3d.org/TaskGroups/x3d/translation/x3d-3.0.dtd"; ne peut �tre r�solue sans URI de base.org.xml.sax.SAXException: URI=null Line=2: URI relative "/www.web3d.org/TaskGroups/x3d/translation/x3d-3.0.dtd"; ne peut �tre r�solue sans URI de base. at org.web3d.x3d.jaxp.X3DErrorHandler.fatalError(X3DErrorHandler.java:87) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3185) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3176) at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2758) for all the examples I try to run :(( What am I doing wrong??? Jack PS: Sorry for this long mail! :) "Michael P. McCutcheon" Pour : [EMAIL PROTECTED] <[EMAIL PROTECTED] cc : > Objet : [JAVA3D] More X3D Envoy� par : Discussion list for Java 3D API <JAVA3D-INTEREST@JA VA.SUN.COM> 10/01/03 07:08 Veuillez r�pondre � Discussion list for Java 3D API How come this simple model does not work? I keep getting an ugly exception below. Funny thing is, if I replace the url="flaresmall.jpg" with url='"flaresmall.jpg"' is parses but nothing shows up on the sphere. What am I doing wrong? <?xml version="1.0"?> <!DOCTYPE X3D PUBLIC "+//Web3D//DTD X3D 3.0 Interactive//EN" "/www.web3D.org/TaskGroups/x3d/translation/x3d-compact.dtd"> <X3D profile="Interactive"> <Scene> <Transform translation="0 0 -3" > <Shape> <Sphere radius=".5" /> <Appearance > <ImageTexture url="flaresmall.jpg" /> </Appearance> </Shape> </Transform> </Scene> </X3D> Exception in thread "main" org.web3d.parser.x3d.TokenMgrError: Lexical error at line 1, column 2. E ncountered: "l" (108), after : "f" at org.web3d.parser.x3d.X3DFieldParserTokenManager.getNextToken(X3DFieldParserTokenManager.j ava:550) at org.web3d.parser.x3d.X3DFieldParser.jj_ntk(X3DFieldParser.java:1932) at org.web3d.parser.x3d.X3DFieldParser.MFString(X3DFieldParser.java:820) at org.web3d.parser.x3d.X3DFieldReader.MFString(X3DFieldReader.java:469) at org.web3d.vrml.renderer.j3d.nodes.texture.J3DImageTexture.setRawValue(J3DImageTexture.jav a:871) =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". ==========================================================================To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAVA3D-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
