WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-09-2008, 12:01 PM
michaelrepucci michaelrepucci is offline
Member
 
Join Date: Jul 2008
Posts: 53
are anaglyphs red/green or red/cyan?

I would like to buy the most appropriate glasses for the job. The documentation says you should use red/green glasses when using viz.ANAGLYPHIC. But if I display a white object, its two images appear as red/cyan to the naked eye, which is another common color scheme for anaglyphs. So which system is Vizard using, and which glasses should I buy?
Reply With Quote
  #2  
Old 12-09-2008, 12:19 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Vizard uses red/cyan for anaglyphic.
Reply With Quote
  #3  
Old 12-17-2008, 07:22 AM
michaelrepucci michaelrepucci is offline
Member
 
Join Date: Jul 2008
Posts: 53
Do you guys have a particular manufacturer, make, and model of red/cyan glasses that you could recommend for use with Vizard? We're having lots of problems reducing ghosting to acceptable levels.
Reply With Quote
  #4  
Old 12-17-2008, 11:19 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
I've only ever used the ones they hand out for free at conferences, so I can't make any specific recommendations. The ghosting is an inherent artifact of anaglyphic stereo, so I don't think you'll be able to reduce it much using different glasses.
Reply With Quote
  #5  
Old 12-17-2008, 11:41 AM
michaelrepucci michaelrepucci is offline
Member
 
Join Date: Jul 2008
Posts: 53
Well, that's not really true. The ghosting is related to the filtering properties of the glasses, so those glasses with a better bandpass filter and good cut-offs would be better. We even notice a significant reduction in ghosting simply from doubling up those paper red/green glasses, rather than using just one layer. But it's not enough to completely remove it, and we're having a perceptual problem (Pulfrich effect), with some of our stimuli.

Can you provide more information about how Vizard renders anaglyphic stereo?
Reply With Quote
  #6  
Old 12-17-2008, 01:00 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Vizard uses the glColorMask command to render anaglyphic stereo. Basically, the code works like this:
Code:
glColorMask(GL_TRUE, GL_FALSE, GL_FALSE, GL_TRUE);
RenderLeftEye();

glColorMask(GL_FALSE, GL_TRUE, GL_TRUE, GL_TRUE);
RenderRightEye();
That's pretty much it. If you need more advanced control over the color filtering, then you will have to use a post-process shader. Let me know if you are interested in this and I can provide you some code.
Reply With Quote
  #7  
Old 12-17-2008, 01:30 PM
michaelrepucci michaelrepucci is offline
Member
 
Join Date: Jul 2008
Posts: 53
Oh, an elegantly simple solution indeed.

I'm not sure what I could do with a post-process shader, but if I could change the background color without effecting the color of the anaglyphic objects in the scene, then I could put a very faint reddish-cyanish-brown color in the background which would look perceptually like the red (cyan) ghost image that is showing up through my cyan (red) filter. This would make the ghost perceptually invisible. Unfortunately, when I change the background color, it alters the colors of the anaglyphs, since it too must be put through the color mask. I gather I can't selectively activate certain objects as anaglyphs, or is that what I can do with a shader?
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
red/green anaglyphic ghosting michaelrepucci Vizard 2 10-22-2008 10:26 AM


All times are GMT -7. The time now is 01:28 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC