Replies: 3 comments 5 replies
-
The vsgbuilder example has code paths that set up colours: https://github.com/vsg-dev/vsgExamples/blob/master/examples/utils/vsgbuilder/vsgbuilder.cpp If you can't spot the problem in your own code please post it so we can review it and see if we can spot the problem. |
Beta Was this translation helpful? Give feedback.
-
Hi Esteban, I think the most likely reason for the black cube is that has been created with lighting on so needs a light source to illuminate it, and the vsg::createCommandGraphForView(window, camera, scene) convenience function assigns this to the vsg::View for you, but when you create the vsg::View by yourself it's in it's default state without any cameras assigned. The vsg::createCommandGraphForView() calls vsg::createRenderGraphForView() function which has the assignment of the Light: https://github.com/vsg-dev/VulkanSceneGraph/blob/master/src/vsg/app/RenderGraph.cpp#L187 Assigning one or more vsg::Light to View or elsewhere in your scene graph will illuminate the scene. Robert. |
Beta Was this translation helpful? Give feedback.
-
Hi Robert, You are a genius !! it works !! Thank you very much !! By the way, what a wonderful project, congratulations. |
Beta Was this translation helpful? Give feedback.
-
I draw a BOX using Builder, it works. How to draw a solid red one ?
I am trying to use GeomInfo with color, and colors attributes without success. Any Idea ?
Beta Was this translation helpful? Give feedback.
All reactions