Hello,

 

I'm using a MaterialChunkOverrideGroup core in my render tree in order
to define some global state. For instance, I manage clip planes in that
way. Now, I have the rather obscure situation that I need to render a
part of my tree with a material state that does not need some of the
corresponding chunks. The overriding process is currently additively
defined. Is it possible to a allow a subtractive
MaterialChunkOverrideGroup core.

 

To be more clear what I mean. Suppose that I have the following render
tree:

 

          parent-tree

               |

         MaterialChunk-

         OverrideGroup 1

               |

              ...

               |

      +--------+---------+

      |                  |

MaterialChunk-           |

OverrideGroup 2          |

      |                  |

MaterialGroup A     MaterialGroup B

      |                  |

  Geometry A         Geometry B

 

What I wish to have is that the material chunks that are defined by
MaterialChunkOverrideGroup 2 should be removed from the state chunks
defined at this place, so actually negating some of the chunks that I
have defined by MaterialChunkOverrideGroup 1.

The special behavior of MaterialChunkOverrideGroup 2 could be either
activated by an additional boolean flag, or the MCOG could  take an
additional material that is subtracted when it is defined.

 

Is that possible and can I get some support in realizing that?

 

I think that beside of changing MaterialChunkOverrideGroup the parent
class ChunkOverrideGroup  would have to be adapted.

 

Is there something that I'm missing with that?

 

Best,

Johannes

 


------------------------------------------------------------------------------
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to