dark99 Posted February 4 Share Posted February 4 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? Link to comment
cash-metall Posted February 5 Share Posted February 5 (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 by cash-metall switch snippet language from csharp to cpp Link to comment
Recommended Posts