Replies: 2 comments 3 replies
-
If you've got state commands that alter the polygon mode (i.e. whether you get triangles, their outlines, or their points), you need to have set up the pipeline with the polygon mode configured as dynamic state. If state isn't dynamic, it's baked into the pipeline and can only be altered by replacing the whole pipeline. |
Beta Was this translation helpful? Give feedback.
-
State inheritance in the OSG works best with fixed function pipeline, with shader based scene graphs it is a bit more limited. As the VSG/Vulkan is entirely shader based what you can control is more limited, simply because the granularity that state is controllable is coarser grained. In the case of polygon mode by default this state is fixed by the vkPipeline (vsg::GraphicsPipeline) unless the pipeline is setup explicitly to make a particular pipeline state component dynamic state. The vsg::DynamicState pipeline state needs to be configured with the appropriate VkDynamciState values and passed in during creation of the pipelines. The vsgdynamicstate example illustrates how this is done with adjusting the line width. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I read a vsgt file and want to change its display state to wireframe mode, but I don't want to use an intrusive method to change its graphics pipeline. Is it possible to define a StateGroup at the top and use the graphics pipeline of the StateGroup to override the graphics pipeline of all its child nodes? It's similar to override in osg. But this doesn't work.
Beta Was this translation helpful? Give feedback.
All reactions