Hi,

On Mon, 2010-02-08 at 11:09 +0100, Johannes Brunen wrote: 
> Hello,
> 
> I have the following scene graph:
> 
>         root
>           |
> MaterialGroup - SwitchMaterial - ChunkMaterial 1
>           |                                   - ChunkMaterial 2
>           |                                     
>      SubTree
> 
> I would like to render the scene in such a way that the chunks defined
> in ChunkMaterial 1 or 2 override the corresponding chunks in the
> SubTree's materials.
> I know about the ChunkOverrideGroup but if I understand correctly I
> can't use it in combination with the SwitchMaterial.
> 
> So my question is it sensible to have a 'OverrideMaterialGroup' which
> does basically the same as ChunkOverrideGroup but with the chunks
> defined in ChunkMaterial 1 or 2? I.e. it should only override these
> chunks which are defined by the active material.
> 
> Is this something that make sense? I could use it because it would
> perfectly integrate into the scene graph structure I already have in
> use.

I would more tend towards a SwitchOverride group node along the lines
of the SwitchMaterial node group. I'll see if I can squeeze it in
somewhere as I'm running late one quite some OpenSG stuff already.

kind regard
 gerrit




------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to