Hi Pablo,

Pablo Carneiro Elias wrote:
> Hi everyone, I would like to thank you all for being such helpfulness... 
> but I have one more problem ... I'm getting this warning message:
> 
> WARNING: 13.746: 
> d:\opensg-dailybuild\opensg\source\system\state\osgmaterialchun
> k.cpp:215:  
> (d:\opensg-dailybuild\opensg\source\system\state\osgmaterialchunk.cp
> p,215): material:activate:postcheck failed: invalid enumerant (0x500)
> 
> And I don't know the reason why... I've found out that the code chunk 
> that has caused the problem is the one below:

>             material->setColorMaterial( GL_FRONT_AND_BACK );

The argument here has to be one of the other arguments to glColorMaterial. The 
default is GL_AMBIENT_AND_DIFFUSE, but all the other ones are possible. If you 
want to have different ones for front and back, you can use 
setBackColorMaterial().

Hope it helps

        Dirk

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to