Chuck123's Profile
Reputation: 1
Apprentice
- Group:
- New Members
- Active Posts:
- 1 (0 per day)
- Joined:
- 20-July 11
- Profile Views:
- 26
- Last Active:
Jul 20 2011 06:39 AM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: [Java 3D] 3D Applet
Posted 20 Jul 2011
Sinned, on 26 February 2011 - 02:30 AM, said:I wanna create an java 3D Applet, who can run without the client have installed the Java3D plug-in.
Only an simple thing like only showing an Canvas3D is enough.
import java.awt.GridLayout; import java.awt.Panel; import javax.media.j3d.Canvas3D; import com.sun.j3d.utils.universe.SimpleUniverse; public class loader extends Panel { public loader() { setLayout(new GridLayout()); Canvas3D c = new Canvas3D(SimpleUniverse.getPreferredConfiguration()); SimpleUniverse u = new SimpleUniverse(c); u.getViewingPlatform().setNominalViewingTransform(); add(c); } }
Then I jar it and sign the jar.
I've allready tried to use the JNLP webloader.
But I've read that it's possible to let it work with only:
<applet code="loader" archive="loader.jar" width="200" height="200"></applet>
Some examples on the web (without source):
http://demo.dzzd.net...00/Racer3D.html
http://jmol.sourceforge.net/
http://world1.runescape.com/
These three examples I've found does only implement the applet with the applet tags, an signed applet and some parameters.
I know it is possible, but nowhere on the internet is an source found to do this.
Could someone help me with this problem?
Thanks in Advance,
Sinned
Java 3d does work with JNLP Here is a script I used
<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://quantum.soe.widener.edu:280/K16/Bottle/"
href="rocket3d.jnlp">
<information>
<title>3D Bottle Rocekt</title>
<vendor>Prof. C.R. Nipperth</vendor>
<homepage href="http://quantum.soe.widener.edu:280/K16/Bottle/"/>
<description>Bottle Rocket Simulation</description>
<!-- icon href=""/ -->
</information>
<security>
<all-permissions/>
</security>
<update check="always" policy="always"/>
<resources>
<j2se version="1.6+"/>
<extension href="http://download.java.net/media/java3d/webstart/release/java3d-latest.jnlp"/>
<jar href="rocket3d2.jar" main="true"/>
</resources>
<applet-desc main-class="rocket3d2.Rocket3DApplet"
name="bottle rocket applet"
width=900
height=600
>
</applet-desc>
</jnlp>
The SIGNED jar contains the applet Which also has a main) I developed the applet using an ancient Borland JBuilder 7 and Eclispe
You can view it at this link http://quantum.soe.w...3.asp?x=Bottle. The project simulates the launch of a 2 L bottle rocket used in high schools. Java 3d is not dead! It still works (especially if a developer has legacy code)
Chuck 123
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Private
Friends
Chuck123 hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
Chuck123 has no profile comments yet. Why not say hello?