Hi Dirk,
I think I found the problem. The warning comes only if I reload a saved
VRML file. But for me only the polygon are important, not the saved
material. That's why I replace it: I know it's only one object, so I
look for the MaterialGroup and do a setMaterial on it with a new
SimpleMaterial.
MaterialGroupPtr matGr = SearchMaterialGroup(node);
if(matGr!=NullFC)
{
SimpleMaterialPtr material = CreateNewSimpleMaterialPtr();
beginEditCP(matGr, MaterialGroup::MaterialFieldMask);
matGr->setMaterial(material);
endEditCP(matGr, MaterialGroup::MaterialFieldMask);
m_pMaterial = material;
}
Otherwise I'm using OpenSG in a Qt widget with a PassiveWindow and
create myself the camera, viewport and so on. There isn't any other
OpenGL environment, I just show some pictures with Qt.
I you really need a VRML file I can send you the file I'm loading, but I
think you will tell me I did wrong now, isn't it ?
Thanks
Vincent
Dirk Reiners a écrit :
Hi Vincent,
On Thu, 2005-09-15 at 16:23 +0200, Vincent Honnet wrote:
Hi,
I'm getting the following warning during the rendering:
WARNING:
(d:\opensg-dailybuild-net2003\opensg\source\system\state\osgmaterialchu
nk.cpp,200): material:changed:precheck failed: invalid enumerant (0x500)
and also
WARNING:
(d:\opensg-dailybuild-net2003\opensg\source\system\state\osgtexturechun
k.cpp,1907): TextureChunk::deactivate precheck failed: invalid enumerant
(0x500)
I didn't get this warning with OSG 1.4. I checked each beginEditCP but
found nothing relevant to help me. I do probably something wrong but what ?
prechecks are generally done before the chunk takes over to make sure
that whatever error is detected is not actually coming from that chunk.
So it looks like there is something outside of OpenSG that is causing
OpenGL errors. Are you doing your own OpenGL rendering anywhere? If not,
can you try saving the current state of your graph to a file and check
whether it exhibits the same behavior in let's say the loader tutorial?
If it yes, please send me the file so that I can take a look at it.
Yours
Dirk
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users
--
Vincent Honnet
Fotografie und Software Service
Mariahilfstr. 15
52062 Aachen
E-Mail: [EMAIL PROTECTED]
Tel.: +49 (0)241 400 8882
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users