Hi,
shit! all fixed!
Thank you!
Cheers,
Aitor
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=33780#33780
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.or
Hi Aitor,
osg::Image::getColor takes texture coords, ie in range 0.0..1.0.
Mourad
On Tue, Nov 16, 2010 at 1:05 PM, Aitor Ardanza wrote:
> Hi,
>
> I still have the same problem ... I do not know how to fix it!
> I attached the program code ..
>
> Thank you!
>
> Cheers,
> Aitor
>
> ---
- "Aitor Ardanza" a écrit :
> Ulrich Hertlein wrote:
> >
> > I believe your pixel address calculation is wrong; try this
> instead:
> >
> > // i==row/y, j==column/x
> > unsigned char* pixel = texture->getImage(0)->data() + ((i *
> tex_width) + j) * 4;
> > *(pixel+0) = r;
> > *(pixel+1) = g;
Ulrich Hertlein wrote:
>
> I believe your pixel address calculation is wrong; try this instead:
>
> // i==row/y, j==column/x
> unsigned char* pixel = texture->getImage(0)->data() + ((i * tex_width) + j) *
> 4;
> *(pixel+0) = r;
> *(pixel+1) = g;
> *(pixel+2) = b;
> *(pixel+3) = a;
>
I get the
On 11/11/10 23:26 , Aitor Ardanza wrote:
> I'm trying to combine two textures, a manually created (blank) and the other
> loaded
> with an image. But the result is a little weird.
>...
> memcpy(texture->getImage(0)->data()+((i*tex_height)+j)*4 , r, 1);
> memcpy(texture->ge
5 matches
Mail list logo