Re: [osg-users] Stereo anaglyph: which glasses?

2010-09-30 Thread Jason Daly

On 9/29/2010 6:32 AM, Jan Ciger wrote:

How can I tweak OSG red/cyan?
 

I suppose you will need to change the rendering code, I am not aware
of this being tweakable anywhere, as only OpenGL color masks are
being used - which basically say render everything into red or blue
channel (or some combination of them).
   


Just a thought... All you need to do is modify the final output color of 
each pixel.  I was wondering if the color matrix could be used for this, 
assuming OSG even supports that (I've never looked, and I don't have 
easy access to the source right now).


It also could conceivably be done in a fragment shader.

--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Stereo anaglyph: which glasses?

2010-09-30 Thread Jason Daly

On 9/30/2010 10:39 PM, Jason Daly wrote:

Just a thought... All you need to do is modify the final output color of
each pixel.  I was wondering if the color matrix could be used for this,
assuming OSG even supports that (I've never looked, and I don't have
easy access to the source right now).

It also could conceivably be done in a fragment shader.
   


Never mind about the color matrix.  I just discovered it only works for 
pixel transfer operations.  You can still use a fragment shader, though.


--J

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Stereo anaglyph: which glasses?

2010-09-29 Thread Ulrich Hertlein
Hi Francesco,

On 29/09/10 17:03 , Francesco Argese wrote:
 I have enabled anaglyph stereo visualization on my application and I have 
 tried some
 red/cyan glasses.
 
 Watching app only with one eye at a time it appear that cyan lens works well 
 (I see
 only one image without noise) while the red lens show ghosting problems.
 
 I have did a research among the old post hoping that someone had my same 
 problem. I
 have found only the post  source for 3d glasses [1] but there there are no
 information about the type of glasses and the appropriate colour of lenses.

Presumably you don't have a color-calibrated monitor, like most of us, so the 
chances that
the red/cyan RGB values that are picked by OSG, the values sent to the monitor, 
and the
actual color values displayed match your glasses are virtually zero.

This is probably more a case of tweaking the OSG red/cyan to match whatever 
glasses you have.

Cheers,
/ulrich
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Stereo anaglyph: which glasses?

2010-09-29 Thread Francesco Argese

Ulrich Hertlein wrote:
 Hi Francesco,
 Presumably you don't have a color-calibrated monitor, like most of us, so the 
 chances that
 the red/cyan RGB values that are picked by OSG, the values sent to the 
 monitor, and the
 actual color values displayed match your glasses are virtually zero.


How can I calibrate colours of my monitor? Are there some tools to do so?


 This is probably more a case of tweaking the OSG red/cyan to match whatever 
 glasses you have.
 


How can I tweak OSG red/cyan?

Cheers
Francesco

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=32165#32165





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Stereo anaglyph: which glasses?

2010-09-29 Thread Jan Ciger
On Wed, Sep 29, 2010 at 10:35 AM, Francesco Argese kekk...@gmail.com wrote:
 How can I calibrate colours of my monitor? Are there some tools to do so?

Look up ICC color profiles or color management:
http://en.wikipedia.org/wiki/ICC_profile
On the other hand, this isn't going to be of much use to you, because
also the software needs to use the profiles to adjust the color
representation. OSG doesn't do that.

 How can I tweak OSG red/cyan?

I suppose you will need to change the rendering code, I am not aware
of this being tweakable anywhere, as only OpenGL color masks are
being used - which basically say render everything into red or blue
channel (or some combination of them).

Regards,

Jan
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org