[Java 3D] 3D Applet

Page 1 of 1

7 Replies - 1962 Views - Last Post: 15 August 2013 - 08:46 PM Rate Topic: -----

#1 Sinned  Icon User is offline

  • D.I.C Head

Reputation: 18
  • View blog
  • Posts: 207
  • Joined: 13-October 10

[Java 3D] 3D Applet

Posted 26 February 2011 - 02:30 AM

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

Is This A Good Question/Topic? 0
  • +

Replies To: [Java 3D] 3D Applet

#2 Sinned  Icon User is offline

  • D.I.C Head

Reputation: 18
  • View blog
  • Posts: 207
  • Joined: 13-October 10

Re: [Java 3D] 3D Applet

Posted 27 February 2011 - 10:21 AM

anyone?
Was This Post Helpful? 0
  • +
  • -

#3 heyoman1  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 64
  • View blog
  • Posts: 735
  • Joined: 30-November 09

Re: [Java 3D] 3D Applet

Posted 27 February 2011 - 11:43 AM

If you see a 3d Java game on the web (ex: Runescape), it's most likely made in JOGL (Java OpenGL). Java3D is soon to be deprecated.
Was This Post Helpful? 0
  • +
  • -

#4 Sinned  Icon User is offline

  • D.I.C Head

Reputation: 18
  • View blog
  • Posts: 207
  • Joined: 13-October 10

Re: [Java 3D] 3D Applet

Posted 01 March 2011 - 03:58 AM

What is the difference between JOGL and Java3D?

I'm using the "j3dcore", "j3dutils" and "vecmath" librarie from java3d.
I thought Java3D was an project from java3D programmers who had based it on OpenGL/JOGL and DirectX.

Am I wrong now?

This post has been edited by Sinned: 01 March 2011 - 03:59 AM

Was This Post Helpful? 0
  • +
  • -

#5 Chuck123  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 1
  • Joined: 20-July 11

Re: [Java 3D] 3D Applet

Posted 20 July 2011 - 06:39 AM

View PostSinned, 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
Was This Post Helpful? 1
  • +
  • -

#6 cfoley  Icon User is online

  • Cabbage
  • member icon

Reputation: 1905
  • View blog
  • Posts: 3,949
  • Joined: 11-December 07

Re: [Java 3D] 3D Applet

Posted 20 July 2011 - 06:36 PM

Quote

Java 3d is not dead! It still works (especially if a developer has legacy code)


Ha ha! I love it!
Was This Post Helpful? 1
  • +
  • -

#7 PGR  Icon User is offline

  • D.I.C Head

Reputation: 13
  • View blog
  • Posts: 55
  • Joined: 10-January 11

Re: [Java 3D] 3D Applet

Posted 15 August 2013 - 08:29 PM

Hey, are you still working in Java 3D? Have you made any progress? Can you check out my topic Virtual Solar System in Swing and Java 3D?
http://www.dreaminco...1&#entry1865993
Was This Post Helpful? 0
  • +
  • -

#8 macosxnerd101  Icon User is online

  • Self-Trained Economist
  • member icon




Reputation: 10179
  • View blog
  • Posts: 37,585
  • Joined: 27-December 08

Re: [Java 3D] 3D Applet

Posted 15 August 2013 - 08:46 PM

This topic is over two years old. Please avoid necroposting to simply bump the thread or direct attention to another thread.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1