Re: [osg-users] osg Image data

2008-04-10 Thread Gordon Tomlinson
ss to code I can post write now G. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jean-Baptiste Authesserre Sent: Thursday, April 10, 2008 8:08 AM To: OpenSceneGraph Users Subject: Re: [osg-users] osg Image data Hi, Have you tried to store your mage in an other format

Re: [osg-users] osg Image data

2008-04-10 Thread Jean-Baptiste Authesserre
ok, i don't have seen the different answers... sorry Jean-Bapriste 2008/4/10, Jean-Baptiste Authesserre <[EMAIL PROTECTED]>: > > Hi, > > Have you tried to store your mage in an other format than jpg? > I have also difficulties to store in jpg format. I personally store > screenshots of a 3D scen

Re: [osg-users] osg Image data

2008-04-10 Thread Jean-Baptiste Authesserre
Hi, Have you tried to store your mage in an other format than jpg? I have also difficulties to store in jpg format. I personally store screenshots of a 3D scene, and it works well when I use png format, or bmp format, but not with the jpg format. Maybe the libjpeg used by osg don't work with RGB

Re: [osg-users] osg Image data

2008-04-10 Thread Vincent Bourdier
t; Bourdier > *Sent:* 10. april 2008 13:33 > *To:* OpenSceneGraph Users > *Subject:* Re: [osg-users] osg Image data > > > > Yes, but GL_UNSIGNED_CHAR doesn't exist. > > so I don't know what to use... > > 2008/4/10, J.P. Delport <[EMAIL PROTECTED]>: >

Re: [osg-users] osg Image data

2008-04-10 Thread erf
use GL_UNSIGNED_BYTE a char is 1 byte From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vincent Bourdier Sent: 10. april 2008 13:33 To: OpenSceneGraph Users Subject: Re: [osg-users] osg Image data Yes, but GL_UNSIGNED_CHAR doesn't exist. so I don't know what to use...

Re: [osg-users] osg Image data

2008-04-10 Thread Vincent Bourdier
Yes, but GL_UNSIGNED_CHAR doesn't exist. so I don't know what to use... 2008/4/10, J.P. Delport <[EMAIL PROTECTED]>: > > Hi, > > sizeof(unsigned char) != sizeof(GL_UNSIGNED_SHORT) > > try GL_UNSIGNED_CHAR > > jp > > > Vincent Bourdier wrote: > > Hi All, > > > > I have a problem concerning writing

Re: [osg-users] osg Image data

2008-04-10 Thread J.P. Delport
Hi, sizeof(unsigned char) != sizeof(GL_UNSIGNED_SHORT) try GL_UNSIGNED_CHAR jp Vincent Bourdier wrote: > Hi All, > > I have a problem concerning writing image data. > > My code is simple : > > const long size = _x*_y*3; > > unsigned char* data = (unsigned char*)calloc(size,

[osg-users] osg Image data

2008-04-10 Thread Vincent Bourdier
Hi All, I have a problem concerning writing image data. My code is simple : const long size = _x*_y*3; > > unsigned char* data = (unsigned char*)calloc(size, sizeof(unsigned > char)); > > for(long i=0; i < size ; i+= 3) > { > data[i] = 0;//red > data[i+1] = 0;