jPCT - a 3d engine for Java > Support

Is There any Applet example?

(1/2) > >>


I am a newer to JPCT. I want to make a Applet to display a 3D 3DS Object using JPCT. It will be very appreciated if anyone could give me such example.

Thank you


Depends on what kind of applet it should be (passive rendering/normal Swing/AWT/GUI-applet vs. active rendering). For the latter, a very simple example is in this thread (it's a german thread but the code should be clear regardless of this):
That's for software renderer only. When using OpenGL in an applet, things are getting more complicated...

Thank you for your reply.
I compiled the applet example but the applet can not be inited when executing.

I also compiled the taken from with current jpct, it can not be inited too.

Anyone know why?


Let me give some supplementary error messages.

java.lang.NoClassDefFoundError: com/threed/jpct/FrameBuffer
        at ExampleApplet.init(

My pc installed Java1.5.


Ok. It s not a big problem i think. You need to verify that the jpct.jar file is correctly linked to your project. So you have to add its path to the CLASSPATH variable of your system (or directly in the command line when you launch your system, using the -classpath attribute).

There are other threads in the forum that are talking about the same problem. (just check it by making a research with the "classpath" keyword)

Another element that you have to put in the classpath is the lwjgl.jar file. You must also give an access to the lwjgl library.

When you want to add a jar file to an applet, you can do it this way

--- Code: ---
<APPLET CODE=a.class
     ARCHIVE="abc.jar" // the url of the jar file to add

--- End code ---



[0] Message Index

[#] Next page

Go to full version