WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 05-03-2005, 10:34 AM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
Hi,

Have you tried creating the image as a true grayscale image? To do that you would create the image like so:
Code:
image->setImage(size,size,1,1,GL_LUMINANCE,GL_UNSIGNED_BYTE,new unsigned char[size*size],osg::Image::USE_NEW_DELETE);
Then you would set each pixel value using a single byte:
Code:
unsigned char *pixel = image->data(x,y);
*pixel = 255;
If you need the image to be created as RGBA then you can either post the code you are using or email it to me at lashkari@worldviz.com.

Also, make sure that the computer which is experiencing this problem is set to 32-bit color mode in the graphics card settings. It might be set to 16-bit.
Reply With Quote
 


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


All times are GMT -7. The time now is 07:47 AM.


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