Hello Michael,

On 09/24/2010 08:03 AM, Michael Raab wrote:
> i have some warnings in materialchunk::activate() and 
> materialchunk::changefrom() about some invalid GL value.

it may be faster to find the problem if you run your program through a 
GL debugger (like bugle, glIntercept) - that will allow you to know the 
exact OpenGL call that has an invalid value and from there it should be 
fairly straightforward to find the field that supplied the value.

> I'm trying to track down the issue and I would like to display some 
> additional information like the fieldcontainer id of the affected 
> materialchunk. How can I get this value from inside the MaterialChunk class 
> (if I don't have a MaterialchunkPtr)?

make a MaterialChunkPtr ;) - the usual idiom looks like:

MaterialChunkPtr thisPtr(this);
thisPtr.getFieldContainerId();

this is most often used if fields need to be changed from a member function:

beginEditCP(thisPtr, FieldMask);
_sfField.setValue(5);
endEditCP(thisPtr, FieldMask);

        Cheers,
                Carsten

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to