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 › Stereo - Anaglyph / Active stereo rendering lib
Pages: 1 2 
Stereo - Anaglyph / Active stereo rendering lib (Read 8985 times)
Stereo - Anaglyph / Active stereo rendering lib
Feb 24th, 2010, 9:55pm
 
Hi y'all,

My colleague Angus Forbes (author of the excellent JMCVideo library) and I have released a library to do stereographic rendering. It handles active, anaglyph and passive stereo (although we haven't tested passive yet).

You can find the library and an example Processing sketch here:

http://angusforbes.github.com/stereo/index.html

We'll be adding some more to the documentation and examples in the coming week, in the meantime, let us know how it works!

- Charlie
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #1 - Feb 25th, 2010, 7:16am
 
This so timely for me!!!  Cheesy
I'll definitely let you know how it works out.  I just ordered a pair of Pro-Ana glasses.
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #2 - Feb 25th, 2010, 10:21am
 
Could this be changed so that I don't have to start the sketch with this library - size(640, 480, "stereo.ActiveStereoView");

I'd like to be able to just run my sketch as normal in OpenGL and then enable manually enable stereo when I want it.  So something like
ActiveStereo.start()
ActiveStereo.stop()
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #3 - Feb 25th, 2010, 11:32am
 
I'm not sure if this is possible unfortunately, at least for active stereo. As I understand it the OpenGL capabilities have to be setup when the window is initialized; this includes whether or not active stereo rendering is enabled.

If you're talking about Anaglyph stereo (as opposed to active stereo) all you need to to is not call the Stereo start(), right() and left() methods and everything will render normally. This is possible because there are no special hardware features required for Anaglyph. Besides a pair of glasses Smiley

Hope this helps...
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #4 - Feb 25th, 2010, 11:34am
 
Cool - Ya, I'm mainly interested in Anaglyph so that might work.  Hope to see an example for this so I can get started. Smiley
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #5 - Feb 25th, 2010, 12:03pm
 
Actually, the example included in the download should work fine for Anaglyph... just change this line:

 stereo = new Stereo(this, eyeSep, 45f, .1f, 1000f, Stereo.StereoType.ACTIVE);


to

 stereo = new Stereo(this, eyeSep, 45f, .1f, 1000f, Stereo.StereoType.ANAGLYPH_CYANLEFT_REDRIGHT);


or whatever combination describes your glasses.
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #6 - Feb 28th, 2010, 8:21am
 
Is there a mode for optimized anaglyph or half-color?
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #7 - Mar 2nd, 2010, 12:17pm
 
hi,
i changed the parameter as suggested to:
stereo = new Stereo(this, eyeSep, 45f, .1f, 1000f, Stereo.StereoType.ANAGLYPH_CYANLEFT_REDRIGHT);

but it made my phone machine go crazy. the whole screen switching on and off - not just the processing window. the processing window is blank.

in the original example i get loads of flicker too. but just processing and can still see the rects.

any ideas?

i'm on a mac powerbook. os10.5.8
using processing 1.0.9
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #8 - Mar 3rd, 2010, 10:21am
 
The original example (active stereo) requires special graphics card hardware... it won't work unless you've got a pretty intense graphics cards and some expensive glasses. I will change the example to default to anaglyph and test it some more, but it has worked in the past for me on 10.5.8 and Processing 1.0.9.
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #9 - Mar 3rd, 2010, 5:49pm
 
great thanks. would love to give this a spin. been struggling to get a 3D project going so this library came at a perfect time.
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #10 - Apr 9th, 2010, 6:51am
 
Hi,

i want to use this library but when i run the exemple AnaglyphTest.pde it writes me an exception:

GLException: Unable to select one of the provided GLCapabilities

Exception in thread "Animation Thread" javax.media.opengl.GLException: Unable to select one of the provided GLCapabilities
     at javax.media.opengl.DefaultGLCapabilitiesChooser.chooseCapabilities(DefaultGLCapa
bilitiesChooser.java:218)
     at com.sun.opengl.impl.windows.WindowsGLDrawable.choosePixelFormat(WindowsGLDrawabl
e.java:266)
     at com.sun.opengl.impl.windows.WindowsOnscreenGLDrawable.lockSurface(WindowsOnscree
nGLDrawable.java:203)
     at com.sun.opengl.impl.windows.WindowsOnscreenGLContext.makeCurrentImpl(WindowsOnsc
reenGLContext.java:57)
     at com.sun.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:134)
     at stereo.PGraphicsOpenGL.detainContext(PGraphicsOpenGL.java:230)
     at stereo.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:275)
     at processing.core.PApplet.handleDraw(PApplet.java:1392)
     at processing.core.PApplet.run(PApplet.java:1327)
     at java.lang.Thread.run(Thread.java:619)




I´m using last version of processing.

Don´t you know where should be problem? Thanks

Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #11 - Apr 9th, 2010, 10:33pm
 
Hi,

Can you tell us the specs of your system? In particular we need to know what graphics card that you're using...

Also, I'm assuming this test is using anaglyph stereo and that you didn't alter AnglyphTest.pde at all... let me know if this isn't the case.

Thanks!  - Charlie
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #12 - Apr 11th, 2010, 8:03am
 
Hi,

thanks for response.

my system spec is:

win XP sp3
Intel Core 2 CPU 1.86GHz
3GB Ram
NVIDIA GeForce 7600 GS  256MB

I didnt change nothing in AnaglyphTest.pde. And it was set on anaglyph stereo.
I´ve also tryed it on another computer (dont know specification but i know that it is newer and build maily for graphic aplication), I´ve tryed in processing 1.1 and 1.09, and i also tryed other modes of stereo. In every case i´ve got the exception.



Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #13 - Apr 15th, 2010, 2:11am
 
I too getting this error:

GLException: Unable to select one of the provided GLCapabilities

on Windows 7, Nvedia GeForce GTX 260 card.

Looking forward to this.
Re: Stereo - Anaglyph / Active stereo rendering lib
Reply #14 - Apr 18th, 2010, 6:36am
 
I also get this error.

Exception in thread "Animation Thread" javax.media.opengl.GLException: Unable to select one of the provided GLCapabilities

Windows 7

ATI HD4870 with latest drivers.

Thanks.
Pages: 1 2