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
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
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
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]>:
>
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...
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
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,
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;
8 matches
Mail list logo