Re: [Opensg-users] switchmaterial and sortkey

2006-08-22 Thread Andreas Zieringer
Hi Antonio, ok I fixed it. Andreas > Hi, > > I'm using a SwitchMaterial for switching between > two materials. Now I also want to set the SortKey > to set the rendering order for those materials. > > To set the sorting I used: > > // get all the pointers > SwitchMaterialPtr swMaterial = Swit

Re: [Opensg-users] switchmaterial and sortkey

2006-08-22 Thread Antonio Bleile
Hi Andreas, > actually the sort key of the switch material itself is ignored and it > is overwritten by the current active material sort key. Now after > changing the sort key of a material in a switch material you have to > call > rebuildState() on the switch material or something like > > b

Re: [Opensg-users] switchmaterial and sortkey

2006-08-22 Thread Andreas Zieringer
Hi Antonio, actually the sort key of the switch material itself is ignored and it is overwritten by the current active material sort key. Now after changing the sort key of a material in a switch material you have to call rebuildState() on the switch material or something like beginEditCP(swMa

[Opensg-users] switchmaterial and sortkey

2006-08-22 Thread Antonio Bleile
Hi, I'm using a SwitchMaterial for switching between two materials. Now I also want to set the SortKey to set the rendering order for those materials. To set the sorting I used: // get all the pointers SwitchMaterialPtr swMaterial = SwitchMaterialPtr::dcast(material); ChunkMaterialPtr mChunk0 =