Hi,

On Wed, 2009-09-02 at 12:09 +0200, Johannes Brunen wrote:
> Hello,
> 
> I have a problem with the conversion of an OSB file saved with OpenSG
> 1.8 and loaded with OpenSG 2.0. The file contains a ChunkMaterial with a
> TextureChunk applied to it. After reading in OpenSG 2.0 I only found a
> TextureObjChunk but no TextureEnvChunk. I looked into the
> OSBTextureChunkElement class and see the creation and filling of the
> TextureEnvChunk object on debugging. In the postRead function I get
> numBind equal to one but the if statement block inside of the following
> for loop (line 204) is never reached. Now I have not enough background
> for explaining what should happen at this code place. Can anyone help me
> with this problem? Do I have an improper OpenSG 1.8 model or is there an
> usage error on my side? Or at last is there an error in the conversioin
> routine?

hmm, the real problem seems to be that the 

if(chkMat != NULL)

catches all Materials but the OSBChunkMaterialElement only registers
for ChunkMaterial itself, not for SimpleMaterial which you seem to use. 

So the whole thing should never run into the else case for chunk
material derived elements. 

I'll see what I can make of it.

kind regards,
  gerrit





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