Thx Justin ;) About this:
> 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 Eeeck. Were you connected to the internet at the time you did this? Nothing we can really do about that :( Well yes I was connected. I even checked the file by opening the file with IE. Jack PS: you're doing a great job! :) Justin Couch <[EMAIL PROTECTED]> Pour : [EMAIL PROTECTED] Envoyé par : cc : Discussion list for Objet : Re: [JAVA3D] Réf. : [JAVA3D] More X3D M6 Java 3D API <JAVA3D-INTEREST@JA VA.SUN.COM> 10/01/03 19:15 Veuillez répondre à Discussion list for Java 3D API Jacky Rymasz wrote: > 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'/> The problem is this bit. It's wrong. Quite franky, I would not trust _anything_ in those examples they're all wrong and far from spec compliant, even within the latest draft specs. Firstly, all those examples have the wrong PUBLIC ID. Next, the name attribute of the component must be one of the component names defined in the X3D specification. The FCD draft that was sent to ISO a week or so ago can be found here: http://www.web3d.org/TaskGroups/x3d/x3d_spints.html This is only the abstract specification, but it should at least give you the formal names of all of the components. > 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. Correct. This is another error in the examples. The type attribute is an MFString, which means when you want to provide more than one value, you need to quote each string separately in the attribute value. Right now, the way that example is written the type attribute has the value "EXAMINE ANY", which is not valid. What you really need to say is "EXAMINE" "ANY", so the real navInfo should be: <NavigationInfo type='"EXAMINE" "ANY"'/> > I also had to change the X3D profile to "Immersive" to get the <Text> > working. Correct. Text doesn't appear until that profile. If you wanted to include the text component and use a lower profile, you can use the <component> tag like you saw in the above example. > 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 Eeeck. Were you connected to the internet at the time you did this? Nothing we can really do about that :( > 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 Yes - they are the last published ones. There's a couple a little later than that, but mainly tweaking bits - nothing structural. > 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"; See the comment in an earlier mail about having the classpath set correctly so that we can resolve them. This error is from the HTML error page that is being returned by the web3d.org server. -- Justin Couch http://www.vlc.com.au/~justin/ Java Architect & Bit Twiddler http://www.yumetech.com/ Author, Java 3D FAQ Maintainer http://www.j3d.org/ ------------------------------------------------------------------- "Humanism is dead. Animals think, feel; so do machines now. Neither man nor woman is the measure of all things. Every organism processes data according to its domain, its environment; you, with all your brains, would be useless in a mouse's universe..." - Greg Bear, Slant ------------------------------------------------------------------- =========================================================================== 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".