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 & HelpIntegration › OpenGL Applet Problem
Page Index Toggle Pages: 1
OpenGL Applet Problem (Read 2688 times)
OpenGL Applet Problem
Jun 18th, 2005, 2:22am
 
Hi,i have this problem and even i search and search,i cant find the solution. My problem is the next :

I have an application that runs perfectly,with the openGl library. I want to have it on a web so i exported it. When i ran the html file,i cant see anything,dont know why. When i worked without the opengl library,it works perfectly,but now with it.

What am i doing wrong?

Thanks in advance.

lanceR
Re: OpenGL Applet Problem
Reply #1 - Jun 18th, 2005, 4:57am
 
openGL doesn't work with web yet.

if ever.. >_<
Re: OpenGL Applet Problem
Reply #2 - Jun 18th, 2005, 6:30pm
 
Thanks for the answer mflux.

Is then there a way i can run my exported program?

Thanks
Re: OpenGL Applet Problem
Reply #3 - Jun 18th, 2005, 6:39pm
 
you can use P3D for applets. it may be slower but it'll run on the web.

it's not clear whether i can make opengl work in an applet.. we're using jogl (https://jogl.dev.java.net/) and i haven't seen much on there about running jogl stuff as applets. last i checked, they use java web start for their demos, so it doesn't look positive.
Re: OpenGL Applet Problem
Reply #4 - Jun 18th, 2005, 6:43pm
 
I tried with P3D but it didnt run,because im using the smooth() function.

Thanks for the link,ill check it out.
Re: OpenGL Applet Problem
Reply #5 - Oct 6th, 2005, 1:05am
 
I ran into the same problem since I swap between OPENGL application mode and P3D applet mode.  The fix is to comment the import line from the top as you change from OPENGL to P3D:

OPENGL Code:
import processing.opengl.*;
setup(){
 size(400, 400, OPENGL);
 smooth();
}

P3D Code:
//import processing.opengl.*;
setup(){
 size(400, 400, P3D);
 //smooth();
}


So if you forget to comment that library import line you get the blank screen symptom.
Page Index Toggle Pages: 1