This didn't fix the problems on our end but I did receive some different output.
Image data found soTexSize[0]=2, soTexSize[1]=2 soTexNC=1
tex coords generated
I think the problem we are seeing may have something to do with how the texture
is being read/processed because the dimensions shouldn't be 2x2 for all our
images but that is what is being reported. I tried loading it in another viewer
(TC VisMockup) and it successfully loaded all the textures so I think it has
something to do w/ Coin. I wanted to post something to their site but access is
only given to "Professional Edition License" users...
:(
Anyway I think this is where the problem is coming from in SoTextureImageElement
of the Coin lib:
const unsigned char *
SoTextureImageElement::getImage(SoState * const state,
SbVec2s &size,
int &numComponents)
{
SoTextureImageElement* elem = (SoTextureImageElement*)
state->getConstElement(classStackIndex);
if
(elem->getTypeId().isDerivedFrom(SoGLTextureImageElement::getClassTypeId())) {
Model dummy1;
SbColor dummy2;
SoGLImage * image = SoGLTextureImageElement::get(state, dummy1, dummy2);
unsigned char * bytes = NULL;
size = SbVec2s(0,0);
numComponents = 0;
if (image && image->getImage()) {
bytes = image->getImage()->getValue(size, numComponents);
}
return bytes;
}
size.setValue(elem->size[0], elem->size[1]);
numComponents = elem->numComponents;
return elem->bytes;
}
I'm not sure what happens to "elem" after that C-Style cast (yuk!) but the "if"
statement is skipped and "elem" comes back with dimensions 2x2...
Sorry for the massive post...
biv
> Hi John,
>
>
> On 12/1/06, PCJohn <[EMAIL PROTECTED]> wrote:
> > I do not know if it is your case. Anyway, I am submitting corrected
> > file. Guys from OSG: Can you look on it and patch it, please?
>
> Thanks for the fixes, but could you resubmit the changed file as a
> separate attachment, as your mail tool has inlined - mozilla's mail
> tool has known bugs. I can't merge inline attachments. Also
> subscribe to osg-submissions and post the changes there. Submissions
> to osg-users are likely to be lost amongst all the traffic. For
> details on submissions protocol can be found on the wiki:
>
> http://openscenegraph.org/osgwiki/pmwiki.php/Support/SubmissionsProtocol
>
> Cheers,
> Robert.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://openscenegraph.net/mailman/listinfo/osg-users
> http://www.openscenegraph.org/
>
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/