How to turn off the default light in the environment? Which function do I need to call to implement it? Can you tell me how can I turn off the default light?

  1. FAQ
  2. »
  3. Vectorization and Rendering Questions

There is no any lighting in 2dWireframe, 3dWireframe and HiddenLine rendering modes. Lighting exists only in Shaded rendering modes.

Following Database Variables can be used to control behavior of lights inside drawing viewports:
https://docs.opendesign.com/td/DEFAULTLIGHTING.html
https://docs.opendesign.com/td/DEFAULTLIGHTINGTYPE.html

You must take into account that if you will disable Default Lighting, you must provide your own light sources into Database, elsewhere default lights will be enabled even if you disabled them. This behavior is logically correct, because if your graphics scene haven't at least one light source - your Shaded geometry will not be highlighted, so all graphics inside scene will be black and I don't think that anybody expects such result (very similar result will be shown in case if you switch onto HiddenLine rendering mode).