www.jpct.net

jPCT - a 3d engine for Java => Bugs => Topic started by: Melssj5 on November 05, 2005, 09:04:05 am

Title: OpenGL on a Canvas
Post by: Melssj5 on November 05, 2005, 09:04:05 am
Hi, I am using a canvas inside a JApplet to render a car and change its color.

I can run the applet inside the IDE but when I try to run it from the web page I receive 2 exceptions and the applet doesnt appear, and also when I close the applet.

I was wondering if youŽd mind checking my code Egon. can I send it to your mail? there are two classes

The main one called aplication and the RenderThread that renders the image and manage the events.
Title: OpenGL on a Canvas
Post by: rolz on November 05, 2005, 09:31:15 am
Applet's default permissions won't allow you to load native libraries which GLCanvas require. I bet permissions are not checked when you run the applet from IDE. You would need to sign the applet to get more permissions.


Here is a link that proves that it is actually possible ;)
http://www.jpct.net/forum/viewtopic.php?t=258
Title: OpenGL on a Canvas
Post by: Melssj5 on November 05, 2005, 09:44:08 am
ok, thanks. I learned java almost alone, and there are many things like this one that I dont know. (yet)