dark99 Posted February 4, 2024 Posted February 4, 2024 Hi I want to render lines or quads in front of all objects in world but maintaining world position just like gizmo in Unigine editor. Is there Visualizer option related to that? or other way?
cash-metall Posted February 5, 2024 Posted February 5, 2024 (edited) Hello! On 2/4/2024 at 2:11 PM, dark99 said: Is there Visualizer option related to that? or other way? yes, sure! you can enable this mode for each visualizer lines via https://developer.unigine.com/en/docs/2.18/api/library/engine/class.visualizer?rlang=cs#Mode Vusializer::setMode(Visualizer::MODE_ENABLED_DEPTH_TEST_DISABLED); or for a specific line. to do this, specify the argument depth_test = false in render methods https://developer.unigine.com/en/docs/2.18/api/library/engine/class.visualizer?rlang=cs#renderLine3D_Vec3_Vec3_vec4_float_int_void Visualizer::renderLine3D(start, end, color, 0.0f, false); Edited February 5, 2024 by cash-metall switch snippet language from csharp to cpp
Recommended Posts