Hi Vincent,

On Fri, 2005-09-16 at 08:29 +0200, Vincent Honnet wrote:
> Hi Dirk,
> 
> I think I found the problem. The warning comes only if I reload a saved 
> VRML file. 

Hm, interesting.

> 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 ?

It might. Can you try loading the model into one of the standard
programs? If that gives you the same warnings it will do the same for me
and I can look for the problem.

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

Reply via email to