[osg-users] adjusting brightness and contrast in osgviewer

75 views
Skip to first unread message

zhenlong li

unread,
Mar 4, 2010, 2:59:23 PM3/4/10
to osg-...@lists.openscenegraph.org
Dear all,
 
Is there any function to adjust the brightness or contrast of image in osgviewer?
 
If not, is it hard to add those functions in? Thanks!
 
 
with best wishes
Zhenlong
 
 

Trajce (Nick) Nikolov

unread,
Mar 5, 2010, 2:34:23 AM3/5/10
to OpenSceneGraph Users
Hi,

I dont think there are built in methods in osg for this. But I see it doable via shaders - this way you can do any image processing you want.

-Nick


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


zhenlong li

unread,
Mar 10, 2010, 11:16:54 AM3/10/10
to osg-...@lists.openscenegraph.org
Thanks, Nick. I just wonder if it is hard to create such a common function in osg for brightness and
 
contrast adjustment of JPEG image, say add a filter. As I know, shader is not the same as real
 
adjustment of brightness and contrast.
 
with best wishes
Zhenlong
 
Subject: Re: [osg-users] adjusting brightness and contrast in
       osgviewer
Message-ID:
       <6861bc941003042334yc8...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Trajce (Nick) Nikolov

unread,
Mar 10, 2010, 11:23:20 AM3/10/10
to OpenSceneGraph Users
As I know, shader is not the same as real
 
adjustment of brightness and contrast.


I think it is ....


-Nick


Robert Osfield

unread,
Mar 10, 2010, 11:23:55 AM3/10/10
to OpenSceneGraph Users
Hi Zhenlong,


On Wed, Mar 10, 2010 at 4:16 PM, zhenlong li <zxl...@gmail.com> wrote:
Thanks, Nick. I just wonder if it is hard to create such a common function in osg for brightness and
 
contrast adjustment of JPEG image, say add a filter. As I know, shader is not the same as real
 
adjustment of brightness and contrast.


I'm rather perplexed by your questions/request.  The OSG isn't a monitor that you twist some dials and change the brightness.  It's and scene graph API that is closely linked with OpenGL, it's general purpose, but with it you the developer have to code solution to problems that you are trying to solve.  There are many ways of changing attributes related to OpenGL rendering with the OSG, but given the nature of your questions I really not sure advice in the direction will be helpful, as your questions seem directed at stuff that is too high level for what one would expect from a scene graph API.  

Are you familiar with OpenGL/3D graphics/scene graphs?  Is it a problem with your data?  Is it a problem with lighting?  What are you trying to achieve with your application?

You'll need to pass on more information about what you are trying to do, and how much knowledge others can assume you to have otherwise we really won't know how to help you.

Robert.


Reply all
Reply to author
Forward
0 new messages