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 › Fast Video for OPENGL HD 1920x1080
Page Index Toggle Pages: 1
Fast Video for OPENGL HD 1920x1080 (Read 712 times)
Fast Video for OPENGL HD 1920x1080
Jan 11th, 2008, 12:06am
 
Well, actually I'm working on a project which should play HD Video 1920x1080 px in the background and a OPENGL 3D UI above. I was trying the faster movie class, in P2D its ok, but in OPENGL its very slow. Has anyone a clue?

greetings ascorbin
Re: Fast Video for OPENGL HD 1920x1080
Reply #1 - Jan 11th, 2008, 7:28am
 
If you must be in OpenGL but your video is faster in P2D can you try to:

1. createGraphics to make a new buffer in P2D (not sure if it's supported.. what about P3D?)
2. create the rest of your app with opengl
3. use image() to draw the buffer in your opengl app.

I'd be interested in your results. Never had to do HD 1080p in Processing before... D:
Re: Fast Video for OPENGL HD 1920x1080
Reply #2 - Jan 11th, 2008, 7:35am
 
Yes, this is exactly what I tried. It seems that there is the bottleneck by stuffing it back into OPENGL... hm... (sorry for my bad english)
Re: Fast Video for OPENGL HD 1920x1080
Reply #3 - Jan 11th, 2008, 7:49am
 
What if you tried copying pixels directly from P3D buffer to OPENGL's buffer using the pixel array? Something like a System.arraycopy() or just arraycopy()

You should implement a framerate counter of some sort and do some testing to figure out where your bottleneck is.
Page Index Toggle Pages: 1