You can Load VRML and Navigate around after setting ------------------------------- ALLOW_CHILDREN_EXTEND bits ( as you asked ) using Sun's VRML Loaders ( vrml97.jar ) as has been described ( see below ) in the HaldenNavigation Demo.
Load VRML, Navigate around using Halden Navigation Demo ------------------------------------------------------- | | This simple VRML viewer is inteneded mainly as a | demonstration for programmers interested in using VRML | and the Java 3D API. | | The code was developed because we wanted good performance | when navigating virtual environments. | | It was also important for us that users unacustomed to | 3D environments could quickly and intuitively move around. | | Before we considered Java 3D to be stable enough, we | created applet-based solutions using a web browser with a | VRML External Authoring Interface connection to Cosmo Player. | [ one of the old-style VRML plug-in viewers ] | | This was too unstable for us and there were problems with | performance and flexibility. | | We have been using Java 3D since Java 3D 1.2 was released | and our navigation code really gave a boost to our work, | which is the reason why this page is here to share it! | | To run the VRML viewer you should have Java 2 and Java 3D | 1.2.1 properly installed. | | You also need Sun's VRML loader, x3d.jar [ or VRML97.jar ], | ------------------------------- in your CLASSPATH. ... | | Download the Navigation Software demonstration (~110KB zip file) | http://www.external.hrp.no/vr/projects/java3d/navigation/License.html | http://www.external.hrp.no/vr/projects/java3d/navigation/ http://www.external.hrp.no/vr/projects/java3d/navigation/image.jpg
VRML Navigation Demo: HaldenNavigation Demo, uses vrml97.jar ------------------------------------------------------------ | Morten Gustavsen wrote: | | We at Halden VR Centre have developed code | that boosts performance for Java3D navigation | and improves the feeling of navigating a 3D world. | | The code was developed because we wanted good performance | when navigating large virtual environments. | | The source code may be modified and distributed freely. | | Please have a look at: | http://www.ife.no/vr/projects/java3d/navigation/ | ------------------------------------------------ | | This page will be updated continously as we work. | | Regards, | | Halden VR Centre | HVRC on the web : http://www.ife.no/vr/ | E-mail : [EMAIL PROTECTED] | P.O. Box 173, N-1751 Halden, Norway |
http://archives.java.sun.com/cgi-bin/wa?A2=ind0012&L=java3d-interest&P=R49576
Cassia Trojahn dos Santos wrote:
I'm trying load a vrml file in an applet, with VrmlLoader.
But, I got the following exception:
exception: java.security.AccessControlException: access denied (java.lang.RuntimePermission createClassLoader)
Do you had this problem before? How to handle it? Following my fragment code:
protected URL getURL(String filename) { URL codeBase = getCodeBase(); URL url = null; try { url = new URL(codeBase, filename); } catch (java.net.MalformedURLException e) { System.err.println("Erro"); return null; } return url; } ............ arquivoAmbiente = getURL("ambiente.wrl"); ............. VrmlLoader loader = new VrmlLoader(); bg.setCapability(Group.ALLOW_CHILDREN_EXTEND); addKbdNavig(universe,bg); try { s = loader.load(arquivo); } catch (FileNotFoundException e) { } catch (ParsingErrorException e) { } catch (IncorrectFormatException e) { } ........... Please, help-me! Thanks a lot.
| http://archives.java.sun.com/cgi-bin/wa?A2=ind0307&L=java3d-interest&P=50957
Download the above ".zip" file, unzip it, and look in Ddd.java & DddView.java and you'll find setCapability( Group.ALLOW_CHILDREND_EXTEND ) used successfully.
I ran this demo on my Linux system with this command:
java -cp .:vrml9.jar Ddd vrml/vrlab/vrlab.wrl
VRML Loaders used by Nasa, Sun, HaldenVR, me & others ... -------------------------------------------------------- http://www.frontiernet.net/~imaging/java3d_and_vrml.html http://www.frontiernet.net/~imaging/vrml_loaders_working.html http://java3d.netbeans.org/j3deditor_intro.html http://fastscript3d.jpl.nasa.gov/gallery.html http://www.external.hrp.no/vr/projects/java3d/navigation/
The Sun VRML Loaders can load & animate Web3d.org VRML Avatars in a browser without certificates or additonal installs beyond the standard Java3d library and OpenGL or DirectX.
-- Paul, Java Developer & Web Animator -------------------------------------- Imaging the Imagined: Modeling with Math & a Keyboard
=========================================================================== 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".
<<inline: HaldenNavigationVrmlDemo.jpg>>
