Hello Open-Inventor Community,
I have a question regarding the Drawstyle override-feature. I am developing an application in which the user can load an existing complex scene-graph. The user can manipulate the appearance over the UI. For example one can change globally the color of all objects to blue. To do so, I am inserting a SoDrawstyle with ->setOverride(TRUE) near the top of the scene graph.
Everything works as expected. Unfortunately I am in the situation that I have to break the overall global blue Drawstyle for the children of several Groups. For example every object is blue, but the Objects of the oxygen group should become yellow (see attached picture).
I though, I could just insert another Override-DrawStyle and override the existing Override. Unfortunately this is not working and the objects are still drawn blue.
To better explain my problem, I have modified a picture from the inventor mentor book (see attachement).
Override_Question.jpg
Is there a possibility to break/reset an existing override DrawStyle?
Thanks in advance and best regards
Mecanum
I have a question regarding the Drawstyle override-feature. I am developing an application in which the user can load an existing complex scene-graph. The user can manipulate the appearance over the UI. For example one can change globally the color of all objects to blue. To do so, I am inserting a SoDrawstyle with ->setOverride(TRUE) near the top of the scene graph.
Everything works as expected. Unfortunately I am in the situation that I have to break the overall global blue Drawstyle for the children of several Groups. For example every object is blue, but the Objects of the oxygen group should become yellow (see attached picture).
I though, I could just insert another Override-DrawStyle and override the existing Override. Unfortunately this is not working and the objects are still drawn blue.
To better explain my problem, I have modified a picture from the inventor mentor book (see attachement).
Override_Question.jpg
Is there a possibility to break/reset an existing override DrawStyle?
Thanks in advance and best regards
Mecanum
Comment