We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpOpenGL and 3D Libraries › create an application with openGL
Pages: 1 2 
create an application with openGL? (Read 5307 times)
Re: create an application with openGL?
Reply #15 - Jun 9th, 2005, 1:48am
 
I tried this method and it gave me a black screen with the command prompt:

Caused by: java.lang.UnsatisfiedLinkError: getPacket                                    at Jwintab.getPacket(Native Method)                                             at PTablet.readTablet(PTablet.java:32)                                          at xenoforms.setup(xenoforms.java:28)                                           at processing.core.PApplet.display(PApplet.java:1017)                           at processing.opengl.PGraphicsGL$1.display(PGraphicsGL.java:75)                 at net.java.games.jogl.impl.GLDrawableHelper.display(GLDrawableHelper.java:74)                                                                                  at net.java.games.jogl.GLCanvas$DisplayAction.run(GLCanvas.java:241)            at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:292)              at net.java.games.jogl.impl.windows.WindowsOnscreenGLContext.invokeGL(WindowsOnscre
enGLContext.java:79)                                                         at net.java.games.jogl.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.jav
a:258)                                                                       at java.awt.event.InvocationEvent.dispatch(Unknown Source)                      at java.awt.EventQueue.dispatchEvent(Unknown Source)                            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)                                                                                        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)          at java.awt.EventDispatchThread.pumpEvents(Unknown Source)                      at java.awt.EventDispatchThread.pumpEvents(Unknown Source)                      at java.awt.EventDispatchThread.run(Unknown Source)                     java.lang.UnsatisfiedLinkError: open                                            net.java.games.jogl.GLException: java.lang.reflect.InvocationTargetException            at net.java.games.jogl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:225)                                                                              at net.java.games.jogl.GLCanvas.display(GLCanvas.java:75)                       at processing.opengl.PGraphicsGL.requestDisplay(PGraphicsGL.java:157)           at processing.core.PApplet.run(PApplet.java:921)                                at java.lang.Thread.run(Unknown Source)                                 Caused by: java.lang.reflect.InvocationTargetException                                  at java.awt.EventQueue.invokeAndWait(Unknown Source)                            at net.java.games.jogl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:220)                                                                              ... 4 more                                                              

on repeat.

Am I doing something wrong? I added the lines
Code:

static public void main(String args[]) {
PApplet.main(new String[] { "--present", "--display=1", "xenoforms" });
}


plus ran java -cp xenoforms.jar xenoforms
Re: create an application with openGL?
Reply #16 - Jun 9th, 2005, 1:54am
 
Ah. It's the tablet driver not being included I think. This is probably under the same domain of questions as the previous poster.
Re: create an application with openGL?
Reply #17 - Jun 28th, 2005, 2:16am
 
I was browsing around and noticed this:

http://www.stud.ntnu.no/~johanno/appletviewer.jsp?task=tutorials

Click on the white square inside the red one, and
there is a description of how to invoke Jogl within
the web browser. It downloaded another JRE even
though I had one...also doesn't work in FireFox.

Re: create an application with openGL?
Reply #18 - Aug 24th, 2005, 10:31am
 
I am trying the same right now and I am having problems with it: running the java -cp etc... command I get these errors:

...

I inserted the
static public void main(String args[]) {
 PApplet.main(new String[] { "--present", "--display=1", "GW01_Bugs_14" });
}

Before the void setup function, is that correct?
Any hints?
Re: create an application with openGL?
Reply #19 - Aug 25th, 2005, 6:25pm
 
For what is worth, the Borg cube implementation (which
could help those trying to create a full screen
display or a webstart application for Jogl code) with
source, which is described below can be downloaded
as part of a larger package:

http://processing.org/discourse/yabb_beta/YaBB.cgi?board=os_libraries_tools;action=display;num=1124986860


Original post for the cube example (in this thread)
...................................................

Webstart application.  

method 1: should work as long as the server stays up

http://sand.cise.ufl.edu:35380/jsp-examples/processing/Borg4.jsp

method 2: You should right click, save target, and you may
need to rename the file to Borg4.jnlp since for
some reason IE changes the file name to .xml  
(java web start is assumed to be installed):


http://www.cise.ufl.edu/~fishwick/proc/Borg4.jnlp

PRESS "q" to quit the full screen operation
Pages: 1 2