Hello Constantin,

Constantin Müller wrote:
> I'm currently trying the first approach.
> I create a ChunkMaterial and add the TextureObjRefChunk to it.
> The GLId of the TextureObjRefChunk is set to the texture I want to use.
> 
> But I got some OpenSG warnings on the console, and the texture does not 
> appear.
> I tried to fix it the last few days, but I have no idea how to proceed 
> with it.
> 
> Here are the warnings:
> 
> WARNING: 
> (..\..\..\..\..\..\OpenSG2\Source\System\State\Base\OSGLightChunk.cpp,136): 
> light:activate:precheck failed: invalid enumerant (0x500)
> WARNING: Window::frameExit: Caught stray OpenGL error invalid enumerant 
> (0x500).
> 
> These appear over and over again.
> I hope you can give me some input, what the problem is or could be.

the warnings come from glGetError() calls OpenSG does at a number of 
points (e.g. StateChunk activate, end of frame, ...). Since OpenGL 
errors are not very descriptive (e.g. the one you are seeing just says 
that some GLenum value was out of the expected range for the call) 
unless you can pinpoint the call that caused them, you'd first have to 
find that call.
On linux you can use bugle (<http://sourceforge.net/projects/bugle/>) on 
windows can try glIntercept (<http://glintercept.nutty.org/index.html>) 
or a commercial GL debugger if you have it.
All should be able to indicate which OpenGL call was passed incorrect 
parameters. From there it should be fairly simple to deduce the OpenSG 
field that is set to the incorrect value.

        Cheers,
                Carsten


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to