Jump to content

Render lines in front of all objects in world


photo

Recommended Posts

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

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 by cash-metall
switch snippet language from csharp to cpp
Link to comment
×
×
  • Create New...